/* ============================================================
   GOLD THEME OVERRIDE - Complete Layout Redesign
   Theme color: #c48f39
   ============================================================ */

/* Import Google Fonts for modern look */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    --gold: #c48f39;
    --gold-dark: #8b6420;
    --gold-darker: #5d3f1a;
    --gold-light: #f4d896;
    --gold-soft: #fdf6e8;
    --cream: #fffbf0;
    --ink: #4a3a1f;
    --ink-soft: #7a6233;
    --accent: #d97a3b;
}

/* Smooth scrolling and base */
html { scroll-behavior: smooth; }

/* Body - warm cream */
body {
    font-family: 'Poppins', 'Open Sans', sans-serif !important;
    background:
        radial-gradient(ellipse at top right, rgba(196, 143, 57, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(244, 216, 150, 0.08) 0%, transparent 50%),
        var(--cream);
    background-attachment: fixed;
    color: var(--ink);
}

/* ============================================================
   HEADER - New design: thin top bar + large hero banner
   ============================================================ */
header.main {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%) !important;
    padding: 0 !important;
    box-shadow: 0 6px 24px rgba(139, 100, 32, 0.2) !important;
    position: relative;
    overflow: hidden;
}

header.main::before {
    content: '';
    position: absolute;
    top: -80%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

header.main::after {
    content: '';
    position: absolute;
    bottom: -100%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

header.main .main-section {
    position: relative;
    z-index: 2;
    padding: 18px 20px;
    width: 1200px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo area - completely new design */
header.main .logo {
    flex: 0 0 auto;
    display: flex !important;
    align-items: center;
    gap: 12px;
    text-align: left !important;
    text-decoration: none;
}

header.main .logo svg {
    display: none !important;
}

/* Replace SVG logo with text + icon mark */
header.main .logo::before {
    content: 'G';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--gold-dark);
    border-radius: 12px;
    font-weight: 900;
    font-size: 26px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

header.main .logo::after {
    content: 'GoldPlay';
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Hamburger - more modern, circular */
header.main .menuHolder {
    position: static !important;
    flex: 0 0 auto;
}

header.main .menuHolder label[for="navigationTrigger"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 42px !important;
    width: 42px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.25s ease !important;
}

header.main .menuHolder label[for="navigationTrigger"]:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: scale(1.05);
}

header.main .menuHolder label[for="navigationTrigger"] svg {
    height: 18px !important;
    width: 18px;
}

/* Nav dropdown - redesign */
header.main .menuHolder nav.main {
    display: none;
    position: absolute;
    top: 70px;
    left: 20px;
    z-index: 1000 !important;
    width: 280px !important;
    padding: 16px !important;
    background: #fff !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 60px rgba(93, 63, 26, 0.25) !important;
    border: 1px solid var(--gold-light) !important;
    animation: dropdownFade 0.25s ease !important;
}

header.main .menuHolder #navigationTrigger:checked ~ nav.main {
    display: block !important;
}

header.main .menuHolder nav.main ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

header.main .menuHolder nav.main ul > li a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    border-bottom: none !important;
    color: var(--gold-darker) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
    text-decoration: none;
}

header.main .menuHolder nav.main ul > li a:hover {
    background: var(--gold-soft);
    color: var(--gold-dark) !important;
    transform: translateX(4px);
}

header.main .menuHolder nav.main ul > li a img,
header.main .menuHolder nav.main ul > li a svg {
    width: 22px !important;
    height: 22px;
    flex-shrink: 0;
}

/* Language select - repositioned */
header.main .language-select {
    position: static !important;
    flex: 0 0 auto;
    width: auto !important;
    height: 42px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px);
    border-radius: 21px !important;
    padding: 0 14px 0 14px !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

header.main .language-select .value {
    position: static !important;
    padding: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

header.main .language-select .value::before {
    content: '🌐';
    font-size: 14px;
    filter: grayscale(1) brightness(2);
    border: none !important;
    position: static !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
}

header.main .language-select select {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
}

/* Mobile adjustments */
@media only screen and (max-width: 750px) {
    header.main .main-section {
        padding: 14px 14px;
    }
    header.main .logo::after {
        font-size: 18px;
    }
    header.main .logo::before {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
}

/* ============================================================
   HERO BANNER - Featured area below header
   ============================================================ */
.hero-banner {
    background: linear-gradient(135deg, var(--gold-soft) 0%, #fff 100%);
    border-radius: 24px;
    padding: 40px 30px;
    margin-bottom: 32px;
    border: 1px solid var(--gold-light);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196, 143, 57, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner h1 {
    font-size: 2.4em !important;
    color: var(--gold-darker) !important;
    text-transform: none !important;
    text-align: left !important;
    margin-bottom: 12px !important;
    line-height: 1.15 !important;
    font-weight: 800;
}

.hero-banner .subtitle {
    color: var(--ink-soft);
    font-size: 1.1em;
    margin-bottom: 20px;
}

.hero-banner .hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   CONTENT LAYOUT - Different sidebar/main grid
   ============================================================ */
.content {
    background: transparent !important;
}

.content .main-section {
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}

#app {
    display: block;
}

/* Sidebar navigation - completely redesigned */
nav.main {
    width: 100% !important;
    float: none !important;
    min-height: auto !important;
    margin-top: 0 !important;
    padding: 20px !important;
    background: #fff !important;
    border-radius: 20px !important;
    border: 1px solid var(--gold-light) !important;
    box-shadow: 0 4px 20px rgba(196, 143, 57, 0.08) !important;
    margin-bottom: 24px !important;
}

nav.main::before {
    content: '🎮 Categories';
    display: block;
    color: var(--gold-darker);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold-light);
}

nav.main ul > li a {
    border-bottom: none !important;
    padding: 11px 14px !important;
    color: var(--gold-darker) !important;
    font-size: 14px !important;
    line-height: 1 !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

nav.main ul > li a:hover {
    background: var(--gold-soft);
}

nav.main ul > li a:before {
    display: none !important;
}

nav.main ul > li a i {
    color: var(--gold);
    font-size: 1.3em !important;
    margin-right: 12px !important;
}

/* ============================================================
   GAME CARDS - Modern card design
   ============================================================ */
ul.games {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

ul.games:before,
ul.games:after {
    display: none !important;
}

ul.games li {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.25s ease;
}

ul.games li a {
    text-decoration: none !important;
    display: block;
    background: #fff;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(93, 63, 26, 0.08);
    transition: all 0.25s ease;
    border: 1px solid rgba(244, 216, 150, 0.4);
}

ul.games li a:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 28px rgba(93, 63, 26, 0.18);
    border-color: var(--gold-light);
}

ul.games li .icon {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    padding-bottom: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, var(--gold-soft) 0%, #fff 100%);
    border-radius: 0 !important;
    overflow: hidden;
}

ul.games li .icon::after {
    content: '▶';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--gold-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

ul.games li a:hover .icon::after {
    opacity: 1;
    transform: translateY(0);
}

ul.games li .icon img {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    left: 0 !important;
    top: 0 !important;
}

ul.games li .name-container {
    height: auto !important;
    padding: 14px 14px 16px !important;
    align-items: flex-start !important;
    justify-content: center !important;
    background: #fff;
}

ul.games li .name {
    color: var(--gold-darker) !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    text-align: center !important;
}

/* ============================================================
   SECTION HEADINGS - Different style
   ============================================================ */
h1, .h1, h2, .h2, h3, .h3 {
    color: var(--gold-darker) !important;
    text-transform: none !important;
    text-align: left !important;
    font-weight: 700;
}

h1, .h1 {
    font-size: 2.2em !important;
    margin-bottom: 0.4em !important;
    line-height: 1.2 !important;
    position: relative;
    padding-left: 18px;
}

h1::before, .h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 5px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 3px;
}

h2, .h2 {
    font-size: 1.5em !important;
    margin-bottom: 18px !important;
    line-height: 1.3 !important;
}

h3, .h3 {
    font-size: 1.15em !important;
    margin-bottom: 12px !important;
}

/* ============================================================
   FOOTER - Redesigned as gradient panel
   ============================================================ */
footer.main {
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-darker) 100%) !important;
    margin-top: 60px !important;
    padding: 50px 0 30px !important;
    border-radius: 32px 32px 0 0 !important;
    color: #fffbf0 !important;
    box-shadow: 0 -8px 32px rgba(139, 100, 32, 0.25) !important;
    position: relative;
    overflow: hidden;
}

footer.main::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

footer.main::after {
    content: '';
    position: absolute;
    bottom: -100%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

footer.main .footer-content {
    max-width: 1200px !important;
    min-width: 320px !important;
    min-height: 120px !important;
    font-weight: 400 !important;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

footer.main a {
    color: #fff3c4 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer.main a:hover {
    color: #fff !important;
}

footer.main .footer-content section.tags nav.main {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 20px;
}

footer.main .footer-content section.tags nav.main ul {
    gap: 8px !important;
}

footer.main .footer-content section.tags nav.main ul li {
    padding: 0 !important;
}

footer.main .footer-content section.tags nav.main ul li a {
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    color: #fff !important;
    backdrop-filter: blur(6px);
    transition: all 0.2s ease !important;
}

footer.main .footer-content section.tags nav.main ul li a:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

footer.main .footer-content nav.meta {
    padding: 10px 0 20px !important;
    text-align: center !important;
}

footer.main .footer-content nav.meta a {
    text-decoration: none !important;
    color: #fff3c4 !important;
    margin: 0 12px;
    font-weight: 500;
}

footer.main .copyright {
    margin: 16px 0 20px !important;
    color: rgba(255, 251, 240, 0.85) !important;
    font-size: 13px;
    text-align: center;
}

footer.main .copyright a {
    color: #fff !important;
}

/* ============================================================
   BUTTONS - Pill-shaped gradient
   ============================================================ */
.btn, .btn-highlight, .btn-primary, .btn-neutral, .btn-transparent {
    border-radius: 24px !important;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%) !important;
    color: #fff !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 14px rgba(196, 143, 57, 0.35) !important;
    transition: all 0.25s ease !important;
    border: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
}

.btn:hover, .btn-highlight:hover, .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(196, 143, 57, 0.5) !important;
}

.btn-highlight {
    background: linear-gradient(135deg, var(--accent) 0%, #a8541c 100%) !important;
    box-shadow: 0 4px 14px rgba(217, 122, 59, 0.4) !important;
}

.btn-neutral {
    background: var(--gold-soft) !important;
    color: var(--gold-dark) !important;
    border: 1px solid var(--gold-light) !important;
}

.btn-transparent {
    background: transparent !important;
    color: var(--gold-darker) !important;
    box-shadow: none !important;
}

/* ============================================================
   LOADING SPINNER - Different colors
   ============================================================ */
.AFSJx div {
    background: var(--gold) !important;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gold-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 5px;
    border: 2px solid var(--gold-soft);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ============================================================
   CONSENT BOX (cookie/privacy dialog)
   ============================================================ */
.consent-box {
    background-color: #fff !important;
    border: 1px solid var(--gold-light);
    border-radius: 18px !important;
    box-shadow: 0 20px 60px rgba(93, 63, 26, 0.25) !important;
}

.consent-box-button {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%) !important;
    border: none !important;
    border-radius: 24px !important;
    padding: 12px 32px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(196, 143, 57, 0.4) !important;
    color: #fff !important;
}

.consent-box-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 143, 57, 0.5) !important;
}

.consent-box-links a {
    color: var(--gold-dark) !important;
    text-decoration: none;
    font-weight: 500;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes goldShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================================
   GAME PAGE (detail.html)
   ============================================================ */
.game header {
    margin-bottom: 40px;
}

.game header .background .backgroundDarken {
    background: linear-gradient(135deg, rgba(196, 143, 57, 0.88) 0%, rgba(93, 63, 26, 0.88) 100%) !important;
}

.game .game-categories ul li {
    background: var(--gold-soft) !important;
    border-radius: 16px !important;
}

.game .game-categories ul li a {
    color: var(--gold-dark) !important;
    font-weight: 600;
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media only screen and (max-width: 750px) {
    ul.games {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 14px !important;
    }

    header.main .main-section {
        flex-wrap: wrap;
    }

    h1, .h1 {
        font-size: 1.6em !important;
    }
}

@media only screen and (max-width: 480px) {
    ul.games {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================================
   HERO FEATURED - Spotlit game on the home page
   ============================================================ */
.hero-featured {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    background: linear-gradient(135deg, var(--gold-darker) 0%, var(--gold) 60%, var(--accent) 100%);
    border-radius: 26px;
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: 0 18px 50px rgba(93, 63, 26, 0.28);
    min-height: 340px;
}

.hero-featured::before {
    content: '';
    position: absolute;
    top: -40%;
    right: 30%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-featured::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: 20%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-featured .hf-text {
    position: relative;
    z-index: 2;
    padding: 44px 40px;
    color: #fffbf0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-featured .hf-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 16px;
}

.hero-featured .hf-title {
    font-size: 2.6em;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #fff !important;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.5px;
}

.hero-featured .hf-desc {
    font-size: 1.05em;
    color: rgba(255, 251, 240, 0.88);
    line-height: 1.55;
    margin-bottom: 24px;
    max-width: 460px;
}

.hero-featured .hf-meta {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-featured .hf-meta .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 251, 240, 0.85);
    font-weight: 600;
}

.hero-featured .hf-meta .stat strong {
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}

.hero-featured .hf-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-featured .hf-play {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: #fff !important;
    color: var(--gold-darker) !important;
    padding: 14px 28px !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    text-decoration: none;
    transition: all 0.25s ease;
}

.hero-featured .hf-play:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
    background: #fffbf0 !important;
}

.hero-featured .hf-play::before {
    content: '▶';
    font-size: 11px;
    background: var(--gold);
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-featured .hf-secondary {
    display: inline-flex !important;
    align-items: center;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 14px 24px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    box-shadow: none !important;
    text-decoration: none;
}

.hero-featured .hf-secondary:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
}

.hero-featured .hf-art {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px 24px 0;
}

.hero-featured .hf-art img {
    max-width: 100%;
    max-height: 320px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    transform: rotate(3deg);
    transition: transform 0.4s ease;
    border: 4px solid rgba(255, 255, 255, 0.15);
}

.hero-featured .hf-art img:hover {
    transform: rotate(0deg) scale(1.03);
}

@media only screen and (max-width: 900px) {
    .hero-featured {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-featured .hf-art {
        padding: 16px 32px 32px;
    }
    .hero-featured .hf-art img {
        max-height: 240px;
        transform: rotate(0deg);
    }
    .hero-featured .hf-title {
        font-size: 1.9em;
    }
}

/* ============================================================
   TOP SEARCH BAR
   ============================================================ */
.search-shell {
    position: relative;
    margin-bottom: 28px;
}

.search-shell input {
    width: 100%;
    height: 56px;
    padding: 0 56px 0 54px;
    border-radius: 18px;
    border: 2px solid var(--gold-light);
    background: #fff;
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    box-shadow: 0 4px 18px rgba(93, 63, 26, 0.08);
    transition: all 0.25s ease;
    outline: none;
    box-sizing: border-box;
}

.search-shell input::placeholder {
    color: var(--ink-soft);
    opacity: 0.7;
}

.search-shell input:focus {
    border-color: var(--gold);
    box-shadow: 0 6px 24px rgba(196, 143, 57, 0.22);
}

.search-shell::before {
    content: '🔍';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
    opacity: 0.7;
}

.search-shell .search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--gold-soft);
    color: var(--gold-dark);
    cursor: pointer;
    font-size: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-shell .search-clear:hover {
    background: var(--gold);
    color: #fff;
}

.search-shell.has-value .search-clear {
    display: flex;
}

/* ============================================================
   CATEGORY CHIPS - Quick filter row
   ============================================================ */
.chip-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    padding: 4px;
}

.chip-rail .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #fff;
    border: 1.5px solid var(--gold-light);
    color: var(--gold-darker);
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-decoration: none;
}

.chip-rail .chip:hover {
    border-color: var(--gold);
    background: var(--gold-soft);
    transform: translateY(-1px);
}

.chip-rail .chip.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-color: var(--gold-dark);
    color: #fff;
    box-shadow: 0 4px 14px rgba(196, 143, 57, 0.35);
}

.chip-rail .chip img,
.chip-rail .chip svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   STATS BANNER
   ============================================================ */
.stats-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #fff;
    border: 1px solid var(--gold-light);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: 0 6px 20px rgba(93, 63, 26, 0.08);
}

