﻿/* ===== FREECHILLGAME 鈥?fb- prefix 鈥?Neon Dark Theme ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --fb-bg: #050b14;
    --fb-bg2: #0b1322;
    --fb-bg3: #112038;
    --fb-card: #0f1a2d;
    --fb-border: rgba(125, 211, 252, 0.14);
    --fb-neon: #8b5cf6;
    --fb-neon2: #38bdf8;
    --fb-cyan: #67e8f9;
    --fb-yellow: #ffd166;
    --fb-text: #edf6ff;
    --fb-muted: #8ca0bb;
    --fb-radius: 14px;
    --fb-radius-lg: 22px;
    --fb-transition: 0.25s ease;
}

body {
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
    background: var(--fb-bg);
    color: var(--fb-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.fb-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13,13,15,0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--fb-border);
}

.fb-header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.fb-logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}
.fb-logo span { color: var(--fb-neon); }

.fb-nav {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.fb-nav-link {
    color: var(--fb-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    transition: var(--fb-transition);
    white-space: nowrap;
}
.fb-nav-link:hover, .fb-nav-link.active {
    color: #fff;
    background: rgba(200,80,192,0.15);
}

.fb-search-wrap {
    display: flex;
    align-items: center;
    background: var(--fb-bg3);
    border: 1px solid var(--fb-border);
    border-radius: 999px;
    padding: 4px 4px 4px 16px;
    width: 260px;
    transition: var(--fb-transition);
}
.fb-search-wrap:focus-within {
    border-color: var(--fb-neon);
    box-shadow: 0 0 0 3px rgba(200,80,192,0.15);
}
.fb-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--fb-text);
    font-size: 14px;
}
.fb-search-input::placeholder { color: var(--fb-muted); }
.fb-search-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--fb-neon), var(--fb-neon2));
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: var(--fb-transition);
}
.fb-search-btn:hover { transform: scale(1.08); }

.fb-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.fb-burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

.fb-mobile-search-btn {
    display: none;
    background: none;
    border: none;
    color: var(--fb-muted);
    cursor: pointer;
    padding: 8px;
}

/* Mobile Menu */
.fb-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--fb-bg);
    z-index: 9999;
    flex-direction: column;
    padding: 0;
}
.fb-mobile-menu.active { display: flex; }
.fb-mobile-menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--fb-border);
}
.fb-mobile-close {
    background: none; border: none; color: #fff; cursor: pointer; padding: 8px;
}
.fb-mobile-link {
    display: block;
    color: var(--fb-text);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    padding: 18px 24px;
    border-bottom: 1px solid var(--fb-border);
    transition: var(--fb-transition);
}
.fb-mobile-link:hover { color: var(--fb-neon); padding-left: 32px; }

/* Search Overlay */
.fb-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--fb-bg);
    z-index: 9999;
}
.fb-search-overlay.active { display: block; }
.fb-search-overlay-inner { padding: 24px; }
.fb-search-overlay-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.fb-search-overlay-top h2 { font-size: 22px; }
.fb-search-overlay-top button { background: none; border: none; color: #fff; cursor: pointer; }
.fb-search-overlay-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.fb-search-overlay-form input {
    flex: 1;
    background: var(--fb-bg3);
    border: 1px solid var(--fb-border);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    color: #fff;
    outline: none;
}
.fb-search-overlay-form input:focus { border-color: var(--fb-neon); }
.fb-search-overlay-form button {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--fb-neon), var(--fb-neon2));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.fb-search-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.fb-tag {
    padding: 8px 16px;
    background: var(--fb-bg3);
    border: 1px solid var(--fb-border);
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--fb-transition);
}
.fb-tag:hover { border-color: var(--fb-neon); color: var(--fb-neon); }

/* ===== HERO ===== */
.fb-hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
}
.fb-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 0.6s ease;
    filter: blur(2px) brightness(0.45);
    transform: scale(1.05);
}
.fb-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,13,15,0.95) 0%, rgba(13,13,15,0.6) 50%, rgba(13,13,15,0.2) 100%);
}
.fb-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: center;
    min-height: 600px;
}
.fb-hero-content { display: flex; flex-direction: column; gap: 20px; }
.fb-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--fb-neon), var(--fb-neon2));
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: fit-content;
}
.fb-hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    text-shadow: 0 0 40px rgba(200,80,192,0.4);
    max-width: 10ch;
}
.fb-hero-desc {
    font-size: 16px;
    color: rgba(240,240,248,0.75);
    max-width: 42ch;
    line-height: 1.7;
}
.fb-hero-actions { display: flex; gap: 14px; align-items: center; }
.fb-play-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--fb-neon), var(--fb-neon2));
    border: none;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--fb-transition);
    box-shadow: 0 8px 24px rgba(200,80,192,0.35);
}
.fb-play-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(200,80,192,0.5); }
.fb-info-btn {
    padding: 14px 24px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--fb-transition);
}
.fb-info-btn:hover { background: rgba(255,255,255,0.14); }
.fb-hero-dots { display: flex; gap: 8px; }
.fb-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: var(--fb-transition);
}
.fb-dot.active { background: var(--fb-neon); width: 24px; border-radius: 4px; }

/* Hero Sidebar */
.fb-hero-sidebar { display: flex; flex-direction: column; gap: 12px; }
.fb-sidebar-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    cursor: pointer;
    transition: var(--fb-transition);
}
.fb-sidebar-card:hover, .fb-sidebar-card.active {
    background: rgba(200,80,192,0.12);
    border-color: rgba(200,80,192,0.3);
}
.fb-sidebar-card img {
    width: 72px; height: 54px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.fb-sidebar-card-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--fb-text);
}
.fb-sidebar-card-cat {
    font-size: 11px;
    color: var(--fb-neon);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* Hero Progress */
.fb-hero-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.08);
    z-index: 3;
}
.fb-hero-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--fb-neon), var(--fb-cyan));
    transition: width 0.1s linear;
}

/* ===== SECTIONS ===== */
.fb-section { padding: 60px 0; }
.fb-section-dark { background: var(--fb-bg2); }
.fb-section-inner { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.fb-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.fb-section-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.fb-accent { margin-right: 8px; }
.fb-nav-btns { display: flex; gap: 8px; }
.fb-arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--fb-border);
    background: var(--fb-bg3);
    color: var(--fb-text);
    font-size: 16px;
    cursor: pointer;
    transition: var(--fb-transition);
    display: flex; align-items: center; justify-content: center;
}
.fb-arrow:hover { border-color: var(--fb-neon); color: var(--fb-neon); }
.fb-arrow:disabled { opacity: 0.3; cursor: not-allowed; }

/* Horizontal Scroll */
.fb-scroll-track { overflow: hidden; }
.fb-scroll-row {
    display: flex;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* Hot Game Card */
.fb-hot-card {
    flex: 0 0 200px;
    background: var(--fb-card);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--fb-transition);
    position: relative;
}
.fb-hot-card:hover { transform: translateY(-6px); border-color: rgba(200,80,192,0.4); box-shadow: 0 16px 32px rgba(0,0,0,0.4); }
.fb-hot-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.fb-hot-card-body { padding: 12px; }
.fb-hot-card-cat {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fb-neon);
    margin-bottom: 4px;
}
.fb-hot-card-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--fb-text);
}
.fb-hot-card-badge {
    position: absolute;
    top: 8px; left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.fb-badge-new { background: var(--fb-cyan); color: #000; }
.fb-badge-hot { background: var(--fb-neon); color: #fff; }
.fb-badge-top { background: var(--fb-yellow); color: #000; }

/* Small card for new releases */
.fb-scroll-row--sm .fb-hot-card { flex: 0 0 160px; }
.fb-scroll-row--sm .fb-hot-card img { height: 100px; }

/* ===== MASONRY GRID ===== */
.fb-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 10px;
    gap: 16px;
}
.fb-masonry-card {
    background: var(--fb-card);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--fb-transition);
    position: relative;
}
.fb-masonry-card:hover { transform: translateY(-4px); border-color: rgba(200,80,192,0.35); box-shadow: 0 12px 28px rgba(0,0,0,0.35); }
.fb-masonry-card img { width: 100%; display: block; object-fit: cover; }
.fb-masonry-card-body { padding: 14px; }
.fb-masonry-card-cat {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fb-cyan);
    margin-bottom: 4px;
}
.fb-masonry-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}
.fb-masonry-card-desc {
    font-size: 12px;
    color: var(--fb-muted);
    margin-top: 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Tall cards */
.fb-masonry-card.tall img { height: 260px; }
.fb-masonry-card.normal img { height: 160px; }

/* ===== BIG CARD ROW ===== */
.fb-bigcard-row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
    grid-template-rows: repeat(2, minmax(180px, 1fr));
    gap: 20px;
    align-items: stretch;
}
.fb-bigcard {
    position: relative;
    border-radius: var(--fb-radius-lg);
    overflow: hidden;
    cursor: pointer;
    min-height: 184px;
    transition: var(--fb-transition);
}
.fb-bigcard:hover { transform: scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.fb-bigcard img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.fb-bigcard-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%);
}
.fb-bigcard-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
}
.fb-bigcard-cat {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fb-neon);
    margin-bottom: 6px;
}
.fb-bigcard-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}
.fb-bigcard-play {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--fb-transition);
}
.fb-bigcard-play:hover { background: var(--fb-neon); }

/* ===== RANK LIST ===== */
.fb-rank-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.fb-rank-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--fb-card);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    cursor: pointer;
    transition: var(--fb-transition);
}
.fb-rank-item:hover { border-color: rgba(200,80,192,0.35); background: var(--fb-bg3); }
.fb-rank-num {
    font-size: 22px;
    font-weight: 900;
    color: var(--fb-border);
    min-width: 32px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.fb-rank-item:nth-child(1) .fb-rank-num { color: var(--fb-yellow); }
.fb-rank-item:nth-child(2) .fb-rank-num { color: #c0c0c0; }
.fb-rank-item:nth-child(3) .fb-rank-num { color: #cd7f32; }
.fb-rank-img {
    width: 64px; height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.fb-rank-info { flex: 1; min-width: 0; }
.fb-rank-cat {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fb-neon);
    margin-bottom: 2px;
}
.fb-rank-title {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fb-rank-free {
    font-size: 11px;
    color: var(--fb-cyan);
    font-weight: 700;
    white-space: nowrap;
}

/* ===== FOOTER ===== */
.fb-footer {
    background: var(--fb-bg2);
    border-top: 1px solid var(--fb-border);
    padding: 60px 0 0;
}
.fb-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px 48px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.fb-footer-brand p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--fb-muted);
    line-height: 1.7;
    max-width: 28ch;
}
.fb-footer-col h4 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fb-muted);
    margin-bottom: 16px;
}
.fb-footer-col a {
    display: block;
    color: var(--fb-text);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: var(--fb-transition);
}
.fb-footer-col a:hover { color: var(--fb-neon); }
.fb-footer-bottom {
    border-top: 1px solid var(--fb-border);
    padding: 20px 24px;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--fb-muted);
}
.fb-footer-legal { display: flex; gap: 20px; }
.fb-footer-legal a { color: var(--fb-muted); text-decoration: none; transition: var(--fb-transition); }
.fb-footer-legal a:hover { color: var(--fb-neon); }

