/**
 * CloudArcade Light - Official Stylesheet (v2.6.0)
 * Precision-crafted to match reference image layout:
 * - Dark Navy Header & Footer
 * - New Games: 6-Column Square Tiles with "Load More v"
 * - Popular Games: Double-Width Featured Card + 6-Column Standard Cards with Star Ratings
 * - You May Like: 3-Column Horizontal Mini-Cards
 * - Categories: 4-Column Vibrant Icon Cards
 * - "Play on your Browser" SEO Content moved to bottom
 * - Zero Banner Ads - 100% AdSense Ready
 */

:root {
    --cal-bg: #f8fafc;
    --cal-surface: #ffffff;
    --cal-card: #ffffff;
    --cal-border: #e2e8f0;
    --cal-border-hover: #cbd5e1;
    --cal-text-main: #0f172a;
    --cal-text-muted: #64748b;
    --cal-text-subtle: #94a3b8;
    --cal-primary: #2563eb;
    --cal-primary-hover: #1d4ed8;
    --cal-indigo: #6366f1;
    --cal-purple: #8b5cf6;
    --cal-amber: #f59e0b;
    --cal-emerald: #10b981;
    --cal-rose: #ec4899;
    --cal-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.cal-theme-body {
    background-color: var(--cal-bg);
    color: var(--cal-text-main);
    font-family: var(--cal-font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.18s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.cal-main-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    flex: 1;
}

/* ==========================================================================
   1. Header & Navigation Bar (Dark Navy #161b26 matching Reference Image)
   ========================================================================== */
.cal-navbar {
    background: #161b26 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cal-nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Brand Logo */
.cal-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    color: #ffffff;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.cal-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}
.cal-logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #ffffff;
    color: #161b26;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.cal-brand-text {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.28rem;
    letter-spacing: -0.3px;
}

/* Nav Menu */
.cal-nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cal-nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    padding: 7px 13px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    transition: all 0.15s ease;
}
.cal-nav-link:hover,
.cal-nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Arcade Dropdown */
.cal-dropdown {
    position: relative;
}
.cal-drop-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.cal-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    border: 1px solid var(--cal-border);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    padding: 14px;
    min-width: 480px;
    display: none;
    z-index: 1001;
}
.cal-dropdown:hover .cal-dropdown-menu {
    display: block;
}
.cal-drop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.cal-drop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--cal-text-main);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.15s ease;
}
.cal-drop-item:hover {
    background: #f1f5f9;
    color: var(--cal-primary);
}
.cal-drop-count {
    margin-left: auto;
    font-size: 0.74rem;
    color: var(--cal-text-muted);
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 9999px;
}

