
:root {
    --bg-card: #0c1022;
    --bg-card-soft: #0f1528;
    --accent-2: #00e5ff;
    --accent-3: #7c3aed;
    --radius-lg: 18px;
    --radius-pill: 999px;
    --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.7);
    --transition-fast: 0.2s ease-out;

    /* Neon rainbow palette inspired by the logo */
    --bg-main: #050816;
    --bg-alt: #0a0d1f;
    --accent-blue: #0bb4ff;
    --accent-green: #38ff6b;
    --accent-yellow: #ffe640;
    --accent-orange: #ff9b3f;
    --accent-pink: #ff4b8c;
    --accent-purple: #b94dff;

    /* Generic accents (keep for existing code) */
    --accent: #00f5ff;
    --accent-secondary: #ff00ff;
    --accent-soft: rgba(0, 245, 255, 0.25);

    --text-main: #fdfdff;
    --text-muted: #9da5c4;
    --card-bg: #10152b;
    --border-soft: rgba(255, 255, 255, 0.08);
    --danger: #ff4b81;
    --success: #52ffa8;
    --warning: #ffd166;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
    radial-gradient(circle at 0% 0%, rgba(0, 229, 255, 0.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 180, 0, 0.16), transparent 55%),
    var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========== Layout & Header ========== */
.cp-container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 1.25rem 2.5rem;
}

