/* ==========================================================================
   PlayArcade Pro - Ultra-Modern Light Gaming Portal Stylesheet
   Designed for HTML5 Arcades, High AdSense Performance & Responsive Play
   ========================================================================== */

:root {
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;
    --border-glow: rgba(99, 102, 241, 0.3);

    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.22);
    
    --secondary: #e11d48;
    --secondary-hover: #be123c;
    --accent-emerald: #059669;
    --accent-amber: #d97706;
    --accent-cyan: #0284c7;

    --text-main: #0f172a;
    --text-muted: #334155;
    --text-subtle: #64748b;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-card: 0 4px 16px -1px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 16px 32px -4px rgba(79, 70, 229, 0.12), 0 8px 16px -2px rgba(15, 23, 42, 0.06);
    --shadow-glow: 0 0 20px -2px var(--primary-glow);
}

/* -------------------------------------------------------------
   Reset & Base Styles
   ------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Subtle Atmospheric Ambient Highlights */
.bg-mesh-glow {
    position: fixed;
    top: -10vw;
    left: -10vw;
    width: 45vw;
    height: 45vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.07) 0%, rgba(248, 250, 252, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.bg-mesh-glow-2 {
    position: fixed;
    bottom: -15vw;
    right: -10vw;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.05) 0%, rgba(248, 250, 252, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea, select {
    font-family: inherit;
    color: inherit;
}

/* -------------------------------------------------------------
   Layout & Container
   ------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.site-main {
    flex: 1 0 auto;
    padding-bottom: 60px;
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------------------
   Buttons & Micro-interactions
   ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
    color: #ffffff;
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: var(--border-strong);
    color: #0f172a;
    transform: translateY(-2px);
}

.btn-outline {
    background: #ffffff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* -------------------------------------------------------------
   Header Navigation
   ------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
    width: 100%;
    max-width: 100vw;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.header-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
    width: 100%;
}

/* Brand Logo */
.header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.brand-logo-img {
    height: 42px;
    width: auto;
    max-height: 42px;
    object-fit: contain;
}

.brand-logo-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-logo-fallback .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
    flex-shrink: 0;
}

.brand-logo-fallback .brand-text {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #0f172a 0%, #4338ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-subtle);
    font-size: 0.95rem;
    pointer-events: none;
}

.search-form input {
    width: 100%;
    padding: 11px 45px 11px 44px;
    background: #f1f5f9;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-normal);
}

.search-form input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.search-submit {
    position: absolute;
    right: 6px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
}

.search-submit:hover {
    transform: scale(1.08);
}

/* Autocomplete suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    display: none;
    z-index: 150;
    overflow: hidden;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8fafc;
}

.suggestion-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
}

.suggestion-info {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    display: block;
}

.suggestion-cat {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Header Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.btn-action:hover {
    background: #f8fafc;
    border-color: var(--border-strong);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-random {
    background: #fdf2f8;
    border-color: #fbcfe8;
    color: #db2777;
}

.btn-random:hover {
    background: #fce7f3;
    color: #be185d;
    border-color: #f472b6;
}

/* Categories Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    padding: 16px;
    min-width: 380px;
    display: none;
    z-index: 120;
    animation: fadeInDropdown 0.2s ease forwards;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.cat-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.cat-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.cat-menu-item:hover {
    background: #eef2ff;
    color: var(--primary);
    transform: translateX(3px);
}

.cat-menu-item i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.cat-menu-item small {
    margin-left: auto;
    color: var(--text-subtle);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 9px 8px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 310px;
    height: 100vh;
    background: #ffffff;
    z-index: 200;
    padding: 24px;
    box-shadow: 10px 0 40px rgba(15, 23, 42, 0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-drawer.open {
    left: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.drawer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-subtle);
    cursor: pointer;
    line-height: 1;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.drawer-link:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.drawer-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-subtle);
    margin: 20px 0 10px 14px;
    font-weight: 700;
}

.drawer-categories {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-cat-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.drawer-cat-link:hover {
    background: #f1f5f9;
    color: var(--primary);
}

/* -------------------------------------------------------------
   Ad Containers & Placeholders
   ------------------------------------------------------------- */
.ad-container-top {
    margin-top: 18px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.ad-container-bottom {
    margin-top: 35px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.ad-middle-slot {
    margin: 30px auto;
    display: flex;
    justify-content: center;
}

.ad-game-top {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.ad-game-bottom {
    margin-top: 16px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.ad-slot {
    max-width: 100%;
    overflow: hidden;
    text-align: center;
}

.ad-banner-placeholder, .ad-box-placeholder {
    width: 100%;
    min-height: 90px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-box-placeholder {
    min-height: 250px;
}

/* -------------------------------------------------------------
   Homepage Hero Showcase
   ------------------------------------------------------------- */
.hero-section {
    padding-top: 12px;
    margin-bottom: 30px;
}

.hero-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.hero-bg-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(50px) brightness(1.15);
    opacity: 0.12;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 48px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #b45309;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text-main);
    letter-spacing: -0.8px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 540px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f1f5f9;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-play {
    padding: 13px 30px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.hero-visual {
    position: relative;
    z-index: 1;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-thumb-link {
    position: relative;
    display: block;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    border: 2px solid var(--border-subtle);
}

.hero-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.play-pulse {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(79, 70, 229, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.hero-thumb-link:hover .hero-thumb-img {
    transform: scale(1.05);
}

/* -------------------------------------------------------------
   Category Pills Bar
   ------------------------------------------------------------- */
.categories-bar-section {
    margin-bottom: 25px;
}

.category-pills-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 0 12px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.15) transparent;
}

.category-pills-scroll::-webkit-scrollbar {
    height: 5px;
}

.category-pills-scroll::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
    border-radius: 4px;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.cat-pill:hover {
    background: #f1f5f9;
    color: var(--primary);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.cat-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px var(--primary-glow);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------
   Games Grid Sections
   ------------------------------------------------------------- */
.games-section {
    margin-bottom: 45px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: #eef2ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.icon-popular {
    background: #fff1f2;
    color: var(--secondary);
}

.icon-new {
    background: #ecfdf5;
    color: var(--accent-emerald);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.4px;
}

.section-subtitle {
    color: var(--text-subtle);
    font-size: 0.9rem;
}

/* Games Grid Responsive */
.games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .games-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

@media (max-width: 860px) {
    .games-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (max-width: 540px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Game Card */
.game-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: var(--shadow-card);
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: #818cf8;
    box-shadow: var(--shadow-hover);
}

.game-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    overflow: hidden;
}

.game-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-card-thumb img {
    transform: scale(1.08);
}

.game-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-featured {
    background: #f43f5e;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4);
}

.badge-new {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.game-hover-play {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 2;
}

.game-hover-play i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transform: scale(0.8);
    transition: transform var(--transition-normal);
}

.game-card:hover .game-hover-play {
    opacity: 1;
}

.game-card:hover .game-hover-play i {
    transform: scale(1);
}

.game-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.game-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-subtle);
}

.game-cat {
    color: var(--primary);
    font-weight: 600;
}

/* -------------------------------------------------------------
   Homepage SEO Content Card (AdSense Approval Ready)
   ------------------------------------------------------------- */
.homepage-seo-section {
    margin-top: 50px;
    margin-bottom: 20px;
}

.seo-article-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.seo-article-header {
    margin-bottom: 36px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.seo-article-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.seo-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.seo-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.seo-block {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.seo-block h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-block h3 i {
    color: var(--primary);
}

.seo-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* FAQ Accordion */
.seo-faq-section {
    border-top: 1px solid var(--border-subtle);
    padding-top: 36px;
}

.seo-faq-section h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-main);
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
}

.faq-question i {
    color: var(--primary);
    transition: transform var(--transition-normal);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px 24px;
    display: none;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* -------------------------------------------------------------
   Single Game Play Page
   ------------------------------------------------------------- */
.game-play-page {
    padding-top: 15px;
}

/* Breadcrumbs */
.game-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-subtle);
    margin-bottom: 16px;
}

.game-breadcrumbs a {
    color: var(--text-muted);
}

.game-breadcrumbs a:hover {
    color: var(--primary);
}

.bc-sep {
    color: var(--text-subtle);
}

.bc-current {
    color: var(--text-main);
    font-weight: 600;
}

/* Game Stage & Iframe Wrapper */
.game-stage-container {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 10;
}

.game-embed-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    background: #000000;
}

.game-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Action Toolbar */
.game-action-toolbar {
    padding: 14px 24px;
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    align-items: center;
}

.game-meta-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tb-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.tb-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.tb-cat {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tb-btn:hover {
    background: #f1f5f9;
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.btn-like:hover, .btn-like.voted {
    color: #059669;
    border-color: #059669;
    background: #ecfdf5;
}

.btn-dislike:hover, .btn-dislike.voted {
    color: #e11d48;
    border-color: #e11d48;
    background: #fff1f2;
}

.btn-fav.active {
    color: #db2777;
    border-color: #db2777;
    background: #fdf2f8;
}

.btn-fav.active i {
    font-weight: 900;
}

.btn-fullscreen {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-fullscreen:hover {
    background: var(--primary-hover);
    color: #ffffff;
}

/* Theater Mode & Fullscreen Mode */
.theater-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    z-index: 95;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.theater-active .theater-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.theater-active .game-stage-container {
    z-index: 100;
    box-shadow: 0 0 50px rgba(79, 70, 229, 0.4);
}

/* Native Fullscreen adjustments */
.game-stage-container:fullscreen, .game-stage-container:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    background: #000;
}

.game-stage-container:fullscreen .game-embed-wrapper,
.game-stage-container:-webkit-full-screen .game-embed-wrapper {
    height: calc(100vh - 65px);
    max-height: none;
}

/* -------------------------------------------------------------
   Game Details & Guide Card Layout
   ------------------------------------------------------------- */
.game-details-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    margin-top: 30px;
}

.game-guide-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.typography-content, .game-guide-body {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.typography-content h2, .game-guide-body h2 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 16px;
    letter-spacing: -0.4px;
}

.typography-content h3, .game-guide-body h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 28px;
    margin-bottom: 12px;
}

.typography-content h4, .game-guide-body h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 20px;
    margin-bottom: 8px;
}

.typography-content p, .game-guide-body p {
    margin-bottom: 18px;
}

.typography-content ul, .game-guide-body ul,
.typography-content ol, .game-guide-body ol {
    margin-bottom: 22px;
    padding-left: 24px;
}

.typography-content li, .game-guide-body li {
    margin-bottom: 8px;
}

.typography-content a, .game-guide-body a {
    color: var(--primary);
    text-decoration: underline;
}

.typography-content a:hover, .game-guide-body a:hover {
    color: var(--primary-hover);
}

/* Game Controls Card */
.game-controls-card {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px;
    margin: 28px 0;
}

.game-controls-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-controls-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Tags Wrap */
.game-tags-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.tags-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-subtle);
    margin-right: 4px;
}

.game-tag-pill {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.game-tag-pill:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Related Games Grid */
.related-games-section {
    margin-top: 40px;
}

.grid-related {
    grid-template-columns: repeat(3, 1fr);
}

/* -------------------------------------------------------------
   Sidebar Widgets
   ------------------------------------------------------------- */
.game-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: var(--primary);
}

.specs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.specs-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.specs-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.specs-list span {
    color: var(--text-muted);
}

.badge-free {
    color: var(--accent-emerald);
}

/* Trending List */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.trending-item:hover {
    background: #f8fafc;
}

.trending-thumb {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.trending-meta {
    flex: 1;
}

.trending-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    display: block;
    line-height: 1.3;
    margin-bottom: 4px;
}

.trending-views {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
   Category Page & Search Hero Banners
   ------------------------------------------------------------- */
.category-hero-card, .search-header-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.cat-hero-icon, .search-hero-icon {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 8px 24px var(--primary-glow);
}

.cat-hero-title, .search-header-text h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.cat-hero-desc, .search-header-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.cat-hero-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #f1f5f9;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.search-inpage-form {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    width: 100%;
    max-width: 600px;
}

.search-inpage-form input {
    flex: 1;
    padding: 12px 18px;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
}

.search-inpage-form input:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Pagination */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-numbers {
    display: flex;
    gap: 6px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.page-link:hover, .page-link.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Empty State Card */
.empty-state-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 60px 24px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.empty-icon {
    font-size: 3.5rem;
    color: var(--text-subtle);
    margin-bottom: 18px;
}

.empty-state-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.empty-state-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* -------------------------------------------------------------
   Static & Legal Pages Layout
   ------------------------------------------------------------- */
.static-page-layout {
    padding-top: 15px;
}

.static-page-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    max-width: 1050px;
    margin: 0 auto;
}

.static-page-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.static-page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.6px;
    margin-bottom: 12px;
}

.static-page-meta {
    display: flex;
    gap: 20px;
    color: var(--text-subtle);
    font-size: 0.88rem;
}

.static-page-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* -------------------------------------------------------------
   Contact Us Page
   ------------------------------------------------------------- */
.contact-page-layout {
    padding-top: 15px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.contact-form-card, .contact-info-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.card-header-inner h2, .contact-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.card-header-inner p, .contact-info-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.required {
    color: #f43f5e;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.btn-submit-contact {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 500;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-danger {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

/* Contact Info List */
.contact-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.ci-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: #eef2ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ci-details {
    display: flex;
    flex-direction: column;
}

.ci-label {
    font-size: 0.8rem;
    color: var(--text-subtle);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ci-details a, .ci-details strong {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-top: 2px;
}

.contact-sub-box {
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
}

.contact-sub-box h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-sub-box p {
    font-size: 0.88rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
   Share Modal
   ------------------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 250;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.open {
    display: flex;
}

.modal-dialog {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    position: relative;
    animation: modalIn 0.25s ease forwards;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-subtle);
    cursor: pointer;
    line-height: 1;
}

.modal-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.share-buttons-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffffff;
}

.share-whatsapp { background: #25d366; }
.share-facebook { background: #1877f2; }
.share-twitter  { background: #0f172a; border: 1px solid var(--border-subtle); }

.share-copy-box {
    display: flex;
    gap: 8px;
}

.share-copy-box input {
    flex: 1;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.88rem;
    outline: none;
}

.copy-success-msg {
    display: none;
    color: #059669;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
    padding-top: 60px;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ffffff;
}

.footer-logo .brand-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
}

.footer-desc {
    color: var(--text-subtle);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 22px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-links a i {
    width: 14px;
    color: var(--primary);
    font-size: 0.8rem;
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-subtle);
}

.copyright-text {
    text-align: center;
    width: 100%;
}

.copyright-text strong {
    color: var(--text-main);
}

/* -------------------------------------------------------------
   Cookie Consent Banner
   ------------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
    padding: 18px 24px;
    z-index: 300;
    animation: slideUpCookie 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUpCookie {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-icon {
    font-size: 1.8rem;
    color: var(--accent-amber);
    flex-shrink: 0;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.btn-cookie-accept {
    padding: 10px 22px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition-fast);
}

.btn-cookie-accept:hover {
    background: var(--primary-hover);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* -------------------------------------------------------------
   Responsive Breakpoints
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-card { grid-template-columns: 1fr; }
    .hero-content { padding: 36px; }
    .hero-visual { padding: 0 36px 36px 36px; }
    .hero-thumb-link { max-width: 100%; aspect-ratio: 16 / 9; }
    .game-details-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .seo-content-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 14px;
        gap: 10px;
    }
    .header-brand {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }
    .brand-logo-fallback .brand-text {
        font-size: 1.15rem;
        max-width: 170px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .brand-logo-img {
        max-height: 34px;
        max-width: 160px;
    }
    .header-search { display: none; }
    .btn-action.btn-cat-toggle { display: none; }
    .btn-random {
        padding: 8px 10px;
    }
    .btn-random span {
        display: none;
    }
    .header-actions {
        flex-shrink: 0;
        gap: 8px;
    }
    .mobile-menu-btn {
        display: flex;
        flex-shrink: 0;
    }
    .hero-title { font-size: 2rem; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .cookie-banner-content { flex-direction: column; text-align: center; }
    .cookie-text { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .static-page-card { padding: 24px; }
    .game-guide-card { padding: 24px; }
    .game-action-toolbar { flex-direction: column; align-items: flex-start; }
    .toolbar-right { width: 100%; justify-content: space-between; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
        gap: 8px;
    }
    .brand-logo-fallback .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 1.05rem;
    }
    .brand-logo-fallback .brand-text {
        font-size: 1.02rem;
        max-width: 135px;
    }
    .btn-random {
        display: none;
    }
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        padding: 8px 6px;
    }
}