/* Search Bar & User Actions */
.cal-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cal-search-form {
    position: relative;
    display: flex;
    align-items: center;
}
.cal-search-icon {
    position: absolute;
    left: 12px;
    color: #64748b;
    font-size: 0.86rem;
    pointer-events: none;
}
.cal-search-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 7px 14px 7px 34px;
    font-size: 0.86rem;
    font-family: inherit;
    color: #0f172a;
    width: 170px;
    outline: none;
    transition: all 0.2s ease;
}
.cal-search-input:focus {
    width: 220px;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.cal-search-input::placeholder {
    color: #94a3b8;
}

/* User Button */
.cal-user-btn {
    color: #cbd5e1;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}
.cal-user-btn:hover {
    color: #ffffff;
}

/* Mobile Toggle & Menu */
.cal-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
}
.cal-mobile-menu {
    display: none;
    background: #161b26;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 20px 24px;
}
.cal-mobile-menu.open {
    display: block;
}
.cal-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.cal-mob-link {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
}
.cal-mob-link:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}
.cal-mob-cat-title {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.cal-mob-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.cal-mob-cat-item {
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cal-mob-cat-item:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

/* ==========================================================================
   2. Section Headers (Clean Icon + Bold Title)
   ========================================================================== */
.cal-section {
    margin-bottom: 34px;
}
.cal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.cal-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
}
.cal-title-icon {
    font-size: 1.15rem;
}
.cal-icon-purple { color: #8b5cf6; }
.cal-icon-indigo { color: #6366f1; }
.cal-icon-violet { color: #8b5cf6; }
.cal-section-title {
    font-size: 1.28rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   3. Section: New Games (6-Column Grid of 18 Square Tiles)
   ========================================================================== */
.cal-new-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.cal-square-card {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #0f172a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.22s ease;
    position: relative;
}
.cal-square-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}
.cal-square-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.cal-square-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.cal-square-card:hover .cal-square-link img {
    transform: scale(1.05);
}
.cal-card-hover-play {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.cal-card-hover-play i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    padding-left: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transform: scale(0.85);
    transition: transform 0.2s ease;
}
.cal-square-card:hover .cal-card-hover-play {
    opacity: 1;
}
.cal-square-card:hover .cal-card-hover-play i {
    transform: scale(1);
}

/* Load More Centered Pill Button */
.cal-load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 20px 0 10px;
}
.cal-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 26px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1.5px solid #c7d2fe;
    color: #4f46e5;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(99,102,241,0.08);
}
.cal-pill-btn:hover {
    background: #eef2ff;
    border-color: #818cf8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.15);
}

/* ==========================================================================
   4. Section: Popular Games (Featured 2-Col Card + Star Ratings)
   ========================================================================== */
.cal-popular-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

/* Featured 2-Column Wide Card */
.cal-pop-featured {
    grid-column: span 2;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    transition: all 0.2s ease;
}
.cal-pop-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}
.cal-featured-inner {
    display: flex;
    gap: 14px;
    width: 100%;
    text-decoration: none;
    color: inherit;
    align-items: center;
}
.cal-featured-thumb {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0f172a;
}
.cal-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cal-featured-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    height: 100%;
}
.cal-featured-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-featured-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cal-featured-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}
.cal-star-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
}
.cal-star-badge i {
    color: #eab308;
    font-size: 0.75rem;
}
.cal-play-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #6366f1;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 9999px;
    transition: background 0.15s ease;
}
.cal-pop-featured:hover .cal-play-pill {
    background: #4f46e5;
}

/* Standard Popular Card */
.cal-pop-card {
    display: flex;
    flex-direction: column;
}
.cal-pop-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.cal-pop-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}
.cal-pop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.cal-pop-card:hover .cal-pop-thumb {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}
.cal-pop-card:hover .cal-pop-thumb img {
    transform: scale(1.05);
}
.cal-pop-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.cal-pop-hover-overlay i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    padding-left: 2px;
}
.cal-pop-card:hover .cal-pop-hover-overlay {
    opacity: 1;
}
.cal-pop-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
    margin: 6px 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.cal-pop-card:hover .cal-pop-title {
    color: #4f46e5;
}
.cal-pop-rating {
    font-size: 0.74rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 3px;
}
.cal-pop-rating i {
    color: #eab308;
    font-size: 0.7rem;
}

/* ==========================================================================
   5. Section: You May Like (3 Columns of Horizontal Mini-Cards)
   ========================================================================== */
.cal-yml-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.cal-yml-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.cal-yml-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}
.cal-yml-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0f172a;
}
.cal-yml-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cal-yml-info {
    min-width: 0;
    flex: 1;
}
.cal-yml-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-yml-card:hover .cal-yml-title {
    color: #4f46e5;
}
.cal-yml-cat {
    font-size: 0.75rem;
    color: #94a3b8;
    display: block;
}

/* ==========================================================================
   6. Section: Categories Grid (4 Columns with Vibrant 3D Badges)
   ========================================================================== */
.cal-cat-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.cal-cat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.cal-cat-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}
.cal-cat-badge-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.cal-cat-details {
    min-width: 0;
    flex: 1;
}
.cal-cat-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    display: block;
    line-height: 1.3;
}
.cal-cat-card:hover .cal-cat-name {
    color: #2563eb;
}
.cal-cat-count {
    font-size: 0.76rem;
    color: #64748b;
    display: block;
}