/* ===== COOKIE ===== */
.fb-cookie {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 28px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: var(--fb-bg3);
    border: 1px solid var(--fb-border);
    border-radius: var(--fb-radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 9000;
    max-width: 600px;
    width: calc(100% - 48px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease, visibility 0.25s ease;
}
.fb-cookie.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.fb-cookie p { font-size: 14px; color: var(--fb-muted); flex: 1; }
.fb-cookie a { color: var(--fb-neon); }
.fb-cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.fb-cookie-btns button {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--fb-transition);
}
.fb-cookie-btns button:first-child { background: var(--fb-neon); color: #fff; }
.fb-cookie-btns button:first-child:hover { opacity: 0.85; }
.fb-cookie-decline { background: var(--fb-bg) !important; color: var(--fb-muted) !important; border: 1px solid var(--fb-border) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .fb-masonry { grid-template-columns: repeat(3, 1fr); }
    .fb-bigcard-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .fb-nav, .fb-search-wrap { display: none; }
    .fb-burger, .fb-mobile-search-btn { display: flex; }
    .fb-header-inner { justify-content: space-between; }
    .fb-hero-inner { grid-template-columns: 1fr; padding: 40px 20px; min-height: auto; }
    .fb-hero-sidebar { display: none; }
    .fb-hero-title { font-size: 42px; }
    .fb-masonry { grid-template-columns: repeat(2, 1fr); }
    .fb-bigcard-row { grid-template-columns: 1fr; }
    .fb-rank-list { grid-template-columns: 1fr; }
    .fb-footer-inner { grid-template-columns: 1fr 1fr; }
    .fb-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .fb-hero-title { font-size: 32px; }
    .fb-masonry { grid-template-columns: 1fr; }
    .fb-footer-inner { grid-template-columns: 1fr; }
    .fb-section-title { font-size: 20px; }
}

/* ============================================================
   SHARED STYLES 鈥?gamecresty base (header, footer, pages)
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background-color: #2d2d2d;
    border-bottom: 1px solid #404040;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 70px;
    gap: 24px;
}

/* Logo */
.logo {
    justify-self: start;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 1px;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    justify-self: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    justify-content: center;
}

.nav-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #00d4ff;
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    justify-self: end;
    width: 350px;
    height: 48px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.search-container:focus-within {
    border-color: rgba(0, 212, 255, 0.45);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 4px rgba(0, 212, 255, 0.12), 0 14px 32px rgba(0, 0, 0, 0.28);
}

.search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    background: rgba(7, 18, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    width: 100%;
    padding: 0 16px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.search-input:focus {
    border-color: rgba(0, 212, 255, 0.32);
    background: rgba(9, 22, 34, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #00d4ff, #4f7cff);
    border: none;
    border-radius: 50%;
    color: #06131a;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 8px 18px rgba(0, 212, 255, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 212, 255, 0.34);
    filter: brightness(1.04);
}

.search-btn:active {
    transform: translateY(0);
}
/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    margin: 2px 0;
    transition: 0.3s;
}

/* Mobile Search Button */
.mobile-search-btn {
    display: none;
    background: none;
    border: none;
    color: #cccccc;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1a1a1a;
    z-index: 9999;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #2d2d2d;
}

.mobile-menu-logo h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    letter-spacing: 1px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: #2d2d2d;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    padding: 20px;
    border-bottom: 1px solid #2d2d2d;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: #2d2d2d;
    color: #00d4ff;
    padding-left: 30px;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1a1a1a;
    z-index: 9999;
    overflow-y: auto;
}

.mobile-search-overlay.active {
    display: block;
}

.mobile-search-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #2d2d2d;
}

.mobile-search-header h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.mobile-search-close {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.mobile-search-close:hover {
    background-color: #2d2d2d;
}

.mobile-search-input-container {
    padding: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-search-input {
    flex: 1;
    background-color: #2d2d2d;
    border: 2px solid #404040;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 18px;
    color: #ffffff;
    outline: none;
    transition: border-color 0.3s ease;
}

.mobile-search-input:focus {
    border-color: #00d4ff;
}

.mobile-search-input::placeholder {
    color: #888888;
}

.mobile-search-submit {
    background-color: #00d4ff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    color: #1a1a1a;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-search-submit:hover {
    background-color: #00b8e6;
}

.mobile-search-suggestions {
    padding: 20px;
    flex: 1;
}

.mobile-search-suggestions h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.search-suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.search-tag {
    background-color: #2d2d2d;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #404040;
}

.search-tag:hover {
    background-color: #00d4ff;
    color: #1a1a1a;
    border-color: #00d4ff;
}

/* Banner Styles */
.banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 60px 20px;
    min-height: 700px;
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    align-items: start;
}

/* Featured Game */
.featured-game {
    background:
        radial-gradient(circle at top left, rgba(0, 212, 255, 0.18), transparent 34%),
        linear-gradient(135deg, #101923 0%, #0d1117 58%, #131a24 100%);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
    min-height: 550px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    isolation: isolate;
}

.featured-game::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 12, 18, 0.92) 0%, rgba(7, 12, 18, 0.78) 36%, rgba(7, 12, 18, 0.2) 68%, rgba(7, 12, 18, 0.06) 100%);
    z-index: 1;
    pointer-events: none;
}

.featured-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 4;
}

.featured-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #4ddcff 0%, #8cf1ff 55%, #ffffff 100%);
    box-shadow: 0 0 24px rgba(77, 220, 255, 0.5);
    transition: width 0.2s linear;
}

.featured-content {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    align-items: stretch;
    min-height: 550px;
    height: 650px;
    position: relative;
    z-index: 2;
}