header.cp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: linear-gradient(
    to bottom,
    rgba(5, 8, 22, 0.96),
    rgba(5, 8, 22, 0.85),
    transparent
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-header-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0.85rem 1.25rem 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cp-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.cp-logo-badge {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: conic-gradient(
    from 210deg,
    var(--accent-2),
    var(--accent-3),
    var(--accent),
    #ff4b5c,
    var(--accent-2)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6);
}

.cp-logo-text span:first-child {
    font-weight: 700;
    letter-spacing: 0.03em;
    font-size: 1.05rem;
}

.cp-logo-text span:last-child {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.cp-nav {
    display: flex;
    gap: 1.1rem;
    align-items: center;
    font-size: 0.86rem;
}

.cp-nav a {
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.cp-nav a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

.cp-nav a.is-active {
    color: #050816;
    background: linear-gradient(135deg, var(--accent), #ff7e3a);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.55);
}

.cp-nav-cta {
    padding: 0.35rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(0, 229, 255, 0.5);
    background: radial-gradient(circle at 0% 0%, rgba(0, 229, 255, 0.18), transparent 70%);
    color: var(--accent-2);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
}

.cp-nav-cta i {
    font-size: 0.75rem;
}

@media (max-width: 780px) {
    .cp-nav {
    display: none;
    }
}

/* ========== Hero ========== */
.games-hero {
    padding-top: 1.7rem;
    padding-bottom: 0.8rem;
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.4fr);
    gap: 1.4rem;
    align-items: center;
}

@media (max-width: 860px) {
    .games-hero {
    grid-template-columns: 1fr;
    padding-top: 1.4rem;
    }
}

.games-hero-heading {
    font-size: clamp(1.7rem, 2.5vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.games-hero-heading span {
    background: linear-gradient(135deg, var(--accent), #ff7e3a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.games-hero-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 0.9rem;
}

.games-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    font-size: 0.76rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.7rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(10, 14, 35, 0.9);
    color: var(--text-muted);
}

.pill i { font-size: 0.8rem; }

.pill--gold {
    border-color: rgba(255, 180, 0, 0.7);
    background: linear-gradient(135deg, rgba(255, 180, 0, 0.16), rgba(255, 126, 58, 0.12));
    color: var(--accent);
}

.pill--cyan {
    border-color: rgba(0, 229, 255, 0.7);
    background: radial-gradient(circle at 0% 0%, rgba(0, 229, 255, 0.18), transparent 70%);
    color: var(--accent-2);
}

.games-hero-panel {
    border-radius: 20px;
    background:
    radial-gradient(circle at 0% 0%, rgba(0, 229, 255, 0.27), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(124, 58, 237, 0.22), transparent 60%),
    var(--bg-card);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.games-hero-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.games-hero-panel h2 {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.games-hero-panel h2 i { color: var(--accent-2); }

.games-hero-panel p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.games-hero-panel .mini-stat {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 11, 30, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
}

.games-hero-panel .mini-stat strong {
    color: var(--accent);
}

.games-controls {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.5fr);
    gap: 0.7rem;
}

@media (max-width: 860px) {
    .games-controls {
    grid-template-columns: 1fr;
    }
}

/* Redesigned search panel */
.games-search {
    border-radius: 18px;
    background: radial-gradient(circle at 0% 0%, rgba(0, 229, 255, 0.18), transparent 65%),
                rgba(7, 10, 27, 0.98);
    border: 1px solid rgba(0, 229, 255, 0.45);
    padding: 0.7rem 0.9rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.48rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
}

.games-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.search-title {
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.search-title i {
    font-size: 0.78rem;
    color: var(--accent-2);
}

.search-hint {
    font-size: 0.68rem;
    color: rgba(163, 167, 192, 0.85);
}

.games-search-body {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.38rem 0.7rem;
    border-radius: var(--radius-pill);
    background: rgba(3, 6, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.games-search-body i {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.games-search-body input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.8rem;
}

.games-search-body input::placeholder {
    color: rgba(163, 167, 192, 0.65);
}

.search-clear-btn {
    border: none;
    outline: none;
    background: rgba(5, 8, 22, 0.9);
    border-radius: 999px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-clear-btn:hover {
    background: rgba(255, 75, 92, 0.16);
    color: #ff9ca8;
}

.games-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.1rem;
}

.games-search-tag {
    border: none;
    outline: none;
    border-radius: 999px;
    padding: 0.18rem 0.6rem;
    font-size: 0.68rem;
    background: rgba(5, 8, 22, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.games-search-tag:hover {
    border-color: rgba(255, 180, 0, 0.8);
    color: var(--accent);
    transform: translateY(-1px);
}

.games-filter-stack {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-end;
}

@media (max-width: 860px) {
    .games-filter-stack {
    align-items: flex-start;
    }
}

.games-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.filter-group-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.filter-chip {
    font-size: 0.72rem;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 10, 27, 0.93);
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-fast);
}

.filter-chip i {
    font-size: 0.8rem;
}

.filter-chip span {
    font-size: 0.64rem;
    opacity: 0.75;
}

.filter-chip:hover {
    border-color: rgba(255, 180, 0, 0.7);
    color: var(--accent);
    transform: translateY(-1px);
}

.filter-chip.is-active {
    border-color: transparent;
    color: #050816;
    background: linear-gradient(135deg, var(--accent), #ff7e3a);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
    font-weight: 600;
}

/* ========== Game Grid ========== */
.games-section-header {
    margin-top: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.games-section-header strong {
    color: var(--text-main);
    font-size: 0.8rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.2rem;
}

@media (max-width: 1100px) {
    .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .games-grid {
    grid-template-columns: 1fr;
    }
}

/* Card entrance animation */
@keyframes cardFadeUp {
    from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    }
    to {
    opacity: 1;
    transform: translateY(0) scale(1);
    }
}

.game-card {
    position: relative;
    border-radius: 20px;
    background: var(--bg-card-soft);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: cardFadeUp 0.4s ease-out forwards;
    transform-origin: center bottom;
}

.game-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0% 0%, rgba(255, 180, 0, 0.25), transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease-out;
    pointer-events: none;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 180, 0, 0.8);
    background: linear-gradient(145deg, #111633, #050816);
}

.game-card:hover::before {
    opacity: 1;
}

.game-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.4), transparent),
    linear-gradient(315deg, rgba(255, 180, 0, 0.4), transparent),
    #050816;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-image::after {
    content: "Game Image";
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 0.62rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(5, 8, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text-muted);
}

.game-image-inner {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(5, 8, 22, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.game-image-inner span:first-child {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.game-image-inner span:last-child {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.game-body {
    padding: 0.6rem 0.65rem 0.7rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.35rem;
}

.game-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
}

.game-title {
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-new {
    font-size: 0.6rem;
    padding: 0.08rem 0.35rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 75, 92, 0.1);
    border: 1px solid rgba(255, 75, 92, 0.6);
    color: #ff697a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tag-soon {
    font-size: 0.6rem;
    padding: 0.08rem 0.45rem;
    border-radius: var(--radius-pill);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.7);
    color: #b497ff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.game-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    max-height: 2em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: 0.1rem;
}

.game-meta-left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.64rem;
}

.meta-chip {
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(5, 8, 22, 0.9);
    color: var(--text-muted);
}

.meta-chip--difficulty {
    border-color: rgba(255, 180, 0, 0.7);
    color: var(--accent);
}

.meta-chip--category {
    border-color: rgba(0, 229, 255, 0.7);
    color: var(--accent-2);
}

.meta-chip i {
    margin-right: 0.2rem;
    font-size: 0.6rem;
}

.game-meta-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.64rem;
    color: var(--text-muted);
}

.game-meta-right i {
    color: var(--accent-2);
    font-size: 0.74rem;
}

.game-footer-row {
    margin-top: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.btn-primary {
    border-radius: var(--radius-pill);
    padding: 0.32rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 500;
    border: none;
    outline: none;
    background: linear-gradient(135deg, var(--accent), #ff7e3a);
    color: #050816;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65);
    cursor: pointer;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, filter 0.12s ease-out;
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.8);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.6);
}

.btn-primary i {
    font-size: 0.7rem;
}

.btn-disabled {
    cursor: default;
    opacity: 0.55;
    box-shadow: none;
    filter: grayscale(0.1);
}

.btn-disabled:hover,
.btn-disabled:active {
    transform: none;
    box-shadow: none;
    filter: grayscale(0.1);
}

.game-coins-chip {
    font-size: 0.64rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 180, 0, 0.7);
    background: rgba(255, 180, 0, 0.14);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.game-coins-chip i { font-size: 0.7rem; }

/* ========== Modal ========== */
.game-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 15, 0.88);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 100;
}

.game-modal-backdrop.is-open {
    display: flex;
}

.game-modal {
    width: min(1000px, 100%);
    height: 100%;
    border-radius: 22px;
    background:
    radial-gradient(circle at 0% 0%, rgba(0, 229, 255, 0.22), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(124, 58, 237, 0.22), transparent 60%),
    var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.85);
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transform: scale(0.96) translateY(10px);
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.game-modal-backdrop.is-open .game-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.game-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.game-modal-title-block {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.modal-thumb {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: conic-gradient(
    from 200deg,
    var(--accent-2),
    var(--accent-3),
    var(--accent)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.game-modal-title-block h2 {
    font-size: 0.96rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-modal-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.game-modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(3, 5, 15, 0.9);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.game-modal-close:hover {
    background: rgba(255, 75, 92, 0.16);
    transform: translateY(-1px);
}

.game-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr);
    gap: 0.8rem;
    margin-top: 0.2rem;
    flex: 1;
    min-height: 0;
}

@media (max-width: 900px) {
    .game-modal-body {
    grid-template-columns: 1fr;
    }
}

.game-modal-play {
    border-radius: 18px;
    background: #050816;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    min-height: 260px;
}

.game-modal-play iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.game-modal-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.game-modal-placeholder button {
    margin-top: 0.45rem;
    border: none;
    outline: none;
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.85rem;
    font-size: 0.74rem;
    background: linear-gradient(135deg, var(--accent), #ff7e3a);
    color: #050816;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.game-modal-placeholder button i { font-size: 0.8rem; }

.game-modal-sidebar {
    border-radius: 18px;
    background: rgba(5, 8, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.78rem;
}

.sidebar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.sidebar-label {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.sidebar-value {
    font-weight: 500;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.sidebar-tags span {
    font-size: 0.68rem;
    padding: 0.18rem 0.48rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 8, 22, 0.9);
    color: var(--text-muted);
}

.sidebar-tip {
    margin-top: 0.15rem;
    font-size: 0.7rem;
    color: var(--accent-2);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.sidebar-tip i {
    font-size: 0.75rem;
}

/* ========== Footer ========== */
footer.cp-footer {
    margin-top: auto;
    padding: 1rem 0 1.2rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-inline: 1.25rem;
}

.cp-footer-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

@media (max-width: 680px) {
    .cp-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    }
}

/* Header / Nav */
    header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 100;
      backdrop-filter: blur(16px);
      background: linear-gradient(
        to right,
        rgba(5, 8, 22, 0.92),
        rgba(5, 8, 22, 0.85)
      );
      border-bottom: 1px solid var(--border-soft);
      transition: background 0.3s ease, box-shadow 0.3s ease;
    }

    header.scrolled {
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
      background: rgba(5, 8, 22, 0.98);
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.85rem 0;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .logo-icon {
      width: 60px;
      height: auto;
    }

    /* keep if you reuse the square mark elsewhere */
    .logo-mark {
      width: 44px;
      height: 44px;
      border-radius: 16px;
      background: conic-gradient(
        from 220deg,
        var(--accent-blue),
        var(--accent-green),
        var(--accent-yellow),
        var(--accent-orange),
        var(--accent-pink),
        var(--accent-purple),
        var(--accent-blue)
      );
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 22px rgba(255, 255, 255, 0.45);
      font-weight: 700;
      font-size: 1.1rem;
      color: #050816;
    }

    .logo-text span {
      display: block;
    }

    .logo-title {
      font-weight: 700;
      letter-spacing: 0.06em;
      font-size: 1rem;
      background: linear-gradient(
        90deg,
        var(--accent-blue),
        var(--accent-green),
        var(--accent-yellow),
        var(--accent-orange),
        var(--accent-pink),
        var(--accent-purple)
      );
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .logo-subtitle {
      font-size: 0.7rem;
      color: var(--text-muted);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      font-size: 0.9rem;
    }

    .nav-links a {
      position: relative;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      font-weight: 500;
      color: var(--text-muted);
      transition: color 0.25s ease;
    }

    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -0.25rem;
      width: 0;
      height: 2px;
      background: linear-gradient(
        90deg,
        var(--accent-blue),
        var(--accent-green),
        var(--accent-yellow),
        var(--accent-orange),
        var(--accent-pink),
        var(--accent-purple)
      );
      transition: width 0.25s ease;
    }

    .nav-links a:hover {
      color: var(--text-main);
    }

    .nav-links a.ni-active {
      color: var(--text-main);
    }

    .nav-links a.ni-active::after {
        width:100%;
    }

    .nav-links a:hover::after {
      width: 100%;
    }

    .nav-cta {
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }

    .btn-custom {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      border-radius: 999px;
      padding: 0.6rem 1.4rem;
      font-size: 0.85rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      border: 1px solid transparent;
      cursor: pointer;
      transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }

    .btn-primary-custom {
      background: linear-gradient(
        90deg,
        var(--accent-blue),
        var(--accent-green),
        var(--accent-yellow),
        var(--accent-orange),
        var(--accent-pink),
        var(--accent-purple)
      );
      color: #050816;
      box-shadow: 0 0 24px rgba(255, 255, 255, 0.65);
      border: none;
    }

    .btn-primary-custom:hover {
      transform: translateY(-1px) scale(1.02);
      box-shadow: 0 0 32px rgba(255, 255, 255, 0.85);
    }

    .btn-outline-custom {
      background: transparent;
      border-color: var(--accent-soft);
      color: var(--text-muted);
    }

    .btn-outline-custom:hover {
      border-image: linear-gradient(
        90deg,
        var(--accent-blue),
        var(--accent-green),
        var(--accent-yellow),
        var(--accent-orange),
        var(--accent-pink),
        var(--accent-purple)
      ) 1;
      color: var(--accent);
      box-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
    }

    .btn-sm-custom {
      padding: 0.45rem 1rem;
      font-size: 0.75rem;
    }

    .nav-toggle {
      display: none;
      font-size: 1.3rem;
      cursor: pointer;
    }

    .game-image {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;       /* nice wide thumbnail, good for mobile */
        overflow: hidden;
        border-radius: 1rem 0 0;
    }

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

    .game-modal-sidebar{
        display: none;
    }