/* ==========================================================================
   7. Section: "Play on your Browser" (Moved to END - AdSense Approval Ready)
   ========================================================================== */
.cal-play-browser-section {
    margin-top: 40px;
}
.cal-browser-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 38px 34px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.cal-browser-header {
    margin-bottom: 28px;
}
.cal-browser-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}
.cal-browser-lead {
    font-size: 0.98rem;
    color: #475569;
    line-height: 1.8;
    max-width: 1050px;
    margin: 0;
}
.cal-browser-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 34px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}
.cal-feature-col h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cal-feature-col p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* FAQ Accordion */
.cal-browser-faqs {
    border-top: 1px solid #f1f5f9;
    padding-top: 26px;
}
.cal-faq-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cal-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cal-faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.18s ease;
}
.cal-faq-item[open] {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.cal-faq-summary {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.94rem;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    user-select: none;
}
.cal-faq-summary::-webkit-details-marker {
    display: none;
}
.cal-faq-arrow {
    font-size: 0.82rem;
    color: #64748b;
    transition: transform 0.2s ease;
}
.cal-faq-item[open] .cal-faq-arrow {
    transform: rotate(180deg);
}
.cal-faq-body {
    padding: 0 18px 16px;
}
.cal-faq-body p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   8. Footer (Dark Navy #161b26 matching Reference Image)
   ========================================================================== */
.cal-footer {
    background: #161b26 !important;
    color: #cbd5e1 !important;
    margin-top: auto;
    border-top: none;
    padding-top: 48px;
}
.cal-footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px 40px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 36px;
}
.cal-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.cal-footer-logo .cal-brand-text {
    color: #ffffff !important;
    font-size: 1.3rem;
    font-weight: 800;
}
.cal-footer-about {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #94a3b8 !important;
    margin-bottom: 14px;
}
.cal-footer-contact-info {
    margin-bottom: 16px;
}
.cal-footer-email {
    color: #cbd5e1;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cal-footer-email:hover {
    color: #ffffff;
}
.cal-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cal-social-links a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: all 0.15s ease;
}
.cal-social-links a:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
}

.cal-footer-heading {
    color: #ffffff !important;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.cal-footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.cal-footer-list a {
    color: #94a3b8 !important;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s ease;
}
.cal-footer-list a:hover {
    color: #ffffff !important;
}
.cal-footer-list .cal-badge {
    margin-left: auto;
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
    padding: 1px 6px;
    border-radius: 9999px;
    font-size: 0.72rem;
}
.cal-footer-info-text {
    font-size: 0.86rem;
    line-height: 1.65;
    color: #94a3b8;
    margin-bottom: 16px;
}
.cal-compliance-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.8rem;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

/* Sub-Footer */
.cal-subfooter {
    background: #10141d !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 0;
}
.cal-subfooter-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cal-copyright {
    font-size: 0.84rem;
    color: #64748b !important;
}
.cal-subfooter-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
}
.cal-subfooter-links a {
    color: #94a3b8;
}
.cal-subfooter-links a:hover {
    color: #ffffff;
}
.cal-sep {
    color: #475569;
    font-size: 0.7rem;
}

