:root {
    /* Palette Inspired by Color Hunt: #FFF6DE, #8BDFDD, #F48F68, #FFE394 */
    --bg-body: #FFF6DE;           /* Soft warm cream background */
    --bg-main: #FFF6DE;           /* Alias for compatibility */
    --bg-card: #FFFFFF;           /* Crisp clean white surface */
    --bg-header: rgba(255, 255, 255, 0.96); /* Header frosted white */
    --bg-footer: #FFFFFF;         /* Crisp footer surface */
    --bg-subtle: #FFFDF8;         /* Subtle cream tint */
    
    --primary: #F48F68;          /* Warm vibrant coral */
    --primary-hover: #E2744B;    /* Rich terracotta coral hover */
    --primary-light: #FDECE6;    /* Soft coral wash */
    
    --secondary: #8BDFDD;        /* Fresh pastel aqua mint */
    --secondary-hover: #6ECDCB;  /* Deeper mint */
    --secondary-dark: #1D6B69;   /* Accessible text contrast on mint */
    --secondary-light: #EBF9F9;  /* Soft mint wash */
    
    --accent: #FFE394;           /* Soft sunny pastel yellow */
    --accent-hover: #FCD56E;     /* Deeper yellow */
    --accent-dark: #5C4505;      /* Accessible text contrast on yellow */
    --accent-light: #FFF9E6;     /* Soft yellow wash */
    
    --text-main: #2C221E;        /* Deep rich warm espresso (AAA contrast) */
    --text-muted: #75645A;       /* Warm slate-brown secondary text */
    --text-light: #9B8C83;       /* Subtle tertiary text */
    
    --border: #EFE1C7;           /* Soft warm cream border */
    --border-hover: #F48F68;     /* Coral highlight border */
    --border-strong: #DECDB0;    /* Distinct divider */
    
    --shadow-sm: 0 1px 3px rgba(44, 34, 30, 0.05), 0 1px 2px rgba(44, 34, 30, 0.03);
    --shadow: 0 4px 14px rgba(44, 34, 30, 0.06), 0 1px 3px rgba(44, 34, 30, 0.04);
    --shadow-md: 0 8px 24px rgba(44, 34, 30, 0.08), 0 2px 6px rgba(44, 34, 30, 0.04);
    --shadow-lg: 0 16px 32px -4px rgba(44, 34, 30, 0.1), 0 6px 16px -2px rgba(44, 34, 30, 0.05);
    --shadow-coral: 0 8px 20px -3px rgba(244, 143, 104, 0.35);
    
    --radius: 0.875rem;
    --radius-sm: 0.5rem;
    --radius-full: 9999px;
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-body);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.main-header {
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    height: 72px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(44, 34, 30, 0.03);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo svg {
    color: var(--primary);
}

.logo:hover {
    color: var(--primary-hover);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    font-size: 0.925rem;
    color: var(--text-muted);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: var(--text-main);
    background-color: rgba(139, 223, 221, 0.3);
}

.main-nav a.active {
    color: var(--accent-dark);
    background-color: var(--accent);
    font-weight: 700;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 210px;
    padding: 0.5rem;
    display: none;
    box-shadow: var(--shadow-md);
    z-index: 60;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.dropdown-content a:hover {
    background-color: rgba(139, 223, 221, 0.25);
    color: var(--text-main);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content Area */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3.5rem 1rem;
    background: radial-gradient(circle at 50% 30%, rgba(255, 227, 148, 0.5) 0%, rgba(139, 223, 221, 0.3) 45%, rgba(255, 246, 222, 0) 75%);
    border-radius: var(--radius);
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Games Grid */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.category-count-badge {
    background: var(--accent);
    color: var(--accent-dark);
    border: 1px solid #EAD27B;
    font-weight: 700;
    font-size: 0.825rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.category-count-badge span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.game-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.game-thumb-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #F5EBD7;
}

.game-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 34, 30, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.play-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #F48F68 0%, #E86B40 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.game-card:hover .play-icon {
    transform: scale(1.1);
}

.game-info {
    padding: 1.1rem 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-card);
}

.game-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    transition: color 0.2s ease;
}

