html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #050816, #0b1024, #101935);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* =========================
   Navbar
========================= */
.custom-navbar {
    background: rgba(8, 12, 28, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.brand-logo {
    font-size: 28px;
    font-weight: 800;
    color: #00e5ff !important;
    text-decoration: none;
    letter-spacing: 0.5px;
}

    .brand-logo:hover {
        color: #8b5cf6 !important;
    }

.custom-link {
    color: #dbe4ff !important;
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s ease;
    position: relative;
}

    .custom-link:hover {
        color: #00e5ff !important;
    }

    .custom-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 4px;
        width: 0%;
        height: 2px;
        background: linear-gradient(90deg, #00e5ff, #8b5cf6);
        transition: 0.3s ease;
    }

    .custom-link:hover::after {
        width: 100%;
    }

.play-btn-nav {
    background: linear-gradient(90deg, #00e5ff, #8b5cf6);
    color: #fff !important;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 700;
    border: none;
    transition: 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.25);
}

    .play-btn-nav:hover {
        transform: translateY(-2px);
        color: #fff !important;
    }

/* =========================
   Common Sections
========================= */
.section-padding {
    padding: 40px 0 0 0;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff;
}

.section-subtitle {
    font-size: 18px;
    color: #b9c4ea;
    margin-bottom: 35px;
}

/* =========================
   Hero Section
========================= */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.25), transparent 30%), radial-gradient(circle at top right, rgba(0, 229, 255, 0.18), transparent 30%);
}

.hero-title {
    font-size: 58px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
}

    .hero-title span {
        color: #00e5ff;
    }

.hero-text {
    font-size: 19px;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 700px;
}

.hero-btn {
    background: linear-gradient(90deg, #00e5ff, #8b5cf6);
    color: #fff;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s ease;
    box-shadow: 0 12px 25px rgba(0, 229, 255, 0.22);
}

    .hero-btn:hover {
        transform: translateY(-3px);
        color: #fff;
    }

/* =========================
   Cards
========================= */
.game-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
    height: 100%;
}

    .game-card:hover {
        transform: translateY(-8px);
    }

.game-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #111827;
}

.game-card-body {
    padding: 20px;
}

.game-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.game-desc {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.game-btn {
    background: linear-gradient(90deg, #00e5ff, #8b5cf6);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

    .game-btn:hover {
        color: #fff;
    }

/* =========================
   Search / Inputs / Forms
========================= */
.custom-input,
.custom-select,
.custom-textarea {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    width: 100%;
    outline: none;
    transition: 0.3s ease;
}

    .custom-input:focus,
    .custom-select:focus,
    .custom-textarea:focus {
        border-color: #00e5ff;
        box-shadow: 0 0 0 0.15rem rgba(0, 229, 255, 0.15);
    }

    .custom-input::placeholder,
    .custom-textarea::placeholder {
        color: #b0bddf;
    }

/* =========================
   Buttons
========================= */
.primary-btn {
    background: linear-gradient(90deg, #00e5ff, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 12px 24px;
    font-weight: 700;
    transition: 0.3s ease;
}

    .primary-btn:hover {
        transform: translateY(-2px);
        color: #fff;
    }

.secondary-btn {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 12px 24px;
    font-weight: 700;
}

/* =========================
   Footer
========================= */
.footer-section {
    background: rgba(8, 12, 28, 0.95);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 35px 0;
}

.footer-logo {
    color: #00e5ff;
    font-weight: 800;
}

.footer-text {
    color: #b9c4ea;
}

.footer-copy {
    color: #8fa0cb;
    font-size: 14px;
}

/* =========================
   Utility
========================= */
.glass-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.22);
}

/* =========================
   Responsive
========================= */
@media (max-width: 991px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-text {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 34px;
    }

    .hero-text {
        font-size: 16px;
    }

    .section-title {
        font-size: 30px;
    }

    .brand-logo {
        font-size: 24px;
    }

    .play-btn-nav {
        margin-top: 10px;
    }
}
/* Better select visibility */
.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, #9fb3ff 50%), linear-gradient(135deg, #9fb3ff 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 4px), calc(100% - 12px) calc(50% - 4px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

    .custom-select option {
        background: #0b1024;
        color: #fff;
    }

/* Game iframe polish */
.ratio iframe {
    width: 100%;
    height: 100%;
    border-radius: 18px;
}