/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

body {
    background: #0f0f0f;
    color: #ffffff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* ==========================================================================
   TYPOGRAPHY & LINKS
   ========================================================================== */

a {
    color: inherit;
    text-decoration: none;
}

h1, h2 {
    font-weight: 700;
    line-height: 1.1;
}
/* ==========================================================================
   CLEAN MOBILE-FRIENDLY HEADER WITH LINERS
   ========================================================================== */
#header {
    background: rgba(10, 10, 25, 0.92);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(30, 0, 255, 0.15);
}

/* Top row with site title */
.header-top {
    padding: 0.8rem 6%;
    text-align: center;
}

.site-title {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #7f00ff, #ffffff, #7f00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: glow 5s linear infinite;
    text-shadow: 0 0 12px rgba(127,0,255,0.6);
}

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

/* Thin liners */
.nav-liner {
    height: 1px;
    background: linear-gradient(to right, transparent, #7f00ff88, transparent);
    margin: 0 6%;
}

.nav-liner.bottom {
    margin-top: 0.8rem;
    position: relative;
}

.ace-brand {
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    font-size: 1.1rem;
    color: #7f00ff;
    font-weight: bold;
    text-shadow: 0 0 10px #7f00ff80;
    background: #0f0f0f;
    padding: 0 12px;
}

/* Nav links as stylish buttons */
.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
    padding: 0 6%;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #cccccc;
    background: rgba(50, 50, 70, 0.4);
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    background: rgba(127, 0, 255, 0.35);
    box-shadow: 0 0 15px rgba(127,0,255,0.5);
}
/* Mobile nav – no overlap, centered, scaled-down items */
@media (max-width: 768px) {
    #header {
        height: auto;
        padding-bottom: 0;
    }

    nav {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.8rem 5%;
        background: rgba(10, 10, 25, 0.98);
    }

    .site-title {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.6rem;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0.5rem 0;
    }

    .nav-links li {
        width: 85%;
        max-width: 300px;
        text-align: center;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 1rem;               /* smaller than desktop */
        border-radius: 8px;
        background: rgba(50, 50, 70, 0.4);
        transition: all 0.3s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(127, 0, 255, 0.35);
        color: white;
    }

    /* Force main content BELOW the nav – calculate height dynamically */
    main {
        padding-top: 180px !important;  /* start high, adjust down if needed */
    }

    /* Very small screens – even tighter */
    @media (max-width: 480px) {
        .site-title {
            font-size: 1.6rem;
        }

        .nav-links a {
            font-size: 0.95rem;
            padding: 0.6rem 0.8rem;
        }

        main {
            padding-top: 160px !important;
        }
    }
}
/* ==========================================================================
   HERO SECTION (if used)
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 6%;
    background: linear-gradient(to bottom, #000000, #10001c);
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    margin-bottom: 1rem;
    color: #b19cd9;
    text-shadow: 0 0 20px #7f00ff80;
}

.hero p {
    font-size: 1.4rem;
    max-width: 600px;
    color: #aaaaaa;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   FLIP CARD ANIMATION (Casino Vibe)
   ========================================================================== */

.card,
.flip-card-outer {
    perspective: 1000px;
    background: rgba(20, 10, 40, 0.82);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-style: preserve-3d;
}

.card:hover .card-inner,
.flip-card-outer:hover {
    transform: rotateY(180deg);
}

.card:hover,
.flip-card-outer:hover {
    box-shadow: 0 0 28px #ffd70066;
    transform: translateY(-6px);
}

.card img,
.flip-card-outer img {
    width: 100%;
    display: block;
    border-radius: 10px 10px 0 0;
}

.card span,
.flip-card-outer span {
    display: block;
    padding: 0.9rem;
    text-align: center;
    font-weight: 600;
    color: #ff00ff;
    background: rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   SHARED GRID STYLES – USED BY BOTH GAMES & BACKENDS PAGES
   ========================================================================== */

.game-list {
    padding: 8rem 6% 6rem;
    text-align: center;
    background: #0a001a;
    min-height: calc(100vh - 140px);
}

.game-list h1 {
    font-size: clamp(2.4rem, 7vw, 3.8rem);
    color: #b19cd9;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 0 12px #7f00ff80);
}

.game-list p {
    color: #aaa;
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

/* Grid container (same for both pages) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.8rem 1.6rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================================================================
   GAMES PAGE CARDS (.game-card)
   ========================================================================== */

.game-card {
    background: rgba(20, 10, 40, 0.9);
    border: 1px solid #7f00ff33;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    text-align: center;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 14px 36px rgba(127, 0, 255, 0.4);
    border-color: #7f00ff88;
}

.game-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 1px solid #7f00ff22;
    transition: transform 0.4s ease;
}

.game-card:hover img {
    transform: scale(1.07);
}

.game-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.9rem 0.5rem 0.6rem;
    padding: 0 0.4rem;
}

.warning {
    background: rgba(255, 0, 0, 0.18);
    color: #ff6666;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
    margin: 0.6rem 1.2rem 0.9rem;
    border-radius: 6px;
}

