/* Modern Casino Game Website Styles */
:root {
    --gold: #FFD700;
    --deep-red: #8B0000;
    --black: #0D0D0D;
    --emerald-green: #228B22;
    --white-accent: #F5F5F5;
    --gradient-primary: linear-gradient(135deg, var(--deep-red), var(--black));
    --gradient-gold: linear-gradient(135deg, var(--gold), #FFA500);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--white-accent);
    background: var(--black);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

body.mobile-menu-open {
    overflow: hidden;
}

/* Hide mobile-only sheet on desktop */
.mobile-menu {
    display: none;
}

/* Navigation */
.navbar {
    background: var(--gradient-primary);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--gold);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white-accent);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--white-accent);
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--black);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--gold);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

/* Features Section */
.features-section {
    background: var(--black);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--emerald-green);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(34, 139, 34, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

/* Login/Register Sections */
.login-section, .register-section {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

/* New Login Section Styles */
.login-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.login-image {
    text-align: center;
}

.login-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.login-image img:hover {
    transform: scale(1.05);
}

.login-steps h3 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 2rem;
    text-align: center;
}

.steps-container {
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--gold);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.step:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.step-number {
    background: var(--gradient-gold);
    color: var(--black);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.step-content p {
    color: var(--white-accent);
    line-height: 1.6;
}

.login-actions {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--emerald-green);
}

.login-note {
    margin-top: 1rem;
    color: var(--white-accent);
}

/* Register Section Styles */
.register-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.register-image {
    text-align: center;
}

.register-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.register-image img:hover {
    transform: scale(1.05);
}

.register-steps h3 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 2rem;
    text-align: center;
}

.register-actions {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--emerald-green);
}

.register-note {
    margin-top: 1rem;
    color: var(--white-accent);
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gold);
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--emerald-green);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-accent);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Games Section */
.games-section {
    background: var(--black);
    padding: 4rem 0;
    overflow: hidden;
}

.games-showcase {
    margin-top: 3rem;
}

/* Featured Game Card */
.game-card.featured {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    border: 2px solid var(--gold);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.1);
    transition: var(--transition);
}

.game-card.featured:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(255, 215, 0, 0.2);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 215, 0, 0.1);
    border-bottom: 1px solid var(--gold);
}

.game-badge {
    background: var(--gradient-gold);
    color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: var(--gold);
    font-size: 1.2rem;
}

.rating-text {
    color: var(--white-accent);
    font-weight: bold;
}

.game-card.featured .game-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card.featured .game-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: var(--transition);
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    cursor: pointer;
    transition: var(--transition);
}

.play-button:hover {
    transform: scale(1.1);
}

.play-icon {
    font-size: 3rem;
    background: var(--gradient-gold);
    color: var(--black);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.play-text {
    font-size: 1.2rem;
    font-weight: bold;
}

.game-content {
    padding: 2rem;
}

.game-card.featured .game-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gold);
    text-align: center;
}

.game-description {
    color: var(--white-accent);
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid var(--emerald-green);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--white-accent);
    font-size: 0.9rem;
}

.btn-game {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-gold);
    color: var(--black);
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
}

/* Compact Game Cards Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.game-card.compact {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.game-card.compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--gold), var(--emerald-green), var(--deep-red));
    border-radius: 20px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.game-card.compact:hover::before {
    opacity: 1;
}

.game-card.compact:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.2);
    border-color: var(--gold);
}

.game-card.compact .game-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card.compact .game-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.4s ease;
    filter: brightness(0.9);
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.game-card.compact:hover .game-image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.game-card.compact .game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(34, 139, 34, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.game-card.compact:hover .game-overlay {
    opacity: 1;
}

.game-card.compact .play-icon {
    font-size: 2.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--gold);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    border: 3px solid var(--gold);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 20px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(255, 215, 0, 0); }
}

.game-card.compact:hover .play-icon {
    transform: scale(1.2) rotate(360deg);
    background: var(--gradient-gold);
    color: var(--black);
    border-color: var(--black);
}

.game-card.compact .game-content {
    padding: 2rem;
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.game-card.compact .game-title {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--gold);
    font-weight: bold;
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-card.compact .game-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.game-card.compact .game-description {
    color: var(--white-accent);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-align: center;
    opacity: 0.9;
    flex-grow: 1;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
    min-height: 60px;
    visibility: visible;
    opacity: 1;
}

.game-type {
    background: linear-gradient(135deg, var(--emerald-green), #32CD32);
    color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.3);
    display: inline-block;
    visibility: visible;
    opacity: 1;
}

.game-jackpot {
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
    visibility: visible;
    opacity: 1;
}

.game-jackpot::before {
    content: '💰';
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Additional hover effects */
.game-card.compact .game-content {
    transition: var(--transition);
}

.game-card.compact:hover .game-content {
    transform: translateY(-5px);
}

.game-card.compact:hover .game-meta {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold);
    transform: scale(1.05);
}