.game-card:hover .game-title {
    color: var(--primary-hover);
}

/* Card Badges & Quality Indicators */
.card-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: rgba(44, 34, 30, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #FFF6DE;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    letter-spacing: 0.02em;
    pointer-events: none;
}

.card-badge.badge-top {
    background: linear-gradient(135deg, #F48F68 0%, #D45327 100%);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(244, 143, 104, 0.4);
}

.card-badge.badge-popular {
    background: rgba(30, 41, 59, 0.88);
    color: #8BDDFD;
    border: 1px solid rgba(139, 221, 253, 0.35);
}

.card-rating-pill {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(44, 34, 30, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #FFE394;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.game-card-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.meta-approval {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #2E8B57;
    font-weight: 600;
}

.meta-dot {
    opacity: 0.5;
}

.meta-plays {
    font-weight: 500;
}

/* Quality & Editorial Trust Banner on Game Page */
.game-quality-banner {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: #FFFDF8;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-top: 1rem;
}

.quality-banner-left {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    flex-wrap: wrap;
    width: 100%;
}

@media (max-width: 640px) {
    .quality-banner-left {
        justify-content: flex-start;
    }
}

.quality-rating-score {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.quality-rating-score .star-icon {
    color: #E86B40;
    font-size: 1.15rem;
}

.quality-rating-score .score-val {
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 800;
}

.quality-rating-score .score-max {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.quality-rating-score .score-votes {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 0.15rem;
}

.quality-approval-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(139, 223, 221, 0.25);
    color: var(--accent-dark);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 600;
}

.quality-editorial-verdict {
    font-size: 0.825rem;
    color: var(--text-muted);
    width: 100%;
    text-align: left;
    line-height: 1.5;
    border-top: 1px solid var(--border);
    padding-top: 0.6rem;
    margin-top: 0.15rem;
}

.quality-editorial-verdict strong {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .quality-editorial-verdict {
        text-align: left;
    }
}

/* Game Page Layout */
.game-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.game-play-section {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Breadcrumb Navigation - Modern Frosted Pill Trail */
.breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1.15rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    width: fit-content;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(44, 34, 30, 0.04);
    overflow-x: auto;
    scrollbar-width: none;
}

.breadcrumb-nav::-webkit-scrollbar {
    display: none;
}

.breadcrumb-nav.breadcrumb-center {
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb-list {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem;
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.825rem;
    line-height: 1;
    white-space: nowrap;
}

.breadcrumb-list li {
    list-style: none !important;
    list-style-type: none !important;
}

.breadcrumb-list li::marker {
    display: none !important;
    content: "" !important;
}

.breadcrumb-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem;
    color: var(--text-muted);
    list-style: none !important;
    list-style-type: none !important;
}

.breadcrumb-item a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
    transition: all 0.15s ease-in-out;
}

.breadcrumb-item a:hover {
    color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
}

.breadcrumb-item a svg {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.breadcrumb-item a:hover svg {
    color: var(--primary);
}

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    opacity: 0.7;
    user-select: none;
    padding: 0 0.1rem;
}

.breadcrumb-separator svg {
    display: block;
}

.breadcrumb-item.active {
    color: var(--text-main);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .breadcrumb-nav {
        padding: 0.3rem 0.65rem;
        margin-bottom: 0.75rem;
    }
    .breadcrumb-item.active {
        max-width: 160px;
    }
}

.game-frame-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0b0f19;
    border-radius: calc(var(--radius) - 0.25rem);
    overflow: hidden;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
    contain: layout paint;
}

.game-frame-wrapper > #game-iframe,
#game-iframe,
#featured-iframe-target {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Homepage Featured Game Player */
.homepage-player-container {
    position: relative;
    z-index: 20;
    background: #0b0f19;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 2.5rem;
}

.homepage-player-header {
    position: relative;
    z-index: 100 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.exit-game-action-btn {
    cursor: pointer;
    background: #dc2626 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4) !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
    z-index: 101 !important;
}

.exit-game-action-btn:hover {
    background: #b91c1c !important;
    transform: translateY(-1px);
}

.exit-game-action-btn:active {
    transform: translateY(1px);
}

.theater-action-btn {
    cursor: pointer;
    background: var(--bg-card) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border) !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.2s ease !important;
}

.theater-action-btn:hover {
    background: var(--bg-surface, #1e293b) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.theater-action-btn.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4) !important;
}

/* Home Theater Mode active states */
.home-theater-active .sticky-ad-wrapper,
.home-theater-active .sticky-ad-spacer {
    display: none !important;
}

.home-theater-active .home-layout {
    max-width: 1750px !important;
}

.home-theater-active .home-main {
    max-width: 100% !important;
    width: 100% !important;
}

.home-theater-active .homepage-player-container {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    border-color: rgba(99, 102, 241, 0.4);
}

.home-theater-active .homepage-player-container .game-frame-wrapper {
    height: 80vh !important;
    max-height: 920px;
    min-height: 500px;
    aspect-ratio: auto !important;
    background: #000;
}

@media (max-width: 768px) {
    .home-theater-active .homepage-player-container .game-frame-wrapper {
        height: 55vh !important;
        min-height: 300px;
    }
}

/* Animated Zero-CLS Loader Overlay */
.game-loader-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #090d16;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.game-loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.game-loader-backdrop {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.22);
    transform: scale(1.1);
    opacity: 0.75;
}

.game-loader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    padding: 1.5rem;
}