/* Cookie Consent */
.cal-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #161b26;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border-radius: 12px;
    padding: 14px 20px;
    z-index: 9999;
    max-width: 650px;
    width: 90%;
    display: none;
}
.cal-cookie-content {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cal-cookie-icon {
    font-size: 1.6rem;
    color: #eab308;
    flex-shrink: 0;
}
.cal-cookie-content p {
    font-size: 0.84rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}
.cal-cookie-content a {
    color: #60a5fa;
    text-decoration: underline;
}
.cal-cookie-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.cal-btn-accept {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}
.cal-btn-settings {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.84rem;
    font-weight: 600;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .cal-new-games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .cal-popular-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .cal-yml-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cal-cat-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .cal-browser-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .cal-footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .cal-nav-menu {
        display: none;
    }
    .cal-mobile-toggle {
        display: block;
    }
    .cal-search-input {
        width: 130px;
    }
    .cal-search-input:focus {
        width: 160px;
    }
    .cal-new-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .cal-popular-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .cal-pop-featured {
        grid-column: span 3;
    }
    .cal-yml-grid {
        grid-template-columns: 1fr;
    }
    .cal-cat-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .cal-browser-features {
        grid-template-columns: 1fr;
    }
    .cal-footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .cal-subfooter-container {
        flex-direction: column;
        text-align: center;
    }
    .cal-cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cal-new-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cal-popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cal-pop-featured {
        grid-column: span 2;
        flex-direction: column;
    }
    .cal-featured-thumb {
        width: 100%;
        height: 140px;
    }
    .cal-cat-grid-4 {
        grid-template-columns: 1fr;
    }
}



/* ==========================================================================
   PlayArcade Pro - Universal Game Playing Stage & Page Styling
   Provides 100% responsive, high-performance styling for game playing pages
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.game-play-page {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px 0 40px;
    box-sizing: border-box;
}

/* Breadcrumb Navigation */
.game-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.game-breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s ease;
}
.game-breadcrumbs a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
.game-breadcrumbs .bc-sep {
    color: #cbd5e1;
    font-size: 0.8rem;
}
.game-breadcrumbs .bc-current {
    color: #0f172a;
    font-weight: 700;
}

/* Above & Below Game Ad Slots */
.ad-game-top, .ad-game-bottom {
    margin: 14px 0;
    text-align: center;
    overflow: hidden;
}

/* Main Game Stage Container (Player + Action Bar) */
.game-stage-container {
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
    position: relative;
    transition: all 0.3s ease;
}

/* 16:9 Widescreen Responsive Embed Container */
.game-embed-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 520px;
    max-height: 80vh;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.game-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Action Toolbar Under Game */
.game-action-toolbar {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

/* Left: Thumbnail & Info */
.toolbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.game-meta-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tb-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.tb-info {
    display: flex;
    flex-direction: column;
}
.tb-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 3px;
    line-height: 1.25;
}
.tb-cat {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
}

/* Right: Interactive Toolbar Buttons */
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tb-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    transition: all 0.18s ease;
    user-select: none;
    line-height: 1;
}
.tb-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}
.tb-btn:active {
    transform: translateY(0);
}
.tb-btn i {
    font-size: 0.92rem;
}

/* Button Variants & Active States */
.tb-btn.btn-like:hover, .tb-btn.btn-like.voted {
    background: #ecfdf5;
    border-color: #10b981;
    color: #059669;
}
.tb-btn.btn-dislike:hover, .tb-btn.btn-dislike.voted {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}
.tb-btn.btn-fav:hover, .tb-btn.btn-fav.active {
    background: #fdf2f8;
    border-color: #ec4899;
    color: #db2777;
}
.tb-btn.btn-theater:hover {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #d97706;
}
.tb-btn.btn-fullscreen {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}
.tb-btn.btn-fullscreen:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}
.tb-btn.btn-share:hover {
    background: #f5f3ff;
    border-color: #8b5cf6;
    color: #7c3aed;
}

/* Native Fullscreen Mode Overrides */
#gameStage:fullscreen, 
#gameStage:-webkit-full-screen, 
#gameStage:-moz-full-screen, 
#gameStage:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
}
#gameStage:fullscreen .game-embed-wrapper, 
#gameStage:-webkit-full-screen .game-embed-wrapper,
#gameStage:-moz-full-screen .game-embed-wrapper,
#gameStage:-ms-fullscreen .game-embed-wrapper {
    width: 100vw !important;
    height: calc(100vh - 65px) !important;
    max-height: calc(100vh - 65px) !important;
    aspect-ratio: auto !important;
    flex: 1 !important;
}
#gameStage:fullscreen .game-action-toolbar, 
#gameStage:-webkit-full-screen .game-action-toolbar,
#gameStage:-moz-full-screen .game-action-toolbar,
#gameStage:-ms-fullscreen .game-action-toolbar {
    height: 65px !important;
    border-radius: 0 !important;
    flex-shrink: 0 !important;
}