.stats-banner .stat {
    padding: 22px 18px;
    text-align: center;
    border-right: 1px solid var(--gold-soft);
    transition: background 0.2s ease;
}

.stats-banner .stat:last-child {
    border-right: none;
}

.stats-banner .stat:hover {
    background: var(--gold-soft);
}

.stats-banner .stat .num {
    display: block;
    font-size: 1.9em;
    font-weight: 800;
    color: var(--gold-darker);
    line-height: 1.1;
    margin-bottom: 4px;
}

.stats-banner .stat .label {
    font-size: 12px;
    color: var(--ink-soft);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media only screen and (max-width: 750px) {
    .stats-banner {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-banner .stat:nth-child(2) {
        border-right: none;
    }
    .stats-banner .stat:nth-child(1),
    .stats-banner .stat:nth-child(2) {
        border-bottom: 1px solid var(--gold-soft);
    }
}

/* ============================================================
   BADGES on game cards (NEW / HOT / TOP)
   ============================================================ */
ul.games li .icon .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

ul.games li .icon .badge.badge-new {
    background: linear-gradient(135deg, #28c840 0%, #1a8a2c 100%);
}

ul.games li .icon .badge.badge-hot {
    background: linear-gradient(135deg, #ff5757 0%, #c43232 100%);
}

ul.games li .icon .badge.badge-top {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}

/* ============================================================
   SECTION HEADER - Section title with action link
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}

.section-header .h-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--gold-darker);
    position: relative;
    padding-left: 18px;
    margin: 0;
    line-height: 1.2;
}

.section-header .h-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 5px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 3px;
}

.section-header .h-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--gold-soft);
    border: 1px solid var(--gold-light);
    transition: all 0.2s ease;
}

.section-header .h-link:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold-dark);
    transform: translateX(2px);
}

/* ============================================================
   NO RESULTS state for search/filter
   ============================================================ */
.no-results {
    padding: 60px 20px;
    text-align: center;
    color: var(--ink-soft);
    background: #fff;
    border: 2px dashed var(--gold-light);
    border-radius: 18px;
}

.no-results .emo {
    font-size: 3em;
    margin-bottom: 12px;
    display: block;
}

.no-results .msg {
    font-size: 15px;
    font-weight: 600;
    color: var(--gold-darker);
}

/* ============================================================
   DETAIL PAGE - Stronger layout
   ============================================================ */
.game header .background {
    border-radius: 24px;
    overflow: hidden;
    margin: 0 20px;
}

.game header .background .main-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 30px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.game header .background .main-section .icon {
    width: 200px;
    height: 200px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.18);
}

.game header .background .main-section .icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game header .background .main-section h1 {
    font-size: 2.4em !important;
    margin-bottom: 24px !important;
    color: #fff !important;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game header .background .main-section .play-btn {
    font-size: 16px !important;
    padding: 14px 40px !important;
}

.game .similarGames {
    margin-top: 40px;
}

.game .similarGames h2 {
    padding-left: 18px;
    position: relative;
}

.game .similarGames h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 5px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 3px;
}

/* ============================================================
   APP CONTAINER - constrain width and add gutters
   ============================================================ */
.app-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   CONTENT area tweak - remove default top spacing, add bottom
   ============================================================ */
.content {
    padding-top: 16px;
    padding-bottom: 40px;
}

/* ============================================================
   SECTION DIVIDER for visual rhythm
   ============================================================ */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold-light) 50%, transparent 100%);
    margin: 36px 0;
    border: 0;
}