.game-loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: game-spin 0.8s linear infinite;
}

@keyframes game-spin {
    to { transform: rotate(360deg); }
}

.game-loader-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.game-loader-status {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    animation: loader-pulse 1.5s ease-in-out infinite;
}

@keyframes loader-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.game-frame-wrapper > #game-iframe,
#game-iframe,
#featured-iframe-target {
    width: 100%;
    height: 100%;
    border: none;
}

.game-meta {
    margin-top: 1.75rem;
}

.game-meta h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.game-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.instructions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border);
}

.sidebar-section {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid var(--border);
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #F3E7CF;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tag:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

/* ==========================================================================
   Cyber/Arcade Featured Game Section (Matching new_featured.jpg)
   ========================================================================== */
.featured-game {
    position: relative;
    border-radius: 28px;
    background: #0B0E17;
    padding: 3.25rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
    overflow: hidden;
    /* High-Definition Multi-Stop Gradient Neon Border */
    border: 2px solid transparent;
    background-image: 
        linear-gradient(#0B0E17, #0B0E17), 
        linear-gradient(135deg, #38BDF8 0%, #6366F1 35%, #C084FC 70%, #F472B6 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.25), 0 25px 50px -12px rgba(0, 0, 0, 0.75);
}

/* Dot Matrix Cyber Watermark on Left */
.featured-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.10) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    mask-image: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Ambient Cyber Glow & Floating Embers */
.featured-game::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 85% 15%, rgba(255, 122, 24, 0.25) 0%, transparent 28%),
        radial-gradient(circle at 10% 85%, rgba(56, 189, 248, 0.18) 0%, transparent 30%),
        radial-gradient(circle at 70% 85%, rgba(168, 85, 247, 0.15) 0%, transparent 25%);
    pointer-events: none;
    z-index: 1;
}

.featured-content {
    flex: 1;
    z-index: 2;
    position: relative;
}

/* Sunset Pill Badge */
.featured-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1.15rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, #FF5E36 0%, #FF007A 100%);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 0 16px rgba(255, 94, 54, 0.5);
    margin-bottom: 1.25rem;
}