/* Theater Mode ("Lights Off") Overlay */
.theater-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9998;
}
body.theater-active .theater-overlay {
    display: block;
}
body.theater-active .game-stage-container {
    position: relative;
    z-index: 9999;
    box-shadow: 0 0 60px rgba(0,0,0,0.9);
}

/* Two-Column Details Layout (Guide + Sidebar) */
.game-details-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
.game-main-col {
    min-width: 0;
}
.game-sidebar-col {
    min-width: 0;
}

/* Main Column: In-Depth 800+ Words Guide Card */
.game-guide-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 24px;
}
.game-guide-body {
    font-size: 0.96rem;
    line-height: 1.75;
    color: #334155;
}
.game-guide-body h2, .game-guide-body h3 {
    color: #0f172a;
    font-weight: 800;
    margin: 20px 0 10px;
}
.game-guide-body h2:first-child, .game-guide-body h3:first-child {
    margin-top: 0;
}
.game-guide-body p {
    margin-bottom: 14px;
}
.game-guide-body ul, .game-guide-body ol {
    margin: 10px 0 16px 20px;
}
.game-guide-body li {
    margin-bottom: 6px;
}

/* Quick Controls Guide Card */
.game-controls-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    padding: 16px 18px;
    margin: 20px 0;
}
.game-controls-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.game-controls-card p {
    font-size: 0.9rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

/* Tags Pills */
.game-tags-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}
.tags-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #64748b;
    margin-right: 4px;
}
.game-tag-pill {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.game-tag-pill:hover {
    background: #2563eb;
    color: #ffffff;
}

/* Related Games Recommendation Section */
.related-games-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.related-games-section .section-header {
    margin-bottom: 16px;
}
.related-games-section .section-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.related-games-section .section-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.related-games-section .section-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.grid-related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.game-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}
.game-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.game-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.game-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.game-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.game-hover-play {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.game-hover-play i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding-left: 2px;
}
.game-card:hover .game-hover-play {
    opacity: 1;
}
.game-card-body {
    padding: 10px 12px;
}
.game-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #64748b;
}

/* Sidebar Column & Widgets */
.sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}
.sidebar-widget.widget-ad {
    padding: 10px;
    text-align: center;
    overflow: hidden;
}
.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}
.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.specs-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    color: #64748b;
}
.specs-list li strong {
    color: #0f172a;
    font-weight: 600;
}
.badge-free {
    background: #ecfdf5;
    color: #059669;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.trending-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
}
.trending-item:hover {
    background: #f8fafc;
}
.trending-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.trending-meta {
    flex: 1;
    min-width: 0;
}
.trending-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trending-item:hover .trending-title {
    color: #2563eb;
}
.trending-views {
    font-size: 0.76rem;
    color: #64748b;
}