.game-card button,
.game-card a {
    display: block;
    width: 85%;
    margin: 0.6rem auto 1rem;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.game-card button {
    background: linear-gradient(90deg, #7f00ff, #a020f0);
    color: white;
}

.game-card button:hover {
    background: linear-gradient(90deg, #9f40ff, #c040ff);
    transform: scale(1.05);
}

.game-card a {
    background: rgba(50, 50, 70, 0.9);
    color: #ddd;
}

.game-card a:hover {
    background: rgba(80, 50, 100, 0.9);
    color: white;
}

/* ==========================================================================
   BACKENDS / AGENTS PAGE CARDS (.game-link)
   ========================================================================== */

.game-link {
    background: rgba(20, 10, 40, 0.9);
    border: 1px solid #7f00ff33;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.game-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 14px 36px rgba(127, 0, 255, 0.4);
    border-color: #7f00ff88;
}

.game-link img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 1px solid #7f00ff22;
    transition: transform 0.4s ease;
}

.game-link:hover img {
    transform: scale(1.07);
}

.game-link span {
    display: block;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 0.8rem 1.2rem;
    background: rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   OTHER SECTIONS (quick-links, resources, footer, sticky button)
   ========================================================================== */

.quick-links,
.resources {
    padding: 6rem 6%;
    text-align: center;
}

.resources h2,
.quick-links h2 {
    color: #7f00ff;
    font-size: 2.6rem;
    margin-bottom: 1.8rem;
}

.link-btn,
.link-card {
    display: inline-block;
    margin: 1rem 0.5rem;
    padding: 1rem 2rem;
    background: #003bff;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.link-btn:hover,
.link-card:hover {
    background: #0055cc;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 51, 255, 0.5);
}

.stats-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    color: #aaa;
    margin: 2.5rem 0;
    font-size: 1rem;
}

/* FOOTER */
#footer {
    background: #000000;
    color: #777777;
    text-align: center;
    padding: 3rem 1rem 2rem;
    font-size: 0.95rem;
    border-top: 1px solid #222;
}

#footer a {
    color: #7f00ff;
    transition: color 0.3s;
}

#footer a:hover {
    color: #a020f0;
}

/* STICKY JOIN BUTTON */
#stick {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #003bff;
    color: white;
    padding: 1rem 1.8rem;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0, 51, 255, 0.4);
    font-weight: 600;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

#stick:hover {
    background: #0055cc;
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(0, 51, 255, 0.55);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem 4%;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.4rem;
    }

    .game-card img,
    .game-link img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .game-list {
        padding: 7rem 4% 4rem;
    }

    .game-name,
    .game-link span {
        font-size: 1rem;
        padding: 0.8rem 0.6rem;
    }

    #stick {
        bottom: 16px;
        right: 16px;
        padding: 0.8rem 1.4rem;
        font-size: 0.9rem;
    }
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(127,0,255,0.5); }
    70% { box-shadow: 0 0 0 15px rgba(127,0,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(127,0,255,0); }
}
/* ==========================================================================
   CLEAN SINGLE-ROW HEADER + MOBILE DROPDOWN
   ========================================================================== */
#header {
    background: rgba(10, 10, 25, 0.92);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(30, 0, 255, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 6%;
    max-width: 1600px;
    margin: 0 auto;
}

.site-title {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 900;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #7f00ff, #ffffff, #7f00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: glow 5s linear infinite;
    text-shadow: 0 0 12px rgba(127,0,255,0.6);
}

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

/* Nav links (desktop) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #cccccc;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #7f00ff;
}

/* Hamburger menu (mobile only) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #7f00ff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile dropdown */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 10, 25, 0.98);
        padding: 1.5rem 0;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    /* No extra padding needed on main – dropdown is absolute */
    main {
        padding-top: 70px;  /* just enough for header height */
    }
}
/* ==========================================================================
   CLEAN SINGLE-ROW HEADER + MOBILE DROPDOWN
   ========================================================================== */
#header {
    background: rgba(10, 10, 25, 0.92);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(30, 0, 255, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 6%;
    max-width: 1600px;
    margin: 0 auto;
}

.site-title {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 900;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #7f00ff, #ffffff, #7f00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: glow 5s linear infinite;
    text-shadow: 0 0 12px rgba(127,0,255,0.6);
}

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

/* Nav links (desktop) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #cccccc;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #7f00ff;
}

/* Hamburger menu (mobile only) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #7f00ff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile dropdown */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 10, 25, 0.98);
        padding: 1.5rem 0;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    /* No extra padding needed on main – dropdown is absolute */
    main {
        padding-top: 70px;  /* just enough for header height */
    }
}
/* ==========================================================================
   HEADER – SINGLE ROW DESKTOP + HAMBURGER MOBILE
   ========================================================================== */
#header {
    background: rgba(10, 10, 25, 0.92);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(30, 0, 255, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 6%;
    max-width: 1600px;
    margin: 0 auto;
}

.site-title {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 900;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #7f00ff, #ffffff, #7f00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: glow 5s linear infinite;
    text-shadow: 0 0 12px rgba(127,0,255,0.6);
}

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

/* Desktop nav links – tighter spacing */
.nav-right {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.4rem;           /* tighter gap than before */
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #cccccc;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #7f00ff;
}

/* Hamburger icon (mobile only) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #7f00ff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile dropdown menu – same site color */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 10, 25, 0.98);  /* same dark color as header */
        padding: 1.5rem 0;
        gap: 1rem;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        color: #cccccc;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: #7f00ff;
        background: rgba(127, 0, 255, 0.15);
    }

    /* No extra push needed on main – dropdown is absolute */
    main {
        padding-top: 70px;  /* just header height */
    }
}