/* Loading animation for images */
.game-card.compact .game-image {
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
}

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

.game-card.compact .game-image img {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Testimonials */
.testimonials-section {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--gold);
    backdrop-filter: blur(10px);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--white-accent);
}

.testimonial-author {
    color: var(--gold);
    font-weight: bold;
}

/* Stats Section */
.stats-section {
    background: var(--black);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    border: 1px solid var(--emerald-green);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--gold);
    display: block;
}

.stat-label {
    color: var(--white-accent);
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--white-accent);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--emerald-green);
    padding-top: 1rem;
    color: var(--white-accent);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-gold);
    color: var(--black);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
        background: rgba(0, 0, 0, 0.1);
        border: 1px solid var(--gold);
        color: var(--gold);
        font-size: 1.5rem;
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
        border-radius: 5px;
        cursor: pointer;
        transition: var(--transition);
    }

    .mobile-menu-toggle:hover {
        background: rgba(255, 215, 0, 0.1);
        color: var(--gold);
    }

    /* Hide original horizontal nav on mobile; replaced by .mobile-menu */
    .nav-container .nav-menu {
        display: none;
    }

    /* Dedicated bottom-sheet mobile menu */
    .mobile-menu {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 85vh;
        background: rgba(0, 0, 0, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0 1rem 1.25rem 1rem;
        transform: translateY(100%);
        transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
        box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.55);
        z-index: 2147483603;
        opacity: 0;
        visibility: hidden;
        overflow-y: auto;
        border-top-left-radius: 14px;
        border-top-right-radius: 14px;
        border-top: 1px solid rgba(255, 215, 0, 0.25);
    }

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

    .mobile-menu li {
        margin: 0.5rem 0;
        list-style: none;
    }

    .mobile-menu a {
        display: block;
        padding: 0.9rem 1rem;
        color: var(--white-accent) !important;
        text-decoration: none;
        background: transparent;
        border: 0;
        border-radius: 8px;
        font-size: 1.05rem;
        font-weight: 600;
        letter-spacing: 0.3px;
        transition: background 0.2s ease, color 0.2s ease;
        text-align: left;
    }

    .mobile-menu a:hover {
        background: rgba(255, 215, 0, 0.12);
        color: var(--gold);
    }

    /* Bottom sheet grabber */
    .mobile-menu::before {
        content: '';
        position: sticky;
        top: 0;
        align-self: center;
        display: block;
        width: 44px;
        height: 5px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 999px;
        margin: 6px 0 10px 0;
    }

    /* Backdrop overlay */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 2147483601; /* just below menu, above content */
    }
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .form-container {
        padding: 2rem;
        margin: 0 1rem;
    }

    .login-content,
    .register-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .login-steps h3,
    .register-steps h3 {
        font-size: 1.5rem;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        padding: 0.5rem 0;
    }

    .game-card.compact .game-image {
        height: 220px;
        background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .game-card.compact .game-content {
        min-height: 180px;
        padding: 1.5rem;
    }

    .game-card.compact .play-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .game-card.featured .game-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .game-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .game-meta {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        padding: 0.8rem;
        visibility: visible;
        opacity: 1;
        display: flex;
    }

    .game-type {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        visibility: visible;
        opacity: 1;
        display: inline-block;
    }

    .game-jackpot {
        font-size: 1.1rem;
        visibility: visible;
        opacity: 1;
        display: inline-block;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }


@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0.3rem 0;
    }

    .game-card.compact .game-image {
        height: 200px;
        background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .game-card.compact .play-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .game-card.compact .game-content {
        padding: 1.5rem;
        min-height: 160px;
    }

    .game-card.compact .game-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .game-card.compact .game-description {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .game-meta {
        padding: 0.8rem 1rem;
        visibility: visible;
        opacity: 1;
        display: flex;
        min-height: 55px;
    }

    .game-type {
        visibility: visible;
        opacity: 1;
        display: inline-block;
    }

    .game-jackpot {
        visibility: visible;
        opacity: 1;
        display: inline-block;
    }

    .game-card.featured .game-image {
        height: 250px;
    }

    .play-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .game-card.featured .play-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --gold: #FFFF00;
        --deep-red: #FF0000;
        --emerald-green: #00FF00;
    }
}

/* Performance Optimizations */
.hero-section {
    will-change: transform;
    transform: translateZ(0);
}

.feature-card,
.game-card,
.testimonial-card,
.stat-item {
    will-change: transform;
    transform: translateZ(0);
}

.navbar {
    contain: layout style paint;
}

.btn {
    contain: layout style paint;
    touch-action: manipulation;
}

.mobile-menu-toggle,
.back-to-top {
    touch-action: manipulation;
}

/* Optimize for Core Web Vitals */
.hero-content {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Reduce CLS */
.feature-card,
.game-card {
    aspect-ratio: 1 / 1;
}

/* Font optimization */
@font-face {
    font-family: 'Arial';
    font-display: swap;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Mobile performance */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
}