/* Share Modal & Backdrop */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.modal-backdrop.open {
    display: flex;
}
.modal-dialog {
    background: #ffffff;
    border-radius: 14px;
    max-width: 480px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
    box-sizing: border-box;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
    padding: 0;
}
.modal-close:hover {
    color: #0f172a;
}
.modal-body p {
    color: #475569;
    font-size: 0.92rem;
    margin-bottom: 16px;
}
.share-buttons-row {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}
.share-btn {
    flex: 1;
    padding: 9px 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity 0.15s ease;
}
.share-btn:hover {
    opacity: 0.9;
}
.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }
.share-twitter { background: #000000; }

.share-copy-box {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.share-copy-box input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.86rem;
    background: #f8fafc;
    color: #334155;
    outline: none;
}
.share-copy-box input:focus {
    border-color: #2563eb;
}
.share-copy-box .btn-primary {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    transition: background 0.15s ease;
}
.share-copy-box .btn-primary:hover {
    background: #1d4ed8;
}
.copy-success-msg {
    display: none;
    font-size: 0.82rem;
    color: #10b981;
    font-weight: 600;
    margin-top: 8px;
}
.copy-success-msg.show {
    display: block;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .game-details-layout {
        grid-template-columns: 1fr;
    }
    .grid-related {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .game-embed-wrapper {
        min-height: 320px;
        aspect-ratio: 16 / 10;
    }
    .game-action-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 14px;
    }
    .toolbar-left, .toolbar-right {
        width: 100%;
    }
    .toolbar-right {
        justify-content: space-between;
    }
    .grid-related {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .game-embed-wrapper {
        min-height: 240px;
    }
    .tb-thumb {
        width: 42px;
        height: 42px;
    }
    .tb-title {
        font-size: 1.05rem;
    }
    .tb-btn {
        padding: 7px 10px;
        font-size: 0.82rem;
    }
    .tb-btn span {
        display: none;
    }
    .tb-btn i {
        margin: 0;
    }
    .grid-related {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   PlayArcade Pro - Universal Category, Legal & Static Pages Stylesheet
   Complete, modern, responsive styling for Category, Static/Legal, Search & Contact pages.
   ========================================================================== */

/* 1. Global Containers & Layout Wrappers */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.category-page,
.search-page,
.static-page-layout,
.contact-page-layout {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 0 50px;
    box-sizing: border-box;
}

/* 2. Breadcrumb Navigation */
.game-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 20px;
    padding: 12px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.game-breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}
.game-breadcrumbs a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
.game-breadcrumbs .bc-sep {
    color: #cbd5e1;
    font-size: 0.8rem;
}
.game-breadcrumbs .bc-current {
    color: #0f172a;
    font-weight: 700;
}

/* ==========================================================================
   3. Category Archive Page (.category-page)
   ========================================================================== */

.category-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
}
.category-hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}
.cat-hero-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(37,99,235,0.25);
}
.cat-hero-info {
    flex: 1;
    min-width: 0;
}
.cat-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.cat-hero-desc {
    font-size: 0.98rem;
    color: #64748b;
    margin: 0 0 14px;
    line-height: 1.65;
    max-width: 820px;
}
.cat-hero-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 9999px;
    border: 1px solid #dbeafe;
}

/* Games Grid & Cards (Used by Category & Search) */
.games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.game-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}
.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #3b82f6;
}
.game-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.game-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #0f172a;
}
.game-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.game-card:hover .game-card-thumb img {
    transform: scale(1.06);
}
.game-hover-play {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.22s ease;
    backdrop-filter: blur(2px);
}
.game-hover-play i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    padding-left: 3px;
    box-shadow: 0 4px 14px rgba(37,99,235,0.4);
    transform: scale(0.85);
    transition: transform 0.22s ease;
}
.game-card:hover .game-hover-play {
    opacity: 1;
}
.game-card:hover .game-hover-play i {
    transform: scale(1);
}
.game-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.game-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.game-card:hover .game-card-title {
    color: #2563eb;
}
.game-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #64748b;
    margin-top: auto;
}
.game-cat {
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.74rem;
}
.game-plays {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
}

/* Pagination */
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 36px 0 20px;
    flex-wrap: wrap;
}
.page-numbers {
    display: flex;
    gap: 6px;
}
.page-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 9px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.18s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.page-link:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}
.page-link.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}

/* Empty State */
.empty-state-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 50px 24px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.empty-icon {
    font-size: 3.5rem;
    color: #94a3b8;
    margin-bottom: 16px;
    display: inline-block;
}
.empty-state-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}
.empty-state-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 20px;
}
.empty-state-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}
.empty-state-card .btn:hover {
    background: #1d4ed8;
}

/* ==========================================================================
   4. Static & Legal Compliance Pages (.static-page-layout)
   ========================================================================== */

.static-page-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 44px 48px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin: 0 auto;
    max-width: 980px;
    box-sizing: border-box;
}

.static-page-header {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}
.static-page-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px;
    line-height: 1.22;
    letter-spacing: -0.02em;
}
.static-page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 500;
}
.static-page-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.static-page-meta i {
    color: #2563eb;
}