.featured-info {
    padding: 42px 42px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.featured-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.category-indicator {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(10px);
}

.featured-title {
    font-size: 68px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 0.98;
    max-width: 8ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.featured-status {
    color: #86eaff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.18);
}

.featured-description {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 34ch;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-price {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 25px;
}

.buy-now-btn {
    background-color: #00d4ff;
    color: #1a1a1a;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buy-now-btn:hover {
    background-color: #00b8e6;
}

.featured-bottom-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
}

.featured-instructions-wrap {
    max-width: 320px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.featured-instructions-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #8da5ba;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.play-now-btn {
    background: linear-gradient(135deg, #ffffff 0%, #dffbff 100%);
    color: #0d1117;
    border: none;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    align-self: flex-start;
    box-shadow: 0 16px 36px rgba(255, 255, 255, 0.14);
    white-space: nowrap;
}

.play-now-btn:hover {
    background: #00d4ff;
    color: #081018;
    transform: translateY(-2px);
}

.featured-instructions {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-image {
    position: relative;
    min-width: 0;
}

.featured-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 13, 18, 0.12) 0%, rgba(9, 13, 18, 0.02) 38%, rgba(9, 13, 18, 0.16) 100%);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
/* Game Sidebar */
.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-item {
    display: flex;
    align-items: center;
    background-color: #2d2d2d;
    border-radius: 12px;
    padding: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.game-item:hover {
    background-color: #404040;
    transform: translateX(6px);
}

.game-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 16px;
}

.game-name {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
        height: 60px;
        grid-template-columns: 40px 1fr 40px;
        gap: 8px;
    }

    .logo {
        justify-self: center;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .search-container {
        display: none;
    }
    
    .mobile-menu-btn,
    .mobile-search-btn {
        display: flex;
    }
    
    .banner {
        padding: 30px 16px;
        min-height: 600px;
    }
    
    .banner-container {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
        text-align: left;
        min-height: 450px;
        height: auto;
    }

    .featured-info {
        padding: 28px;
        order: 2;
    }

    .featured-meta-row,
    .featured-bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .featured-image {
        min-height: 260px;
        order: 1;
    }
    
    .featured-title {
        font-size: 42px;
        max-width: 100%;
    }
    
    .featured-description {
        font-size: 16px;
        max-width: 100%;
    }

    .featured-instructions-wrap {
        max-width: 100%;
    }

    .play-now-btn {
        align-self: flex-start;
    }
    
    .game-sidebar {
        /* order: -1; */
    }
    
    .game-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .game-thumb {
        width: 100px;
        height: 75px;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .game-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .featured-title {
        font-size: 32px;
        min-height: 72px;
    }
    
    .featured-content {
        padding: 20px;
    }

    .featured-description {
        min-height: 88px;
    }

    .featured-instructions {
        min-height: 44px;
    }
    
    .banner {
        padding: 20px 12px;
        min-height: 500px;
    }
    
    .game-thumb {
        width: 80px;
        height: 60px;
    }
}
/* Active game item */
.game-item.active {
    background-color: #00d4ff;
    color: #1a1a1a;
}

.game-item.active .game-name {
    color: #1a1a1a;
    font-weight: 600;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Search results info */
.search-results-info {
    text-align: center;
    padding: 20px;
    color: #888888;
    font-style: italic;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #888888;
}

.no-results h3 {
    margin-bottom: 10px;
    color: #cccccc;
}

/* Search Page */
.search-page {
    padding: 32px 20px 64px;
    background: #171717;
}

.search-page-shell {
    max-width: 1400px;
    margin: 0 auto;
}

.simple-search-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-simple-header,
.search-simple-filters,
.search-results-panel {
    background: #242424;
    border: 1px solid #3a3a3a;
    border-radius: 18px;
}

.search-simple-header {
    padding: 28px;
}

.redesigned-search-header {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(0, 212, 255, 0.14), transparent 30%),
        linear-gradient(135deg, #262626 0%, #1f1f1f 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.redesigned-search-header::after {
    content: '';
    position: absolute;
    inset: auto -40px -40px auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.18), transparent 70%);
    pointer-events: none;
}

.search-header-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.search-results-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: #dff9ff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.search-hero-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.search-query-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-query-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #7fdfff;
    font-weight: 700;
}

.search-query {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.search-query-accent {
    width: 140px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #00d4ff 0%, rgba(0, 212, 255, 0.12) 100%);
    flex-shrink: 0;
    margin-bottom: 8px;
}

.search-title {
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 10px;
}

.search-description {
    margin-top: 10px;
    color: #b7c1cc;
    font-size: 15px;
}

.search-simple-form {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.search-refine-input {
    flex: 1;
    min-width: 0;
    height: 50px;
    border-radius: 12px;
    border: 1px solid #4a4a4a;
    background: #1b1b1b;
    color: #ffffff;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-refine-input:focus,
.sort-select:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.12);
}

.search-refine-btn,
.clear-filters-btn,
.browse-categories-btn,
.game-card-info-btn,
.game-card-play-btn.text-btn {
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.search-refine-btn {
    height: 50px;
    padding: 0 22px;
    border-radius: 12px;
    background: #00d4ff;
    color: #101820;
    font-size: 15px;
    font-weight: 700;
}

.search-refine-btn:hover,
.clear-filters-btn:hover,
.browse-categories-btn:hover,
.game-card-info-btn:hover,
.game-card-play-btn.text-btn:hover {
    transform: translateY(-1px);
}

.search-simple-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

.search-results-count {
    color: #c9d6e2;
    font-size: 14px;
}

.search-simple-filters {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.search-simple-filter-group {
    flex: 1;
}

.search-simple-filter-group h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #ffffff;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.simple-category-filters {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #2d2d2d;
    border: 1px solid transparent;
    cursor: pointer;
    color: #d8dee6;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.filter-checkbox:hover {
    border-color: rgba(0, 212, 255, 0.25);
    background: rgba(0, 212, 255, 0.08);
}

.filter-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #7d8a96;
    background: #1a1a1a;
    position: relative;
    flex-shrink: 0;
}

.filter-checkbox input:checked + .checkmark {
    background: #00d4ff;
    border-color: #00d4ff;
}

.filter-checkbox input:checked + .checkmark::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #101820;
}

.filter-label-text {
    flex: none;
}

.sort-select {
    width: 200px;
    height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #4a4a4a;
    background: #1f1f1f;
    color: #ffffff;
    font-size: 15px;
    outline: none;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    height: 200px;
    border: 1px solid #404040;
}

.category-card-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card-title {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    min-height: 68px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card-subtitle {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 12px;
    min-height: 20px;
    display: flex;
    align-items: center;
}

.category-card-description {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 67px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 42px;
}

.search-results-panel {
    padding: 24px;
}

.search-results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.simple-search-results-panel {
    padding: 24px;
}

.simple-search-toolbar {
    margin-bottom: 18px;
}

.results-header-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.results-count {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.results-helper-text {
    color: #95a3af;
    font-size: 14px;
}

.view-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.view-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: #a7b5c2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn.active,
.view-btn:hover {
    background: #00d4ff;
    color: #0f1720;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.results-grid.list-view {
    grid-template-columns: 1fr;
}

.game-card {
    background: linear-gradient(180deg, #2d2d2d 0%, #242424 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.game-card:hover,
.game-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.32);
    border-color: rgba(0, 212, 255, 0.28);
    outline: none;
}

.game-card.list-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.game-card-image-container {
    position: relative;
    overflow: hidden;
}

.game-card-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.game-card.list-card .game-card-image {
    height: 100%;
    min-height: 100%;
}

.game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 15, 20, 0.05) 0%, rgba(10, 15, 20, 0.72) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.game-card-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.game-card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.game-card-header,
.game-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.game-card-footer.compact {
    align-items: flex-end;
}

.game-card-category {
    font-size: 12px;
    color: #7bdfff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0;
}

.game-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
    line-height: 1.35;
}

.game-card-description {
    color: #adb8c3;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-card-tag {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.14);
    color: #9befff;
    font-size: 12px;
}

.game-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-card-plays,
.game-card-difficulty,
.game-card-free {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.game-card-plays,
.game-card-difficulty {
    background: rgba(255, 255, 255, 0.06);
    color: #d5dee7;
}

.game-card-free {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.game-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.game-card-info-btn,
.game-card-play-btn.text-btn {
    min-width: 108px;
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
}

.game-card-info-btn {
    background: transparent;
    color: #dbe4ee;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.game-card-play-btn.text-btn {
    background: #00d4ff;
    color: #0f1720;
}

.game-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.game-badge.new {
    background: linear-gradient(135deg, #00d4ff 0%, #0088ff 100%);
}

.game-badge.popular {
    background: linear-gradient(135deg, #ff8a00 0%, #ff5a36 100%);
}

.game-badge.trending {
    background: linear-gradient(135deg, #8f5bff 0%, #d946ef 100%);
}

mark {
    background: rgba(0, 212, 255, 0.18);
    color: #ffffff;
    padding: 0 2px;
    border-radius: 4px;
}

.search-no-results {
    margin-top: 18px;
    padding: 54px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
}

.no-results-icon {
    margin-bottom: 14px;
    color: #00d4ff;
}

.no-results-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.browse-categories-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    background: #00d4ff;
    color: #0f1720;
    font-weight: 700;
    text-decoration: none;
}

.browse-categories-btn.secondary {
    background: transparent;
    color: #dbe7f1;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 768px) {
    .search-page {
        padding: 20px 14px 48px;
    }

    .search-simple-header,
    .search-simple-filters,
    .search-results-panel {
        padding: 18px;
        border-radius: 16px;
    }

    .search-title {
        font-size: 28px;
    }

    .search-header-topbar,
    .search-hero-summary,
    .search-simple-form,
    .search-simple-filters,
    .search-results-toolbar,
    .game-card-header,
    .game-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .search-query {
        font-size: 28px;
    }

    .search-query-accent {
        width: 100%;
        max-width: 180px;
    }

    .sort-select {
        width: 100%;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .game-card.list-card {
        grid-template-columns: 1fr;
    }

    .game-card.list-card .game-card-image {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .search-page {
        padding: 16px 10px 40px;
    }

    .search-title {
        font-size: 24px;
    }

    .search-description {
        font-size: 14px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .game-card-tag,
    .game-card-plays,
    .game-card-difficulty,
    .game-card-free {
        font-size: 11px;
    }
}

/* Category indicator */
.category-indicator {
    display: inline-block;
    background-color: #404040;
    color: #cccccc;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}
/* Game List Section */
.game-list-section {
    background-color: #1a1a1a;
    padding: 60px 20px;
}

.game-list-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

.section-nav {
    display: flex;
    gap: 12px;
}

.nav-arrow {
    background-color: #2d2d2d;
    border: none;
    color: #cccccc;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background-color: #404040;
    color: #ffffff;
}

.nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.game-grid-wrapper {
    overflow: hidden;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    transition: transform 0.3s ease;
}

.game-card {
    background-color: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.game-card-content {
    padding: 16px;
}

.game-card-category {
    font-size: 12px;
    color: #888888;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.game-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card-price {
    font-size: 14px;
    color: #cccccc;
    font-weight: 500;
}

.game-card-free {
    color: #00d4ff;
    font-weight: 600;
}

/* First Run Badge */
.first-run-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #ff6b35;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsive for Game List */
@media (max-width: 1200px) {
    .game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .game-list-section {
        padding: 40px 16px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .game-card-image {
        height: 150px;
    }
    
    .game-card-content {
        padding: 12px;
    }
    
    .game-card-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .game-card-image {
        height: 120px;
    }
    
    .game-card-content {
        padding: 10px;
    }
    
    .game-card-title {
        font-size: 13px;
    }
}
/* Categories Section */
.categories-section {
    background:
        radial-gradient(circle at top, rgba(0, 212, 255, 0.08), transparent 35%),
        linear-gradient(180deg, #151515 0%, #111111 100%);
    padding: 72px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.categories-container {
    max-width: 1400px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    grid-auto-rows: minmax(220px, auto);
}

.category-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    min-height: 240px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    display: flex;
}

.category-card:nth-child(1),
.category-card:nth-child(4) {
    grid-column: span 6;
}

.category-card:nth-child(2),
.category-card:nth-child(3),
.category-card:nth-child(5),
.category-card:nth-child(6) {
    grid-column: span 3;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
    border-color: rgba(0, 212, 255, 0.42);
}

.category-card-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.42;
    transform: scale(1.02);
    transition: transform 0.45s ease, opacity 0.35s ease;
}

.category-card:hover .category-card-background {
    opacity: 0.56;
    transform: scale(1.08);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 10, 14, 0.18) 0%, rgba(7, 10, 14, 0.84) 72%, rgba(7, 10, 14, 0.96) 100%),
        linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(156, 89, 255, 0.12));
}

.category-card-content {
    position: relative;
    z-index: 2;
    padding: 22px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.category-card-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.category-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.category-card-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-card-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.08;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card-subtitle {
    font-size: 13px;
    color: #cfe8ff;
    opacity: 0.95;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-card-description {
    max-width: 48ch;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.category-card-count {
    max-width: 26ch;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card-action {
    flex-shrink: 0;
    background: #ffffff;
    color: #111111;
    border: none;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.16);
}

.category-card-action:hover {
    background-color: #00d4ff;
    color: #0d1117;
    transform: translateX(3px);
}

.category-card-action svg {
    width: 16px;
    height: 16px;
}

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

    .category-card:nth-child(1),
    .category-card:nth-child(2),
    .category-card:nth-child(3),
    .category-card:nth-child(4),
    .category-card:nth-child(5),
    .category-card:nth-child(6) {
        grid-column: span 1;
    }

    .category-card {
        min-height: 260px;
    }
}

@media (max-width: 640px) {
    .categories-section {
        padding: 56px 16px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .category-card {
        min-height: 220px;
        border-radius: 20px;
    }

    .category-card-content {
        padding: 18px;
    }

    .category-card-topbar,
    .category-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .category-card-description,
    .category-card-count {
        max-width: 100%;
    }
}

/* Category specific colors */
.category-card.action {
    border-color: #ff6b35;
}

.category-card.action:hover {
    border-color: #ff6b35;
}

.category-card.action .category-card-action {
    border-color: #ff6b35;
    color: #ff6b35;
    background-color: rgba(255, 107, 53, 0.2);
}

.category-card.action .category-card-action:hover {
    background-color: #ff6b35;
    color: #ffffff;
}

.category-card.puzzle {
    border-color: #9b59b6;
}

.category-card.puzzle:hover {
    border-color: #9b59b6;
}

.category-card.puzzle .category-card-action {
    border-color: #9b59b6;
    color: #9b59b6;
    background-color: rgba(155, 89, 182, 0.2);
}

.category-card.puzzle .category-card-action:hover {
    background-color: #9b59b6;
    color: #ffffff;
}

.category-card.arcade {
    border-color: #e74c3c;
}

.category-card.arcade:hover {
    border-color: #e74c3c;
}

.category-card.arcade .category-card-action {
    border-color: #e74c3c;
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.2);
}

.category-card.arcade .category-card-action:hover {
    background-color: #e74c3c;
    color: #ffffff;
}

.category-card.sports {
    border-color: #27ae60;
}

.category-card.sports:hover {
    border-color: #27ae60;
}

.category-card.sports .category-card-action {
    border-color: #27ae60;
    color: #27ae60;
    background-color: rgba(39, 174, 96, 0.2);
}

.category-card.sports .category-card-action:hover {
    background-color: #27ae60;
    color: #ffffff;
}

.category-card.racing {
    border-color: #f39c12;
}

.category-card.racing:hover {
    border-color: #f39c12;
}

.category-card.racing .category-card-action {
    border-color: #f39c12;
    color: #f39c12;
    background-color: rgba(243, 156, 18, 0.2);
}

.category-card.racing .category-card-action:hover {
    background-color: #f39c12;
    color: #ffffff;
}

.category-card.hypercasual {
    border-color: #3498db;
}

.category-card.hypercasual:hover {
    border-color: #3498db;
}

.category-card.hypercasual .category-card-action {
    border-color: #3498db;
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.2);
}

.category-card.hypercasual .category-card-action:hover {
    background-color: #3498db;
    color: #ffffff;
}

/* Mobile Responsive for Categories */
@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .categories-section {
        padding: 40px 16px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .category-card {
        min-height: 160px;
    }
    
    .category-card-content {
        padding: 20px;
    }
    
    .category-card-title {
        font-size: 24px;
    }
    
    .category-card-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .category-card {
        min-height: 140px;
    }
    
    .category-card-content {
        padding: 16px;
    }
    
    .category-card-title {
        font-size: 20px;
    }
    
    .category-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
/* Featured Stories Section */
.featured-stories-section {
    background-color: #1a1a1a;
    padding: 60px 20px;
    border-top: 1px solid #2d2d2d;
}

.featured-stories-container {
    max-width: 1400px;
    margin: 0 auto;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.story-card {
    background-color: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 320px;
}

.story-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.story-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.story-card:hover .story-card-image {
    transform: scale(1.05);
}

.story-card-content {
    padding: 20px;
    position: relative;
}

.story-card-category {
    display: inline-block;
    background-color: #00d4ff;
    color: #1a1a1a;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.story-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-card-description {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.story-card-meta {
    font-size: 12px;
    color: #888888;
}

.story-card-action {
    background-color: #404040;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.story-card-action:hover {
    background-color: #00d4ff;
    color: #1a1a1a;
}

/* Story card variants */
.story-card.large {
    grid-column: span 1;
    min-height: 320px;
}

.story-card.large .story-card-content {
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.story-card.large .story-card-title {
    font-size: 20px;
    -webkit-line-clamp: 2;
}

.story-card.large .story-card-description {
    font-size: 16px;
    -webkit-line-clamp: 3;
    flex-grow: 1;
}

/* Story categories with different colors */
.story-card-category.action {
    background-color: #ff6b35;
    color: #ffffff;
}

.story-card-category.puzzle {
    background-color: #9b59b6;
    color: #ffffff;
}

.story-card-category.arcade {
    background-color: #e74c3c;
    color: #ffffff;
}

.story-card-category.sports {
    background-color: #27ae60;
    color: #ffffff;
}

.story-card-category.racing {
    background-color: #f39c12;
    color: #ffffff;
}

.story-card-category.hypercasual {
    background-color: #3498db;
    color: #ffffff;
}

.story-card-category.adventure {
    background-color: #16a085;
    color: #ffffff;
}

.story-card-category.strategy {
    background-color: #8e44ad;
    color: #ffffff;
}

/* Featured story overlay effect */
.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 60%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

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

/* Mobile Responsive for Featured Stories */
@media (max-width: 992px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .story-card.large {
        grid-column: span 1;
    }
    
    .story-card.large .story-card-title {
        font-size: 20px;
    }
    
    .story-card.large .story-card-description {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .featured-stories-section {
        padding: 40px 16px;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .story-card {
        min-height: 280px;
    }
    
    .story-card-image {
        height: 160px;
    }
    
    .story-card-content {
        padding: 16px;
    }
    
    .story-card-title {
        font-size: 16px;
    }
    
    .story-card-description {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .story-card {
        min-height: 240px;
    }
    
    .story-card-image {
        height: 140px;
    }
    
    .story-card-content {
        padding: 12px;
    }
    
    .story-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
/* Top New Releases Section */
.new-releases-section {
    background-color: #1a1a1a;
    padding: 60px 20px;
    border-top: 1px solid #2d2d2d;
}

.new-releases-container {
    max-width: 1400px;
    margin: 0 auto;
}

.releases-wrapper {
    overflow: hidden;
    position: relative;
}

.releases-scroll {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    padding: 4px 0;
}

.release-card {
    flex: 0 0 220px;
    background-color: #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.release-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.release-card-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.release-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.release-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 60%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.release-card:hover .release-card-overlay {
    opacity: 1;
}

.release-card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2;
}

.release-card:hover .release-card-play-btn {
    opacity: 1;
    background-color: #00d4ff;
    border-color: #00d4ff;
    color: #1a1a1a;
}

.release-card-play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 2px;
}

.release-card-content {
    padding: 16px;
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.release-card-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.release-card-category {
    font-size: 11px;
    color: #888888;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.release-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.release-card-footer {
    margin-top: auto;
}

.release-card-price-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.release-card-discount {
    background-color: #00d4ff;
    color: #1a1a1a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.release-card-original-price {
    color: #888888;
    text-decoration: line-through;
    font-size: 12px;
}

.release-card-current-price {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.release-card-free {
    color: #00d4ff;
    font-weight: 600;
    font-size: 14px;
}

.release-card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.release-card-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.release-card-badge.new {
    background-color: #27ae60;
    color: #ffffff;
}

.release-card-badge.trial {
    background-color: #f39c12;
    color: #ffffff;
}

.release-card-badge.early-access {
    background-color: #9b59b6;
    color: #ffffff;
}

.release-card-rating {
    font-size: 11px;
    color: #888888;
}

/* Release card variants */
.release-card.featured {
    flex: 0 0 220px;
}

.release-card.featured .release-card-image-container {
    height: 200px;
}

.release-card.featured .release-card-content {
    min-height: 112px;
    padding: 16px;
}

.release-card.featured .release-card-title {
    font-size: 16px;
    min-height: 42px;
    -webkit-line-clamp: 2;
}

/* Scroll navigation */
.releases-scroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.releases-scroll-nav:hover {
    background-color: #00d4ff;
    color: #1a1a1a;
}

.releases-scroll-nav.prev {
    left: -20px;
}

.releases-scroll-nav.next {
    right: -20px;
}

/* Mobile Responsive for New Releases */
@media (max-width: 992px) {
    .release-card,
    .release-card.featured {
        flex: 0 0 220px;
    }

    .release-card-image-container,
    .release-card.featured .release-card-image-container {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .new-releases-section {
        padding: 40px 16px;
    }
    
    .release-card,
    .release-card.featured {
        flex: 0 0 200px;
    }
    
    .release-card-image-container,
    .release-card.featured .release-card-image-container {
        height: 160px;
    }
    
    .release-card-content,
    .release-card.featured .release-card-content {
        padding: 12px;
        min-height: 104px;
    }
    
    .release-card-title,
    .release-card.featured .release-card-title {
        font-size: 14px;
        min-height: 36px;
    }
    
    .releases-scroll {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .release-card,
    .release-card.featured {
        flex: 0 0 180px;
    }
    
    .release-card-image-container,
    .release-card.featured .release-card-image-container {
        height: 140px;
    }
    
    .release-card-content,
    .release-card.featured .release-card-content {
        min-height: 96px;
        padding: 10px;
    }
    
    .release-card-title,
    .release-card.featured .release-card-title {
        min-height: 34px;
    }
    
    .releases-scroll {
        gap: 10px;
    }
}
/* Most Popular Section */
.most-popular-section {
    background-color: #1a1a1a;
    padding: 60px 20px;
    border-top: 1px solid #2d2d2d;
}

.most-popular-container {
    max-width: 1400px;
    margin: 0 auto;
}

.popular-wrapper {
    overflow: hidden;
    position: relative;
}

.popular-scroll {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease;
    padding: 4px 0;
}

.popular-card {
    flex: 0 0 220px;
    background-color: #2d2d2d;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.popular-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.popular-card-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.popular-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popular-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popular-card:hover .popular-card-overlay {
    opacity: 1;
}

.popular-card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 2;
}

.popular-card:hover .popular-card-play-btn {
    opacity: 1;
    background-color: #00d4ff;
    border-color: #00d4ff;
    color: #1a1a1a;
}

.popular-card-play-btn svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.popular-card-content {
    padding: 12px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.popular-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.popular-card-category {
    font-size: 10px;
    color: #888888;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.popular-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-card-footer {
    margin-top: auto;
}

.popular-card-price-section {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.popular-card-discount {
    background-color: #00d4ff;
    color: #1a1a1a;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.popular-card-original-price {
    color: #888888;
    text-decoration: line-through;
    font-size: 11px;
}

.popular-card-current-price {
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
}

.popular-card-free {
    color: #00d4ff;
    font-weight: 600;
    font-size: 12px;
}

.popular-card-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.popular-card-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.popular-card-badge.bestseller {
    background-color: #f39c12;
    color: #ffffff;
}

.popular-card-badge.trending {
    background-color: #e74c3c;
    color: #ffffff;
}

.popular-card-badge.top-rated {
    background-color: #27ae60;
    color: #ffffff;
}

.popular-card-rating {
    font-size: 10px;
    color: #888888;
    display: flex;
    align-items: center;
    gap: 2px;
}

.popular-card-rating-stars {
    color: #f39c12;
    font-size: 12px;
}

/* Popular card variants - Enhanced version */
.popular-card.enhanced {
    flex: 0 0 220px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border: 1px solid #404040;
}

.popular-card.enhanced:hover {
    border-color: #00d4ff;
    box-shadow: 0 16px 32px rgba(0, 212, 255, 0.2);
}

.popular-card.enhanced .popular-card-image-container {
    height: 180px;
}

.popular-card.enhanced .popular-card-content {
    min-height: 120px;
    padding: 12px;
}

.popular-card.enhanced .popular-card-title {
    font-size: 14px;
    min-height: 36px;
    -webkit-line-clamp: 2;
}

.popular-card.enhanced .popular-card-category {
    font-size: 10px;
}

/* Popularity indicators */
.popular-card-popularity {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.popular-card-popularity.hot {
    background-color: rgba(231, 76, 60, 0.9);
}

.popular-card-popularity.trending {
    background-color: rgba(243, 156, 18, 0.9);
}

.popular-card-popularity.top {
    background-color: rgba(39, 174, 96, 0.9);
}

.popular-card-popularity-icon {
    width: 12px;
    height: 12px;
}

/* Mobile Responsive for Most Popular */
@media (max-width: 992px) {
    .popular-card,
    .popular-card.enhanced {
        flex: 0 0 200px;
    }
    
    .popular-card-image-container,
    .popular-card.enhanced .popular-card-image-container {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .most-popular-section {
        padding: 40px 16px;
    }
    
    .popular-card,
    .popular-card.enhanced {
        flex: 0 0 180px;
    }
    
    .popular-card-image-container,
    .popular-card.enhanced .popular-card-image-container {
        height: 140px;
    }
    
    .popular-card-content,
    .popular-card.enhanced .popular-card-content {
        padding: 10px;
        min-height: 110px;
    }
    
    .popular-card-title,
    .popular-card.enhanced .popular-card-title {
        font-size: 13px;
        min-height: 34px;
    }
    
    .popular-scroll {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .popular-card,
    .popular-card.enhanced {
        flex: 0 0 160px;
    }
    
    .popular-card-image-container,
    .popular-card.enhanced .popular-card-image-container {
        height: 120px;
    }
    
    .popular-card-content,
    .popular-card.enhanced .popular-card-content {
        min-height: 100px;
        padding: 8px;
    }

    .popular-card-title,
    .popular-card.enhanced .popular-card-title {
        min-height: 32px;
    }
    
    .popular-scroll {
        gap: 10px;
    }
}
/* Footer Styles */
.footer {
    background-color: #0d1117;
    border-top: 1px solid #2d2d2d;
    margin-top: 60px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

/* Footer Brand */
.footer-brand {
    max-width: 300px;
}

.footer-logo h3 {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.footer-description {
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #21262d;
    color: #8b949e;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: #00d4ff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Footer Sections */
.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-link {
    color: #8b949e;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 4px 0;
}

.footer-link:hover {
    color: #00d4ff;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #21262d;
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    color: #8b949e;
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-legal-link {
    color: #8b949e;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 4px 0;
}

.footer-legal-link:hover {
    color: #00d4ff;
}

/* Mobile Responsive for Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding: 40px 0 32px;
    }
    
    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 0 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 0 24px;
    }
    
    .footer-brand {
        grid-column: span 1;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .footer-legal {
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-legal-link {
        padding: 8px 0;
        border-bottom: 1px solid #21262d;
    }
    
    .footer-legal-link:last-child {
        border-bottom: none;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .footer-content {
        padding: 24px 0 20px;
    }
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 1200;
    display: flex;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(32px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.cookie-consent.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-consent.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    pointer-events: none;
}

.cookie-consent-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 12px 32px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    background: linear-gradient(180deg, rgba(5, 18, 30, 0.98), rgba(6, 24, 38, 0.98));
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.cookie-consent-description {
    margin: 0;
    flex: 1;
    color: rgba(232, 244, 255, 0.84);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.cookie-consent-link {
    color: #8adfff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.cookie-consent-link:hover {
    color: #c0f2ff;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-btn {
    min-width: 92px;
    padding: 12px 22px;
    border: 1px solid rgba(0, 212, 255, 0.16);
    border-radius: 8px;
    background: linear-gradient(180deg, #1fd0ff, #1094de);
    color: #03121d;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 180, 255, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.cookie-consent-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 180, 255, 0.28);
    filter: brightness(1.04);
}

.cookie-consent-btn:active {
    transform: translateY(0);
}

.cookie-consent-btn-secondary {
    background: transparent;
    color: #d9f6ff;
    border-color: rgba(61, 193, 255, 0.32);
    box-shadow: none;
}

.cookie-consent-btn-secondary:hover {
    background: rgba(0, 212, 255, 0.08);
    box-shadow: none;
    filter: none;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 14px;
    }

    .cookie-consent-description {
        font-size: 13px;
        text-align: left;
    }

    .cookie-consent-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-consent-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent-content {
        padding: 14px 12px;
    }

    .cookie-consent-actions {
        grid-template-columns: 1fr;
    }
}

/* Legal Pages Styles */
.legal-page {
    background-color: #1a1a1a;
    min-height: calc(100vh - 140px);
    padding: 40px 20px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2d2d2d;
}

.legal-header h1 {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
}

.legal-subtitle {
    color: #8b949e;
    font-size: 16px;
    margin: 0;
}

.legal-content {
    color: #ffffff;
    line-height: 1.7;
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #00d4ff;
}

.legal-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    margin-top: 20px;
}

.legal-section p {
    color: #cccccc;
    margin-bottom: 16px;
}

.legal-section ul {
    color: #cccccc;
    margin-bottom: 16px;
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 8px;
}

/* Contact Page Specific Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.contact-item {
    background-color: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #00d4ff;
}

.contact-item h3 {
    color: #00d4ff;
    margin-bottom: 12px;
    margin-top: 0;
}

.contact-item p {
    margin-bottom: 8px;
    color: #cccccc;
}

.faq-item {
    background-color: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.faq-item h3 {
    color: #00d4ff;
    margin-top: 0;
    margin-bottom: 12px;
}

.faq-item p {
    margin-bottom: 0;
    color: #cccccc;
}

/* About Page Specific Styles */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.value-item {
    background-color: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.value-item h3 {
    color: #00d4ff;
    margin-bottom: 12px;
    margin-top: 0;
}

.value-item p {
    margin-bottom: 0;
    color: #cccccc;
}

/* Cookie Policy Specific Styles */
.cookie-type {
    background-color: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #00d4ff;
}

.cookie-type h3 {
    color: #00d4ff;
    margin-top: 0;
    margin-bottom: 12px;
}

.cookie-type p {
    margin-bottom: 8px;
    color: #cccccc;
}

.cookie-type p:last-child {
    margin-bottom: 0;
}

/* Mobile Responsive for Legal Pages */
@media (max-width: 768px) {
    .legal-page {
        padding: 20px 16px;
    }
    
    .legal-header h1 {
        font-size: 28px;
    }
    
    .legal-subtitle {
        font-size: 14px;
    }
    
    .legal-section h2 {
        font-size: 20px;
    }
    
    .legal-section h3 {
        font-size: 16px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-item,
    .value-item,
    .cookie-type,
    .faq-item {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 24px;
    }
    
    .legal-section h2 {
        font-size: 18px;
    }
    
    .legal-section h3 {
        font-size: 15px;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 14px;
    }
}
/* Updated styles for free games */
.release-card-plays,
.popular-card-plays {
    font-size: 10px;
    color: #888888;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.release-card-play-count,
.popular-card-play-count {
    color: #00d4ff;
    font-weight: 500;
}

.release-card-difficulty,
.popular-card-difficulty {
    color: #cccccc;
    font-size: 9px;
}

.release-card-badge.new {
    background-color: #27ae60;
    color: #ffffff;
}

.release-card-badge.trending {
    background-color: #f39c12;
    color: #ffffff;
}

.release-card-badge.popular {
    background-color: #e74c3c;
    color: #ffffff;
}

.popular-card-badge.bestseller {
    background-color: #f39c12;
    color: #ffffff;
}

/* Remove price-related styles that are no longer needed */
.release-card-price-section,
.popular-card-price-section,
.release-card-discount,
.popular-card-discount,
.release-card-original-price,
.popular-card-original-price,
.release-card-current-price,
.popular-card-current-price {
    display: none;
}

/* Ensure free to play text is visible */
.release-card-free,
.popular-card-free {
    color: #00d4ff !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}
/* Game Detail Page Styles */
.game-detail-page {
    background:
        radial-gradient(circle at top, rgba(0, 212, 255, 0.08), transparent 30%),
        linear-gradient(180deg, #141414 0%, #101010 100%);
    min-height: calc(100vh - 140px);
    padding: 48px 20px 72px;
}

.game-detail-container {
    max-width: 1400px;
    margin: 0 auto;
}

.game-header {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 32px;
    margin-bottom: 36px;
    align-items: stretch;
}

.game-image-section {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 520px;
    background: linear-gradient(135deg, #0f1720 0%, #132130 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.35);
}

.game-image-glow {
    position: absolute;
    inset: auto auto -80px -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.16);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}

.game-main-image {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}

.game-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.game-badge {
    background: rgba(15, 23, 32, 0.78);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.game-info-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.game-breadcrumb {
    color: #8da1b3;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.game-breadcrumb a {
    color: #7be7ff;
    text-decoration: none;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.34);
}

.game-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
    min-height: 520px;
    padding: 30px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.025) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.game-title-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.game-title {
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.03em;
}

.game-summary {
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.74);
    font-size: 17px;
    line-height: 1.8;
}

.game-category {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    color: #0b1117;
    background: linear-gradient(135deg, #7de8ff 0%, #00d4ff 100%);
    font-size: 12px;
    font-weight: 800;
    padding: 8px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-label {
    color: #91a0ae;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.stat-value {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

.stat-value.free {
    color: #72e5ff;
}

.game-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.play-game-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #7de8ff 100%);
    color: #081018;
    border: none;
    padding: 16px 28px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 18px 36px rgba(0, 212, 255, 0.24);
}

.play-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 40px rgba(0, 212, 255, 0.3);
}

.share-btn {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 22px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
}

.share-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.24);
    transform: translateY(-2px);
}

.game-description-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 42px;
}

.detail-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.detail-card {
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.025) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.detail-card-primary {
    padding: 32px;
}

.game-description-section h2,
.game-description-section h3,
.related-games-section h2 {
    color: #ffffff;
    margin-bottom: 18px;
}

.game-description-section h2,
.related-games-section h2 {
    font-size: 28px;
}

.game-description-section h3 {
    font-size: 20px;
}

.game-description,
.game-instructions p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.9;
    margin-bottom: 0;
    font-size: 16px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.game-tag {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.related-games-section h2 {
    margin-bottom: 24px;
}

.related-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

@media (max-width: 980px) {
    .game-header {
        grid-template-columns: 1fr;
    }

    .game-image-section,
    .game-main-image,
    .game-info-panel {
        min-height: auto;
    }

    .game-main-image {
        height: 420px;
    }

    .detail-card-grid,
    .game-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .game-detail-page {
        padding: 28px 16px 56px;
    }

    .game-image-section {
        min-height: 280px;
        border-radius: 22px;
    }

    .game-main-image {
        height: 280px;
    }

    .game-info-panel,
    .detail-card,
    .detail-card-primary {
        padding: 22px;
        border-radius: 20px;
    }

    .game-title {
        font-size: 36px;
    }

    .game-summary {
        font-size: 15px;
    }

    .play-game-btn,
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Category Page Styles */
.category-page {
    background-color: #1a1a1a;
    min-height: calc(100vh - 140px);
    padding: 40px 20px;
}

.category-container {
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.breadcrumb {
    color: #888888;
    font-size: 14px;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: #00d4ff;
    text-decoration: none;
}

.page-title {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
}

.page-subtitle {
    color: #cccccc;
    font-size: 16px;
}

.category-filter {
    background-color: #2d2d2d;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-tab {
    background-color: #404040;
    color: #cccccc;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-tab.active,
.filter-tab:hover {
    background-color: #00d4ff;
    color: #1a1a1a;
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-control label {
    color: #cccccc;
    font-size: 14px;
}

.sort-select {
    background-color: #404040;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.view-control {
    display: flex;
    gap: 4px;
}

.view-btn {
    background-color: #404040;
    color: #cccccc;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background-color: #00d4ff;
    color: #1a1a1a;
}

.games-section {
    margin-bottom: 40px;
}

.games-count {
    color: #cccccc;
    font-size: 16px;
    margin-bottom: 24px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.games-grid.list-view {
    grid-template-columns: 1fr;
}

.load-more-section {
    text-align: center;
    display: flex;
    justify-content: center;
    width: 100%;
}

.load-more-btn {
    background-color: #2d2d2d;
    color: #ffffff;
    border: 1px solid #404040;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #404040;
    border-color: #00d4ff;
}

/* Search Page Styles */
.search-page {
    background-color: #1a1a1a;
    min-height: calc(100vh - 140px);
    padding: 40px 20px;
}

.search-container {
    max-width: 1400px;
    margin: 0 auto;
}

.search-header {
    margin-bottom: 32px;
}

.search-title {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 16px;
}

.search-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.search-query {
    color: #00d4ff;
    font-size: 18px;
    font-weight: 600;
}

.search-results-count {
    color: #cccccc;
    font-size: 16px;
}

.search-filters {
    background-color: #2d2d2d;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
}

.filter-section h3 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 16px;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cccccc;
    cursor: pointer;
    font-size: 14px;
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #404040;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #00d4ff;
    border-color: #00d4ff;
}

.filter-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '閴?;
    position: absolute;
    top: -2px;
    left: 2px;
    color: #1a1a1a;
    font-size: 12px;
    font-weight: bold;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.results-count {
    color: #cccccc;
    font-size: 16px;
}

.view-controls {
    display: flex;
    gap: 4px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.results-grid.list-view {
    grid-template-columns: 1fr;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #cccccc;
}

.no-results-icon {
    margin-bottom: 24px;
    color: #404040;
}

.no-results h3 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 16px;
}

.no-results p {
    font-size: 16px;
    margin-bottom: 24px;
}

.browse-categories-btn {
    background-color: #00d4ff;
    color: #1a1a1a;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.browse-categories-btn:hover {
    background-color: #00b8e6;
}

/* Play Page Styles */
.play-page {
    background-color: #000000;
    height: calc(100vh - 70px);
    position: relative;
    overflow: hidden;
}

.play-header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #2d2d2d;
}

.play-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    background-color: #2d2d2d;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background-color: #404040;
}

.play-game-title h1 {
    font-size: 20px;
    color: #ffffff;
    margin: 0;
}

.play-game-category {
    color: #00d4ff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    background-color: #2d2d2d;
    color: #cccccc;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background-color: #404040;
    color: #ffffff;
}

.game-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gameFrame {
    width: 100%;
    height: 100%;
    border: none;
}

.game-loading,
.game-error {
    text-align: center;
    color: #ffffff;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #2d2d2d;
    border-top: 4px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.game-loading h2,
.game-error h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.game-loading p,
.game-error p {
    color: #cccccc;
    font-size: 16px;
    margin-bottom: 24px;
}

.error-icon {
    color: #e74c3c;
    margin-bottom: 24px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.retry-btn,
.back-home-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn {
    background-color: #00d4ff;
    color: #1a1a1a;
    border: none;
}

.retry-btn:hover {
    background-color: #00b8e6;
}

.back-home-btn {
    background-color: #2d2d2d;
    color: #ffffff;
    border: 1px solid #404040;
}

.back-home-btn:hover {
    background-color: #404040;
}

.mobile-game-info {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    border-top: 1px solid #2d2d2d;
    transform: translateY(calc(100% - 60px));
    transition: transform 0.3s ease;
    z-index: 1000;
}

.mobile-game-info.expanded {
    transform: translateY(0);
}

.mobile-info-content {
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.mobile-info-content h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 8px;
}

.mobile-info-content p {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.mobile-game-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-stat {
    color: #cccccc;
    font-size: 14px;
}

.mobile-stat strong {
    color: #00d4ff;
}

.mobile-info-toggle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2d2d2d;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
}

/* Mobile Responsive for New Pages */
@media (max-width: 768px) {
    .game-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .game-main-image {
        height: 250px;
    }
    
    .game-title {
        font-size: 28px;
    }
    
    .game-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .game-actions {
        flex-direction: column;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .category-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .play-header .header-container {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .play-game-title {
        order: -1;
        width: 100%;
        text-align: center;
    }
    
    .mobile-game-info {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-game-info {
        display: none;
    }
}

/* ============================================================
   FREECHILLGAME OVERRIDES 鈥?neon dark theme for shared pages
   ============================================================ */
body { background-color: var(--fb-bg) !important; color: var(--fb-text) !important; }

.header { background-color: rgba(13,13,15,0.95) !important; border-bottom-color: var(--fb-border) !important; backdrop-filter: blur(18px); }
.logo h1 { color: #fff !important; }
.nav-link { color: var(--fb-muted) !important; }
.nav-link:hover, .nav-link.active { color: var(--fb-neon) !important; background: rgba(200,80,192,0.1) !important; border-radius: 8px; }
.search-container { background: var(--fb-bg3) !important; border-color: var(--fb-border) !important; }
.search-container:focus-within { border-color: var(--fb-neon) !important; box-shadow: 0 0 0 3px rgba(200,80,192,0.15) !important; }
.search-input { background: transparent !important; color: var(--fb-text) !important; border: none !important; }
.search-btn { background: linear-gradient(135deg, var(--fb-neon), var(--fb-neon2)) !important; color: #fff !important; }
.mobile-menu { background-color: var(--fb-bg) !important; }
.mobile-menu-header { border-bottom-color: var(--fb-border) !important; }
.mobile-menu-logo h2 { color: #fff !important; }
.mobile-menu-close { color: #fff !important; }
.mobile-nav-link { color: var(--fb-text) !important; border-bottom-color: var(--fb-border) !important; }
.mobile-nav-link:hover { color: var(--fb-neon) !important; background-color: rgba(200,80,192,0.08) !important; }
.mobile-search-overlay { background-color: var(--fb-bg) !important; }
.mobile-search-header h2 { color: #fff !important; }
.mobile-search-close { color: #fff !important; }
.mobile-search-input { background-color: var(--fb-bg3) !important; border-color: var(--fb-border) !important; color: #fff !important; }
.mobile-search-input:focus { border-color: var(--fb-neon) !important; }
.mobile-search-submit { background-color: var(--fb-neon) !important; color: #fff !important; }
.search-tag { background-color: var(--fb-bg3) !important; color: var(--fb-text) !important; border-color: var(--fb-border) !important; }
.search-tag:hover { background-color: var(--fb-neon) !important; color: #fff !important; border-color: var(--fb-neon) !important; }

/* Category page */
.category-page { background: var(--fb-bg) !important; }
.category-container { max-width: 1440px; margin: 0 auto; padding: 32px 24px; }
.page-title { color: var(--fb-text) !important; }
.page-subtitle { color: var(--fb-muted) !important; }
.breadcrumb a { color: var(--fb-neon) !important; }
.breadcrumb { color: var(--fb-muted) !important; }
.filter-tab { background: var(--fb-bg3) !important; color: var(--fb-muted) !important; border-color: var(--fb-border) !important; }
.filter-tab:hover, .filter-tab.active { background: linear-gradient(135deg, var(--fb-neon), var(--fb-neon2)) !important; color: #fff !important; border-color: transparent !important; }
.games-count { color: var(--fb-muted) !important; }
.game-card { background: var(--fb-card) !important; border-color: var(--fb-border) !important; }
.game-card:hover { border-color: rgba(200,80,192,0.4) !important; box-shadow: 0 16px 32px rgba(0,0,0,0.4) !important; }
.game-card-title { color: var(--fb-text) !important; }
.game-card-category { color: var(--fb-neon) !important; }
.game-card-description { color: var(--fb-muted) !important; }
.game-card-free { color: var(--fb-cyan) !important; background: rgba(0,245,212,0.08) !important; }
.load-more-btn { background: linear-gradient(135deg, var(--fb-neon), var(--fb-neon2)) !important; color: #fff !important; border: none !important; }

/* Game detail */
.game-detail-page { background: var(--fb-bg) !important; }
.game-detail-container { max-width: 1440px; margin: 0 auto; padding: 32px 24px; }
.game-title { color: var(--fb-text) !important; }
.game-category { color: var(--fb-neon) !important; }
.game-summary, .game-description { color: var(--fb-muted) !important; }
.detail-card { background: var(--fb-card) !important; border: 1px solid var(--fb-border) !important; border-radius: var(--fb-radius) !important; padding: 24px !important; }
.detail-card h2, .detail-card h3 { color: var(--fb-text) !important; }
.detail-card p { color: var(--fb-muted) !important; }
.game-tag { background: rgba(200,80,192,0.1) !important; border-color: rgba(200,80,192,0.2) !important; color: var(--fb-neon) !important; }
.play-game-btn { background: linear-gradient(135deg, var(--fb-neon), var(--fb-neon2)) !important; color: #fff !important; box-shadow: 0 8px 24px rgba(200,80,192,0.35) !important; }
.stat-item { background: var(--fb-bg3) !important; border: 1px solid var(--fb-border) !important; }
.stat-label { color: var(--fb-muted) !important; }
.stat-value { color: var(--fb-text) !important; }
.stat-value.free { color: var(--fb-cyan) !important; }
.related-games-section h2 { color: var(--fb-text) !important; }

/* Play page */
.play-page { background: var(--fb-bg) !important; }
.game-loading { background: var(--fb-bg2) !important; color: var(--fb-text) !important; }
.game-error { background: var(--fb-bg2) !important; color: var(--fb-text) !important; }
.retry-btn { background: linear-gradient(135deg, var(--fb-neon), var(--fb-neon2)) !important; color: #fff !important; }
.back-home-btn { color: var(--fb-neon) !important; }
.mobile-game-info { background: var(--fb-bg2) !important; border-top-color: var(--fb-border) !important; }
.mobile-game-info h3 { color: var(--fb-text) !important; }
.mobile-game-info p { color: var(--fb-muted) !important; }

/* Search page */
.search-page { background: var(--fb-bg) !important; }
.redesigned-search-header { background: var(--fb-bg2) !important; border-color: var(--fb-border) !important; }
.search-query { color: var(--fb-text) !important; }
.search-query-label { color: var(--fb-neon) !important; }
.search-results-badge { background: rgba(200,80,192,0.1) !important; border-color: rgba(200,80,192,0.2) !important; color: var(--fb-neon) !important; }
.results-count { color: var(--fb-text) !important; }
.search-results-panel { background: var(--fb-bg2) !important; border-color: var(--fb-border) !important; }
.no-results h3 { color: var(--fb-text) !important; }
.no-results p { color: var(--fb-muted) !important; }
.browse-categories-btn { background: linear-gradient(135deg, var(--fb-neon), var(--fb-neon2)) !important; color: #fff !important; }
mark { background: rgba(200,80,192,0.18) !important; color: #fff !important; }

/* Footer */
.footer { background: var(--fb-bg2) !important; border-top: 1px solid var(--fb-border) !important; }
.footer-logo h3 { color: #fff !important; }
.footer-description { color: var(--fb-muted) !important; }
.footer-title { color: var(--fb-muted) !important; }
.footer-link { color: var(--fb-text) !important; }
.footer-link:hover { color: var(--fb-neon) !important; }
.footer-copyright p { color: var(--fb-muted) !important; }
.footer-legal-link { color: var(--fb-muted) !important; }
.footer-legal-link:hover { color: var(--fb-neon) !important; }
.footer-bottom { border-top-color: var(--fb-border) !important; }

/* Inner page shell refresh */
body {
    position: relative;
}

.header {
    background: linear-gradient(90deg, rgba(10, 10, 14, 0.98), rgba(27, 16, 37, 0.92)) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.header-container {
    max-width: 1440px !important;
    min-height: 74px;
    gap: 22px !important;
}

.logo h1,
.mobile-menu-logo h2,
.footer-logo h3 {
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
}

.logo h1 span,
.mobile-menu-logo h2 span,
.footer-logo h3 span {
    color: var(--fb-neon) !important;
    text-shadow: 0 0 18px rgba(200, 80, 192, 0.45);
}

.nav-list {
    gap: 8px !important;
}

.nav-link {
    padding: 9px 14px !important;
    border: 1px solid transparent;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.02);
}

.nav-link:hover,
.nav-link.active {
    border-color: rgba(200, 80, 192, 0.28);
    box-shadow: 0 0 0 1px rgba(200, 80, 192, 0.08), 0 10px 24px rgba(65, 88, 208, 0.16);
}

.search-container {
    min-height: 46px;
    padding: 4px 4px 4px 18px !important;
    border-radius: 999px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.search-btn {
    width: 38px;
    height: 38px;
    border: none !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--fb-neon), var(--fb-neon2)) !important;
    color: #fff !important;
    box-shadow: 0 12px 22px rgba(65, 88, 208, 0.28);
}

.mobile-search-btn,
.mobile-menu-btn {
    color: var(--fb-text) !important;
}

.mobile-menu,
.mobile-search-overlay {
    background: rgba(9, 10, 14, 0.97) !important;
    backdrop-filter: blur(22px);
}

.mobile-search-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 36px 24px 40px;
}

.search-tag {
    padding: 10px 16px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(200, 80, 192, 0.2) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--fb-text) !important;
}

.search-tag:hover {
    background: rgba(200, 80, 192, 0.14) !important;
}

.page-header,
.legal-header,
.search-simple-header {
    position: relative;
    overflow: hidden;
    padding: 38px !important;
    border: 1px solid rgba(200, 80, 192, 0.24) !important;
    border-radius: 28px !important;
    background: linear-gradient(135deg, rgba(31, 19, 42, 0.9), rgba(17, 18, 28, 0.98)) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-header::before,
.legal-header::before,
.search-simple-header::before {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.2), transparent 68%);
    pointer-events: none;
}

.games-section,
.simple-search-results-panel,
.game-info-panel,
.detail-card,
.legal-section,
.contact-item,
.faq-item,
.game-loading,
.game-error,
.game-container {
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 24px !important;
    background: linear-gradient(180deg, rgba(22, 22, 31, 0.98), rgba(14, 14, 19, 0.98)) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

#gameFrame {
    border-radius: 24px;
}

.legal-section a,
.footer-note {
    color: var(--fb-cyan) !important;
}

.game-breadcrumb a,
.breadcrumb a {
    color: var(--fb-cyan) !important;
}

.filter-tabs {
    gap: 12px !important;
}

.filter-tab {
    padding: 12px 18px !important;
    border-radius: 999px !important;
}

.search-results-badge {
    box-shadow: 0 10px 24px rgba(200, 80, 192, 0.16);
}

.footer {
    background: linear-gradient(180deg, rgba(16, 17, 26, 0.98), rgba(9, 10, 14, 1)) !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
}

.footer-content {
    grid-template-columns: 1.4fr 1fr 1fr 1fr !important;
}

.footer-title {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px !important;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr !important;
    }
}

/* ===== FREECHILLGAME REDESIGN LAYER ===== */
.freechillgame-home {
    background:
        radial-gradient(circle at top, rgba(103, 232, 249, 0.16), transparent 26%),
        radial-gradient(circle at 80% 10%, rgba(139, 92, 246, 0.18), transparent 24%),
        linear-gradient(180deg, #020611 0%, #06101d 55%, #040913 100%);
}

.fb-starfield {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.85) 0 1px, transparent 1.5px),
        radial-gradient(circle at 75% 30%, rgba(255,255,255,0.7) 0 1px, transparent 1.5px),
        radial-gradient(circle at 55% 80%, rgba(103,232,249,0.5) 0 1px, transparent 1.5px),
        radial-gradient(circle at 35% 60%, rgba(139,92,246,0.45) 0 1px, transparent 1.5px);
    background-size: 320px 320px, 420px 420px, 360px 360px, 500px 500px;
    z-index: 0;
}

.fb-header {
    top: 14px;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    padding: 0;
}

.fb-header-inner {
    width: calc(100% - var(--fb-shell-gutter));
    max-width: var(--fb-shell-width);
    background: rgba(7, 14, 28, 0.8);
    border: 1px solid rgba(103, 232, 249, 0.18);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(2, 6, 18, 0.45);
    height: 76px;
    padding: 0 26px;
}

.fb-logo {
    letter-spacing: 0.08em;
    font-size: 20px;
    text-transform: uppercase;
}

.fb-nav {
    justify-content: flex-start;
    gap: 8px;
}

.fb-nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: #d2e9ff;
    border: 1px solid transparent;
    background: transparent;
}

.fb-nav-link:hover,
.fb-nav-link.active {
    border-color: rgba(103, 232, 249, 0.24);
    background: rgba(103, 232, 249, 0.08);
    color: #ffffff;
}

.fb-search-wrap {
    height: 46px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(103, 232, 249, 0.14);
}

.fb-search-input {
    color: #f5fbff;
}

.fb-search-input::placeholder {
    color: rgba(214, 232, 255, 0.54);
}

.fb-mobile-menu,
.fb-search-overlay-inner {
    background: linear-gradient(180deg, rgba(6, 12, 25, 0.98), rgba(3, 7, 16, 0.98));
    border: 1px solid rgba(103, 232, 249, 0.18);
}

:root {
    --fb-shell-width: 1240px;
    --fb-shell-gutter: 56px;
}

.fb-header-inner,
.fb-hero-inner,
.fb-hero-bottom,
.fb-home-grid,
.fb-footer-inner,
.fb-footer-bottom {
    width: calc(100% - var(--fb-shell-gutter));
    max-width: var(--fb-shell-width);
    margin-left: auto;
    margin-right: auto;
}

.fb-hero {
    position: relative;
    z-index: 1;
    padding: 42px 0 18px;
    min-height: 0;
}

.fb-hero-inner {
    width: calc(100% - var(--fb-shell-gutter));
    max-width: var(--fb-shell-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 28px;
    align-items: stretch;
    padding: 0;
    min-height: 0;
}

.fb-hero-content {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(139, 92, 246, 0.18);
    background:
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.22), transparent 38%),
        linear-gradient(160deg, rgba(10, 20, 38, 0.96), rgba(5, 11, 22, 0.96));
    padding: 42px;
    box-shadow: 0 30px 100px rgba(3, 8, 18, 0.52);
}

.fb-hero-content::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(103, 232, 249, 0.08);
    border-radius: 24px;
    pointer-events: none;
}

.fb-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(103, 232, 249, 0.08);
    color: var(--fb-cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.fb-hero-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fb-cyan);
    box-shadow: 0 0 14px var(--fb-cyan);
}

.fb-hero-badge {
    width: fit-content;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.fb-hero-title {
    font-size: clamp(3.2rem, 6vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    max-width: 9ch;
}

.fb-hero-desc {
    max-width: 56ch;
    font-size: 17px;
    color: #c3d4ea;
}

.fb-hero-actions {
    margin-top: 8px;
}

.fb-play-btn,
.fb-info-btn {
    min-height: 54px;
    border-radius: 999px;
}

.fb-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.fb-hero-metric {
    border-radius: 20px;
    border: 1px solid rgba(103, 232, 249, 0.14);
    background: rgba(255,255,255,0.04);
    padding: 16px 18px;
}

.fb-hero-metric span {
    display: block;
    margin-bottom: 8px;
    color: var(--fb-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.fb-hero-metric strong {
    display: block;
    font-size: 15px;
    line-height: 1.45;
}

.fb-hero-stage {
    display: grid;
    grid-template-rows: minmax(350px, 1fr) auto;
    gap: 16px;
}

.fb-hero-window {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid rgba(103, 232, 249, 0.16);
    background: linear-gradient(180deg, rgba(6, 14, 28, 0.96), rgba(9, 17, 34, 0.94));
    box-shadow: 0 30px 100px rgba(3, 8, 18, 0.52);
}

.fb-hero-bg {
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05) brightness(0.82);
}

.fb-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 10, 22, 0.02), rgba(4, 9, 18, 0.74)),
        radial-gradient(circle at 70% 30%, rgba(103, 232, 249, 0.16), transparent 28%);
}

.fb-hero-rings {
    position: absolute;
    inset: 0;
}

.fb-hero-rings::before,
.fb-hero-rings::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(103, 232, 249, 0.2);
    border-radius: 50%;
}

.fb-hero-rings::before {
    width: 340px;
    height: 340px;
    right: -20px;
    top: 42px;
}

.fb-hero-rings::after {
    width: 190px;
    height: 190px;
    left: 40px;
    bottom: 24px;
}

.fb-hero-sidebar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.fb-sidebar-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(8, 15, 30, 0.88);
    border: 1px solid rgba(103, 232, 249, 0.12);
    transition: transform var(--fb-transition), border-color var(--fb-transition), box-shadow var(--fb-transition);
}

.fb-sidebar-card img {
    width: 100%;
    height: 112px;
    object-fit: cover;
    border-radius: 14px;
}

.fb-sidebar-card-name {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.fb-sidebar-card-cat {
    margin-top: 4px;
    color: var(--fb-cyan);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.fb-sidebar-card.active,
.fb-sidebar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(103, 232, 249, 0.3);
    box-shadow: 0 18px 44px rgba(7, 14, 28, 0.42);
}

.fb-hero-bottom {
    width: calc(100% - var(--fb-shell-gutter));
    max-width: var(--fb-shell-width);
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
}

.fb-hero-progress {
    position: static;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}

.fb-hero-progress-bar {
    background: linear-gradient(90deg, var(--fb-cyan), var(--fb-neon));
    box-shadow: 0 0 18px rgba(103, 232, 249, 0.4);
}

.fb-home-grid {
    width: calc(100% - var(--fb-shell-gutter));
    max-width: var(--fb-shell-width);
    margin: 0 auto;
    padding: 6px 0 28px;
    display: grid;
    gap: 24px;
}

.fb-home-grid > .fb-section > .fb-section-inner {
    max-width: none;
    margin: 0;
    padding: 0;
}

.fb-section {
    max-width: 1245px;
    border-radius: 32px;
    border: 1px solid rgba(103, 232, 249, 0.12);
    background: rgba(8, 15, 30, 0.8);
    padding: 30px;
    box-shadow: 0 20px 60px rgba(4, 8, 18, 0.35);
}

.fb-section-dark {
    background: linear-gradient(180deg, rgba(9, 17, 34, 0.92), rgba(5, 11, 22, 0.92));
}

.fb-section-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: -0.03em;
}

.fb-hot-card,
.fb-masonry-card,
.fb-bigcard,
.fb-rank-item {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.12);
    background: linear-gradient(180deg, rgba(14, 24, 43, 0.98), rgba(8, 15, 28, 0.96));
}

.fb-hot-card {
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.fb-hot-card img,
.fb-bigcard img,
.fb-masonry-card img {
    filter: saturate(1.1);
}

.fb-masonry {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 18px;
    align-items: stretch;
}

.fb-section--constellation {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 34%),
        radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(8, 15, 30, 0.92), rgba(4, 10, 22, 0.96));
    box-shadow: 0 26px 72px rgba(3, 8, 18, 0.4);
}

.fb-section--constellation::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 24px;
    border: 1px solid rgba(103, 232, 249, 0.07);
    pointer-events: none;
}

.fb-section--constellation .fb-section-inner {
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.fb-section--constellation .fb-section-head {
    position: relative;
    z-index: 2;
    margin-bottom: 22px;
}

.fb-section--constellation .fb-masonry-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 240px;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(7, 14, 28, 0.9), rgba(4, 9, 20, 0.98));
    box-shadow: 0 18px 42px rgba(3, 8, 18, 0.36);
}

.fb-section--constellation .fb-masonry-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 10, 22, 0.02) 14%, rgba(5, 10, 22, 0.54) 62%, rgba(5, 10, 22, 0.96) 100%);
    z-index: 1;
}

.fb-section--constellation .fb-masonry-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.06);
    pointer-events: none;
    z-index: 3;
}

.fb-section--constellation .fb-masonry-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.03);
    transition: transform 0.45s ease;
}

.fb-section--constellation .fb-masonry-card:hover img {
    transform: scale(1.05);
}

.fb-section--constellation .fb-masonry-card-body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px 20px 18px;
}

.fb-section--constellation .fb-masonry-card-cat {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(103, 232, 249, 0.16);
    background: rgba(10, 23, 41, 0.82);
    color: #97ebff;
    margin-bottom: 12px;
}

.fb-section--constellation .fb-masonry-card-title {
    color: #f8fbff;
    font-size: 24px;
    line-height: 1.08;
    max-width: 16ch;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
}

.fb-section--constellation .fb-masonry-card-desc {
    margin-top: 10px;
    max-width: 54ch;
    color: rgba(232, 241, 255, 0.76);
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
}

.fb-section--constellation .fb-masonry-card.normal,
.fb-section--constellation .fb-masonry-card.tall {
    grid-column: auto;
    min-height: 240px;
}

.fb-section--constellation .fb-masonry-card:nth-child(1) {
    grid-column: span 7;
    min-height: 316px;
}

.fb-section--constellation .fb-masonry-card:nth-child(1) .fb-masonry-card-title {
    font-size: 40px;
    max-width: 10ch;
}

.fb-section--constellation .fb-masonry-card:nth-child(1) .fb-masonry-card-body {
    padding: 24px 24px 22px;
}

.fb-section--constellation .fb-masonry-card:nth-child(2) {
    grid-column: span 5;
    min-height: 316px;
}

.fb-section--constellation .fb-masonry-card:nth-child(2) .fb-masonry-card-title {
    font-size: 28px;
    max-width: 13ch;
}

.fb-section--constellation .fb-masonry-card:nth-child(n+3) {
    grid-column: span 4;
}

.fb-section--constellation .fb-masonry-card:nth-child(n+3) .fb-masonry-card-title {
    font-size: 20px;
    max-width: 14ch;
}

.fb-bigcard-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.fb-section--featured .fb-bigcard {
    min-height: 214px;
    aspect-ratio: auto;
}

.fb-section--featured .fb-bigcard .fb-bigcard-content {
    padding: 18px;
}

.fb-section--featured .fb-bigcard .fb-bigcard-title {
    font-size: 16px;
    margin-bottom: 8px;
    max-width: 14ch;
}

.fb-rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.fb-rank-item {
    padding: 14px 18px;
}

.fb-footer {
    background: transparent;
    padding: 4px 0 32px;
}

.fb-footer-inner {
    width: calc(100% - var(--fb-shell-gutter));
    max-width: var(--fb-shell-width);
    border-radius: 30px 30px 22px 22px;
    background: linear-gradient(180deg, rgba(8, 15, 30, 0.92), rgba(5, 11, 22, 0.92));
    border: 1px solid rgba(103, 232, 249, 0.14);
    box-shadow: 0 24px 70px rgba(3, 8, 18, 0.42);
}

.fb-footer-bottom {
    width: calc(100% - var(--fb-shell-gutter));
    max-width: var(--fb-shell-width);
    margin-top: 10px;
    border: 1px solid rgba(103, 232, 249, 0.12);
    border-radius: 20px;
    background: rgba(8, 15, 30, 0.82);
}

.fb-cookie {
    border: 1px solid rgba(103, 232, 249, 0.16);
    background: rgba(7, 13, 27, 0.92);
    backdrop-filter: blur(18px);
}

@media (max-width: 1100px) {
    .fb-hero-inner,
    .fb-rank-list {
        grid-template-columns: 1fr;
    }

    .fb-hero-stage {
        grid-template-rows: minmax(320px, 1fr) auto;
    }

    .fb-hero-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fb-hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fb-masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fb-section--constellation .fb-masonry-card:nth-child(1),
    .fb-section--constellation .fb-masonry-card:nth-child(2) {
        grid-column: span 2;
        min-height: 300px;
    }

    .fb-section--constellation .fb-masonry-card:nth-child(n+3) {
        grid-column: span 1;
        min-height: 236px;
    }

    .fb-bigcard-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fb-section--featured .fb-bigcard {
        min-height: 208px;
    }
}

@media (max-width: 760px) {
    :root {
        --fb-shell-gutter: 28px;
    }

    .fb-header {
        top: 10px;
        padding: 0;
    }

    .fb-header-inner {
        height: 68px;
        padding: 0 18px;
        border-radius: 20px;
    }

    .fb-hero {
        padding: 28px 0 12px;
    }

    .fb-hero-content,
    .fb-hero-window,
    .fb-section,
    .fb-footer-inner {
        border-radius: 24px;
    }

    .fb-section{
        max-width: calc((100vw - 27px));
    }

    .fb-hero-content {
        padding: 26px;
    }

    .fb-hero-title {
        font-size: 2.6rem;
    }

    .fb-hero-metrics,
    .fb-hero-sidebar,
    .fb-hero-bottom {
        grid-template-columns: 1fr;
    }

    .fb-section {
        padding: 22px 18px;
    }

    .fb-bigcard-row {
        grid-template-columns: 1fr;
    }

    .fb-section--featured .fb-bigcard {
        min-height: 220px;
    }

    .fb-section--constellation {
        padding: 22px 16px 20px;
        border-radius: 24px;
    }

    .fb-section--constellation::before {
        inset: 10px;
        border-radius: 18px;
    }

    .fb-section--constellation .fb-masonry-card:nth-child(1),
    .fb-section--constellation .fb-masonry-card:nth-child(2),
    .fb-section--constellation .fb-masonry-card:nth-child(n+3) {
        grid-column: span 1;
        min-height: 228px;
    }

    .fb-section--constellation .fb-masonry-card:nth-child(1),
    .fb-section--constellation .fb-masonry-card:nth-child(2) {
        min-height: 260px;
    }

    .fb-section--constellation .fb-masonry-card-body {
        padding: 18px 16px 16px;
    }

    .fb-section--constellation .fb-masonry-card:nth-child(1) .fb-masonry-card-title {
        font-size: 28px;
    }

    .fb-section--constellation .fb-masonry-card:nth-child(2) .fb-masonry-card-title,
    .fb-section--constellation .fb-masonry-card:nth-child(n+3) .fb-masonry-card-title {
        font-size: 20px;
    }

    .fb-section--constellation .fb-masonry-card-desc {
        font-size: 12px;
    }

    .fb-cookie {
        bottom: 14px;
        width: calc(100% - 28px);
        padding: 14px;
        gap: 14px;
        flex-direction: column;
        align-items: stretch;
    }

    .fb-cookie p {
        font-size: 13px;
    }

    .fb-cookie-btns {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fb-cookie-btns button {
        width: 100%;
    }
}

.legal-container,
.category-container,
.game-detail-container,
.search-page-shell,
.game-container {
    width: calc(100% - var(--fb-shell-gutter));
    max-width: var(--fb-shell-width);
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(103, 232, 249, 0.12);
    background: rgba(7, 14, 28, 0.78);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(3, 8, 18, 0.34);
}

.page-header,
.category-filter,
.redesigned-search-header,
.search-results-panel,
.game-info-panel,
.detail-card,
.legal-section {
    border-radius: 22px;
    border: 1px solid rgba(103, 232, 249, 0.1);
    background: rgba(255,255,255,0.03);
}

@media (max-width: 760px) {
    .fb-search-overlay-form {
        flex-direction: column;
    }

    .fb-search-overlay-form button {
        width: 100%;
    }

    .fb-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .play-page {
        height: auto !important;
        min-height: calc(100svh - 104px);
        overflow: visible;
        padding: 0 14px 92px;
    }

    .game-container {
        min-height: calc(100svh - 180px);
        height: auto;
    }

    #gameFrame {
        min-height: calc(100svh - 180px);
    }
}