/* Dynamic Bold Italic Gaming Headline */
.featured-title {
    font-size: 2.75rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.title-row-1 {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.title-white {
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.title-orange {
    background: linear-gradient(90deg, #FF7A18 0%, #FFB300 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 14px rgba(255, 122, 24, 0.45));
}

.title-row-2 {
    display: block;
}

.title-cyan {
    background: linear-gradient(90deg, #38BDF8 0%, #2563EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.55));
}

/* Clean Readable Description */
.featured-desc {
    color: #94A3B8;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 520px;
}

/* ==========================================================================
   Futuristic Sci-Fi HUD Play Button (Matching button-screenhsot.jpg)
   ========================================================================== */
.futuristic-play-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 14px 20px 14px 16px;
    margin: 0.5rem 0 0.5rem 0;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.futuristic-play-btn:focus-visible {
    outline: 2px dashed #00F0FF;
    outline-offset: 8px;
}

/* Outer Sci-Fi HUD Brackets */
.hud-bracket {
    position: absolute;
    pointer-events: none;
    z-index: 4;
}

/* Top-Right Stepped Cyan HUD Bracket with LEVEL UP */
.hud-bracket-cyan-top {
    top: 2px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-top: 2px solid #00F0FF;
    border-right: 2px solid #00F0FF;
    border-top-right-radius: 6px;
    filter: drop-shadow(0 0 8px #00F0FF);
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.15));
}

.hud-bracket-cyan-top::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -12px;
    width: 12px;
    height: 2px;
    background: #00F0FF;
    transform: rotate(-35deg);
    transform-origin: right top;
}

.hud-bracket-cyan-top .hud-text {
    font-family: 'JetBrains Mono', monospace, sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #00F0FF;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.95);
}

/* Left & Bottom-Left Glowing Amber/Orange Bracket */
.hud-bracket-orange-left {
    position: absolute;
    top: 6px;
    left: 4px;
    width: 65px;
    height: calc(100% - 12px);
    border-left: 2.5px solid #FF8800;
    border-bottom: 2.5px solid #FF8800;
    border-top: 2.5px solid #FF8800;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    filter: drop-shadow(0 0 8px rgba(255, 136, 0, 0.9)) drop-shadow(0 0 16px rgba(255, 80, 0, 0.6));
    pointer-events: none;
}

/* Right Glowing Cyan Bracket */
.hud-bracket-cyan-right {
    position: absolute;
    bottom: 6px;
    right: 4px;
    width: 52px;
    height: calc(100% - 14px);
    border-right: 2.5px solid #00F0FF;
    border-bottom: 2.5px solid #00F0FF;
    border-top: 2.5px solid #00F0FF;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.95)) drop-shadow(0 0 18px rgba(0, 240, 255, 0.65));
    pointer-events: none;
}

/* Fine Diagonal Laser Sparks / Flares */
.spark-streak {
    position: absolute;
    pointer-events: none;
    z-index: 5;
}

.streak-top-right {
    top: -12px;
    right: -10px;
    width: 90px;
    height: 45px;
    background: 
        linear-gradient(40deg, transparent 40%, rgba(255, 235, 120, 0.9) 48%, rgba(255, 140, 0, 0.8) 52%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(255, 200, 50, 0.8) 0%, rgba(255, 100, 0, 0.4) 40%, transparent 70%);
    filter: drop-shadow(0 0 6px #FFA500);
}

.streak-bottom-left {
    bottom: -10px;
    left: 24px;
    width: 75px;
    height: 35px;
    background: linear-gradient(40deg, transparent 38%, rgba(255, 220, 100, 0.8) 46%, rgba(255, 120, 0, 0.6) 52%, transparent 60%);
    filter: drop-shadow(0 0 5px #FF8800);
}

/* Beveled Metallic Chassis */
.btn-chassis {
    display: inline-flex;
    padding: 3.5px;
    position: relative;
    border-radius: 20px;
    background: linear-gradient(135deg, #E2E8F0 0%, #94A3B8 22%, #475569 45%, #1E293B 70%, #0F172A 100%);
    box-shadow: 
        0 14px 30px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1.5px 1.5px rgba(255, 255, 255, 0.9),
        inset 0 -2px 3px rgba(0, 0, 0, 0.7);
    clip-path: polygon(
        16px 0%, calc(100% - 16px) 0%, 
        100% 16px, 100% calc(100% - 16px), 
        calc(100% - 16px) 100%, 16px 100%, 
        0% calc(100% - 16px), 0% 16px
    );
    transition: all 0.25s ease;
}

/* Inner Core Display Faceplate */
.btn-core {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.9rem 2.2rem 0.9rem 1.85rem;
    background: linear-gradient(180deg, #FFC038 0%, #FF8D00 35%, #FF3D1F 70%, #C91624 100%);
    border-radius: 17px;
    clip-path: polygon(
        14px 0%, calc(100% - 14px) 0%, 
        100% 14px, 100% calc(100% - 14px), 
        calc(100% - 14px) 100%, 14px 100%, 
        0% calc(100% - 14px), 0% 14px
    );
    box-shadow: 
        inset 0 2.5px 3px rgba(255, 255, 255, 0.8),
        inset 0 -3px 5px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Holographic Circuitry Overlay */
.circuit-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Core Sparkle Star */
.core-sparkle {
    position: absolute;
    top: 10px;
    left: 68px;
    color: #FFFFFF;
    font-size: 0.95rem;
    text-shadow: 0 0 6px #FFFFFF, 0 0 12px #FFD700;
    opacity: 0.95;
    pointer-events: none;
    z-index: 3;
    animation: sparklePulse 2.5s infinite ease-in-out;
}

@keyframes sparklePulse {
    0%, 100% { opacity: 0.95; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Gamepad Icon Badge */
.gamepad-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
}

.gamepad-svg {
    width: 48px;
    height: 34px;
    display: block;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55));
}

/* Typography Wrap */
.btn-title-wrap {
    position: relative;
    z-index: 2;
}

/* 3D Chrome Typography */
.btn-title-text {
    font-family: inherit;
    font-size: 1.85rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-block;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 35%, #94A3B8 46%, #E2E8F0 56%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2.5px 0 #0F172A) drop-shadow(0 5px 8px rgba(0, 0, 0, 0.7));
}

/* Chevrons */
.btn-chevrons {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
    transition: transform 0.2s ease;
}

.chevrons-svg {
    width: 32px;
    height: 26px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.95)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

/* Micro Ready Tag */
.hud-ready-tag {
    position: absolute;
    bottom: 3px;
    right: 32px;
    font-family: 'JetBrains Mono', monospace, sans-serif;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: rgba(255, 230, 230, 0.8);
    text-shadow: 0 0 4px rgba(255, 50, 50, 0.7);
    pointer-events: none;
    z-index: 2;
}

/* Interactive States */
.futuristic-play-btn:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.08);
}

.futuristic-play-btn:hover .btn-chassis {
    box-shadow: 
        0 18px 38px rgba(0, 0, 0, 0.95),
        0 0 28px rgba(255, 120, 0, 0.6),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.95);
}

.futuristic-play-btn:hover .btn-chevrons {
    transform: translateX(5px);
}

.futuristic-play-btn:hover .hud-bracket-cyan-top {
    filter: drop-shadow(0 0 12px #00F0FF);
}

.futuristic-play-btn:hover .hud-bracket-orange-left {
    filter: drop-shadow(0 0 18px #FF8800);
}

.futuristic-play-btn:hover .hud-bracket-cyan-right {
    filter: drop-shadow(0 0 18px #00F0FF);
}

.futuristic-play-btn:active {
    transform: translateY(3px) scale(0.98);
    filter: brightness(0.96);
}

.futuristic-play-btn:active .btn-chassis {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8), inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Right Neon Glow Game Frame */
.featured-visual-wrapper {
    position: relative;
    flex-shrink: 0;
    z-index: 2;
    cursor: pointer;
    border-radius: 26px;
    outline: none;
}

.featured-visual-wrapper:focus-visible {
    box-shadow: 0 0 0 3px #38BDF8;
}

.featured-frame {
    width: 290px;
    height: 290px;
    border-radius: 26px;
    border: 2px solid #00F0FF;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.45), inset 0 0 15px rgba(0, 240, 255, 0.2);
    overflow: hidden;
    position: relative;
    background: #000000;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.featured-frame .featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.4s ease;
}

.featured-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 14, 23, 0.25);
    transition: background 0.3s ease;
}

.play-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.play-triangle {
    width: 26px;
    height: 26px;
    fill: #FFFFFF;
    margin-left: 3px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.featured-visual-wrapper:hover .featured-frame {
    transform: scale(1.02);
    box-shadow: 0 0 45px rgba(0, 240, 255, 0.7), inset 0 0 20px rgba(0, 240, 255, 0.3);
}

.featured-visual-wrapper:hover .featured-img {
    transform: scale(1.06);
}

.featured-visual-wrapper:hover .play-circle {
    transform: scale(1.12);
    background: rgba(0, 240, 255, 0.3);
    border-color: #00F0FF;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.95);
}

.btn, .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #F48F68 0%, #E86B40 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-coral);
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn:hover, .btn-primary:hover {
    background: linear-gradient(135deg, #E86B40 0%, #D4582D 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -2px rgba(232, 107, 64, 0.45);
}

.btn:active, .btn-primary:active {
    transform: translateY(0);
}

/* Footer */
.main-footer {
    background-color: var(--bg-card);
    border-top: 2px solid var(--border);
    padding: 4rem 0 2.5rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h2,
.footer-brand .footer-brand-title {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
}

.footer-links h3,
.footer-links h4,
.footer-links .footer-title {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Ads */
.ad-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.home-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.home-main {
    flex: 1;
    max-width: 1100px;
    min-width: 0;
}

.sticky-ad-wrapper {
    width: 160px;
    flex-shrink: 0;
    display: none;
    height: auto;
}

.sticky-ad {
    position: sticky;
    top: 90px;
    width: 160px;
    height: 600px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

.sticky-ad-spacer {
    width: 160px;
    flex-shrink: 0;
    display: none;
    visibility: hidden;
    pointer-events: none;
}

@media (min-width: 1200px) {
    .sticky-ad-wrapper,
    .sticky-ad-spacer {
        display: block;
    }
}

@media (max-width: 1199px) {
    .sticky-ad-wrapper,
    .sticky-ad-spacer {
        display: none !important;
    }
}

/* Centered Horizontal Ad Unit */
.ad-centered {
    margin: 2rem auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 50px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    clear: both !important;
    position: relative !important;
    overflow: visible;
}

.ad-centered > * {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    max-width: 100% !important;
}

.ad-centered div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    max-width: 100% !important;
}

.ad-centered iframe,
.ad-centered ins,
.ad-centered img,
.ad-centered a,
.ad-centered embed,
.ad-centered object,
.ad-centered table {
    display: inline-block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    vertical-align: middle !important;
    text-align: center !important;
    max-width: 100% !important;
}

.ad-centered iframe {
    display: block !important;
    margin: 0 auto !important;
}

.ad-centered .adsbygoogle {
    display: inline-block !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Responsive Ad Visibility (Desktop 720x90 vs Mobile 320x50) */
.ad-centered.ad-desktop-only,
.ad-desktop-only {
    display: flex !important;
}

.ad-centered.ad-mobile-only,
.ad-mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .ad-centered.ad-desktop-only,
    .ad-desktop-only {
        display: none !important;
    }
    
    .ad-centered.ad-mobile-only,
    .ad-mobile-only {
        display: flex !important;
    }
}

.ad-game-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px dashed var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    position: relative;
    height: 100%;
}

.ad-game-card > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 320px !important;
    height: 250px !important;
    max-width: 100% !important;
}

.ad-game-card iframe,
.ad-game-card ins,
.ad-game-card img,
.ad-game-card a {
    position: static !important;
    margin: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border: none !important;
    display: block !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .game-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header-inner {
        position: static;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
        background: transparent;
        color: var(--text-main);
        cursor: pointer;
        padding: 0;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .menu-toggle:hover,
    .menu-toggle:focus-visible {
        background-color: rgba(139, 223, 221, 0.25);
        border-color: var(--primary);
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--bg-card);
        border-bottom: 2px solid var(--border);
        box-shadow: 0 16px 32px rgba(44, 34, 30, 0.12);
        padding: 1.25rem 1.5rem 1.75rem;
        max-height: calc(100vh - 72px);
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 999;
    }

    .main-nav.active {
        display: block;
        animation: mobileNavSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes mobileNavSlideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--text-main);
        border-radius: var(--radius-sm);
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    .main-nav a:hover {
        background-color: rgba(139, 223, 221, 0.25);
        color: var(--text-main);
    }

    .main-nav a.active {
        background-color: var(--accent);
        color: var(--accent-dark);
        font-weight: 700;
    }

    /* Mobile Categories Dropdown */
    .dropdown {
        width: 100%;
        position: relative;
    }

    .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        cursor: pointer;
        user-select: none;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        min-width: unset;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--primary);
        background-color: rgba(255, 246, 222, 0.5);
        border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
        padding: 0.5rem 0.5rem 0.5rem 0.85rem;
        margin: 0.35rem 0 0.5rem 0.5rem;
        display: none;
    }

    .dropdown.active .dropdown-content,
    .dropdown.open .dropdown-content {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .dropdown-content a {
        padding: 0.65rem 0.85rem;
        font-size: 0.975rem;
        font-weight: 500;
        color: var(--text-muted);
        border-radius: var(--radius-sm);
    }

    .dropdown-content a:hover {
        background-color: rgba(139, 223, 221, 0.3);
        color: var(--text-main);
    }

    .dropdown-content a.active {
        background-color: var(--accent);
        color: var(--accent-dark);
        font-weight: 700;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .featured-game {
        flex-direction: column-reverse;
        padding: 2.25rem 1.5rem;
        text-align: center;
        gap: 2rem;
        border-radius: 20px;
    }

    .featured-title {
        font-size: 2rem;
        align-items: center;
    }

    .title-row-1 {
        justify-content: center;
    }

    .featured-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .featured-frame {
        width: 240px;
        height: 240px;
        margin: 0 auto;
        border-radius: 20px;
    }

    .futuristic-play-btn {
        margin: 0.5rem auto;
        transform: scale(0.92);
        max-width: 100%;
    }
}

/* Interstitial Modal */
.interstitial-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(20, 16, 14, 0.78) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
}

.interstitial-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 460px;
    width: 92%;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 100000;
}

.interstitial-content h3,
.interstitial-content .interstitial-title {
    color: var(--text-main);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.interstitial-ad-box {
    margin: 1.5rem auto;
    width: 320px;
    max-width: 100%;
    min-height: 250px;
    height: 250px;
    background: #F5EBD7;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px dashed var(--border-strong);
    position: relative !important;
    box-sizing: border-box;
}

.interstitial-ad-box iframe,
.interstitial-ad-box ins,
.interstitial-ad-box img,
.interstitial-ad-box a {
    position: static !important;
    margin: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border: none !important;
    display: block !important;
}

.interstitial-ad-box div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: auto !important;
    max-width: 100% !important;
}

@media (max-width: 400px) {
    .interstitial-content {
        padding: 1rem 0.5rem;
    }
}

/* Legal and Informational Pages */
.text-content {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.text-content h2 {
    color: var(--text-main);
    font-size: 1.55rem;
    font-weight: 800;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.text-content h3 {
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.text-content h4 {
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

.text-content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.text-content .last-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
    opacity: 0.85;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: block;
}

.text-content ul, .text-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.text-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.text-content a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.text-content a:hover {
    color: var(--primary-hover);
}

/* Game Title Header & Visual Icon */
.game-title-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.game-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(44, 34, 30, 0.12);
    border: 2px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-header-icon:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(44, 34, 30, 0.18);
}

@media (max-width: 640px) {
    .game-header-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
}