/* Comprehensive Rich Typography for Legal & Static Pages */
.static-page-body.typography-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
}
.typography-content h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    letter-spacing: -0.01em;
}
.typography-content h2:first-child {
    margin-top: 0;
}
.typography-content h3 {
    font-size: 1.28rem;
    font-weight: 700;
    color: #1e293b;
    margin: 28px 0 12px;
}
.typography-content h4 {
    font-size: 1.12rem;
    font-weight: 700;
    color: #334155;
    margin: 20px 0 10px;
}
.typography-content p {
    margin: 0 0 18px;
    line-height: 1.85;
}
.typography-content strong {
    color: #0f172a;
    font-weight: 700;
}
.typography-content ul,
.typography-content ol {
    margin: 14px 0 22px 24px;
    padding: 0;
}
.typography-content li {
    margin-bottom: 8px;
    line-height: 1.75;
}
.typography-content a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #93c5fd;
    transition: all 0.15s ease;
}
.typography-content a:hover {
    color: #1d4ed8;
    border-bottom-style: solid;
}
.typography-content blockquote {
    border-left: 4px solid #2563eb;
    background: #f8fafc;
    padding: 16px 22px;
    border-radius: 0 10px 10px 0;
    margin: 24px 0;
    font-style: italic;
    color: #475569;
}
.typography-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 26px 0;
    font-size: 0.95rem;
}
.typography-content th,
.typography-content td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    text-align: left;
}
.typography-content th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}
.typography-content code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 7px;
    border-radius: 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
}
.typography-content hr {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 36px 0;
}

/* ==========================================================================
   5. Search Page (.search-page)
   ========================================================================== */

.search-header-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 32px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.search-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.search-hero-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.search-header-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}
.search-header-text p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}
.search-header-text strong {
    color: #0f172a;
}
.search-inpage-form {
    display: flex;
    gap: 10px;
    max-width: 680px;
}
.search-inpage-form input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.96rem;
    background: #f8fafc;
    color: #0f172a;
    outline: none;
    transition: all 0.18s ease;
}
.search-inpage-form input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.search-inpage-form button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.18s ease;
}
.search-inpage-form button:hover {
    background: #1d4ed8;
}

/* ==========================================================================
   6. Contact Page (.contact-page-layout)
   ========================================================================== */

.contact-grid {
    max-width: 820px;
    margin: 0 auto;
}
.contact-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 38px 42px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.card-header-inner {
    margin-bottom: 24px;
}
.card-header-inner h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}
.card-header-inner p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.92rem;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}
.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.contact-form .form-row {
    display: flex;
    gap: 16px;
}
.contact-form .form-group {
    margin-bottom: 18px;
    flex: 1;
}
.contact-form label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 7px;
}
.contact-form .required {
    color: #ef4444;
}
.contact-form .form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.92rem;
    color: #0f172a;
    background: #f8fafc;
    box-sizing: border-box;
    outline: none;
    transition: all 0.18s ease;
}
.contact-form .form-control:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.btn-submit-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.18s ease;
}
.btn-submit-contact:hover {
    background: #1d4ed8;
}

/* ==========================================================================
   7. Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .static-page-card {
        padding: 36px 30px;
    }
    .category-hero-card {
        padding: 24px;
    }
    .cat-hero-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .category-hero-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }
    .cat-hero-icon {
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
    }
    .cat-hero-title {
        font-size: 1.55rem;
    }
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .static-page-card {
        padding: 26px 18px;
        border-radius: 12px;
    }
    .static-page-title {
        font-size: 1.7rem;
    }
    .contact-form-card {
        padding: 26px 18px;
    }
    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    .search-inpage-form {
        flex-direction: column;
    }
    .search-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .game-card-body {
        padding: 8px 10px;
    }
    .game-card-title {
        font-size: 0.84rem;
    }
    .static-page-title {
        font-size: 1.45rem;
    }
    .typography-content h2 {
        font-size: 1.3rem;
    }
    .page-link {
        padding: 7px 12px;
        font-size: 0.82rem;
    }
}
