@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #e9ecef;
    --gray-dark: #6c757d;
    --text-dark: #1a1a1a;
    --text-mid: #495057;
    --text-light: #6c757d;
    --primary: #667eea;
    --primary-dark: #5568d3;
    --accent: #f5576c;
    --accent-light: #fa709a;
    --success: #34c759;
    --warning: #ff9500;
    --info: #00bfff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #eef3ff;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.home-page main {
    will-change: transform, opacity;
}

body.home-page.home-animate-in main {
    animation: homeSlideIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.home-page.home-animate-out main {
    animation: homeSlideOut 260ms cubic-bezier(0.4, 0, 1, 1) both;
    pointer-events: none;
}

@keyframes homeSlideIn {
    from {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes homeSlideOut {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-page.home-animate-in main,
    body.home-page.home-animate-out main {
        animation: none;
    }
}

header.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 12px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
}

.header-inner {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
    height: 54px;
    transition: all 0.3s ease;
}

.wordmark {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    text-decoration: none;
}

.wordmark .accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 16px;
    color: var(--text-dark);
    transition: background-color 0.6s ease-out, transform 0.6s ease-out;
}

.menu-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.menu-btn:hover {
    background: var(--gray);
    transform: scale(1.05);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: var(--light-gray);
    border-color: rgba(0, 0, 0, 0.15);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 99;
    transition: background 0.3s ease;
    pointer-events: none;
}

.drawer-overlay.open {
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.drawer {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    z-index: 101;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--gray);
    flex-shrink: 0;
}

.drawer-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-dark);
    font-size: 16px;
    transition: all 0.3s ease;
}

.drawer-close:hover {
    background: var(--gray);
}

.drawer-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.drawer-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px 8px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-mid);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    margin: 4px 8px;
    border-radius: var(--radius-md);
    position: relative;
}

.drawer-link i {
    font-size: 16px;
    flex-shrink: 0;
}

.drawer-link:hover {
    background: rgba(102, 126, 234, 0.08);
    color: var(--primary);
    transform: translateX(4px);
}

.drawer-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
}

.drawer-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--white);
    border-radius: 0 2px 2px 0;
}

@media (max-width: 1023px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .drawer {
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .drawer-scroll .drawer-label,
    .drawer-scroll .drawer-link {
        opacity: 0;
        transform: translateX(-14px);
    }

    .drawer.open .drawer-scroll .drawer-label,
    .drawer.open .drawer-scroll .drawer-link {
        animation: drawerItemIn 0.62s ease-out forwards;
        animation-delay: var(--drawer-item-delay, 0s);
    }
}

@media (min-width: 1024px) {
    body {
        flex-direction: row;
        width: 100%;
        overflow-x: hidden;
    }

    header.site-header {
        display: none;
    }

    .drawer {
        position: fixed;
        left: 0;
        top: 0;
        width: 260px;
        min-width: 260px;
        height: 100vh;
        transform: none;
        box-shadow: none;
        border-right: 1px solid var(--gray);
        flex-shrink: 0;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 100;
    }

    .drawer-overlay {
        display: none;
    }

    main {
        flex: 1;
        display: flex;
        flex-direction: column;
        width: calc(100% - 260px);
        max-width: calc(100% - 260px);
        min-width: 0;
        margin-left: 260px;
        overflow-x: hidden;
    }
}

main {
    flex: 1;
    width: 100%;
    position: relative;
    min-height: 100vh;
    background: linear-gradient(160deg, #eef3ff 0%, #ffeef4 45%, #eef7ff 100%);
    overflow: hidden;
}

main::before,
main::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

main::before {
    top: -90px;
    right: -100px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.35), rgba(102, 126, 234, 0));
}

main::after {
    bottom: -120px;
    left: -100px;
    background: radial-gradient(circle, rgba(245, 87, 108, 0.3), rgba(245, 87, 108, 0));
}

.hero-section {
    padding: 32px 12px;
    background: transparent;
    overflow: hidden;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-wrap {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    width: 100%;
    padding: 0;
}

.hero-wrap > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 11px;
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-dark);
}

.hero-title .accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 100%;
}

.hero-perks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.perk-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-mid);
}

.perk-chip i {
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
}

.hero-cta-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.media-frame {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 300px;
}

.visual-card {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    top: 20px;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    bottom: 20px;
    left: 30%;
    animation-delay: 1s;
}

.card-3 {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    top: 40%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.section-wrap {
    padding: 32px 12px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.home-live-stats-section {
    padding-top: 6px;
    padding-bottom: 10px;
}

.home-live-stats {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.home-live-stat-card {
    background: rgba(20, 18, 45, 0.64);
    border: 1px solid rgba(166, 136, 255, 0.26);
    box-shadow: 0 16px 30px rgba(4, 5, 18, 0.54);
    border-radius: 14px;
    padding: 12px 14px;
}

.home-live-stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    color: #f4f2ff;
}

.home-live-stat-label {
    margin-top: 4px;
    font-size: 12px;
    color: #b4bbff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 24px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.section-sub {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 100%;
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-more:hover {
    gap: 12px;
}

.link-more i {
    font-size: 14px;
}

.featured-wrap {
    position: relative;
    width: 100%;
    padding: 0;
}

.home-featured-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.home-featured-nav:hover:not(:disabled) {
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.home-featured-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.home-featured-nav.prev {
    left: 0;
}

.home-featured-nav.next {
    right: 0;
}

.home-featured-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: 100%;
}

.home-featured-track::-webkit-scrollbar {
    display: none;
}

.home-featured-slide {
    flex-shrink: 0;
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-featured-media {
    flex: 1;
    min-height: 150px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-featured-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-featured-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-featured-image.active {
    opacity: 1;
}

.home-featured-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.home-featured-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-featured-dot.active {
    background: var(--white);
    width: 20px;
    border-radius: 3px;
}

.home-featured-meta {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: 0 12px 24px rgba(20, 44, 78, 0.1);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.home-featured-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.home-featured-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 18px;
    flex-shrink: 0;
}

.home-featured-name-wrap {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    padding: 8px 10px;
}

.home-featured-name {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 2px;
    transition: color 0.3s ease;
    word-break: break-word;
}

.home-featured-name:hover {
    color: var(--primary);
}

.home-featured-category {
    font-weight: 600;
    color: #5a6f95;
    font-size: 12px;
    line-height: 1.3;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.game-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.game-card-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    display: block;
    object-fit: cover;
}

.game-card-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 13px;
}

.game-card-sub {
    font-size: 11px;
    color: var(--text-light);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
    width: 100%;
}

.why-card {
    padding: 24px;
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.why-card:hover {
    background: var(--white);
    border: 1px solid var(--gray);
    box-shadow: var(--shadow-md);
}

.why-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 20px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.why-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.why-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.stat-card {
    padding: 16px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    border: 1px solid var(--gray);
    border-radius: var(--radius-lg);
    text-align: center;
}

.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 48px 12px;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.cta-wrap {
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 12px;
}

.cta-title {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.cta-sub {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.95;
    margin: 0;
}

.cta-btn-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.cta-btn-row .btn-primary,
.cta-btn-row .btn-ghost {
    width: 100%;
    justify-content: center;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.cta-section .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

#guestToast {
    position: fixed;
    bottom: 16px;
    left: 12px;
    right: 12px;
    background: var(--text-dark);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

#guestToast.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.toast-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.toast-inner i {
    font-size: 14px;
    flex-shrink: 0;
}

.toast-inner a {
    margin-left: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.toast-inner a:hover {
    color: var(--accent-light);
}

.scroll-animate {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease-out forwards;
}

.scroll-animate.visible {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-element {
    opacity: 0;
    transform: translateX(-50px);
}

.animate-element.in-view-down {
    animation: slideFromLeftToRight 0.6s ease-out forwards;
}

.animate-element.in-view-up {
    animation: slideFromRightToLeft 0.6s ease-out forwards;
}

.animate-element.fade-out-up {
    animation: fadeOutOnScrollUp 0.42s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromLeftToRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRightToLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (min-width: 768px) {
    .hero-wrap {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        max-width: 1200px;
        padding: 0 24px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-section {
        padding: 48px 0;
        overflow-x: hidden;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .section-wrap {
        padding: 48px 24px;
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
    }

    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 32px;
    }

    .cta-section {
        padding: 64px 24px;
        width: 100%;
    }

    .cta-wrap {
        max-width: 600px;
    }

    .media-frame {
        height: 340px;
    }

    .hero-cta-row {
        flex-direction: row;
    }

    .hero-cta-row .btn-primary,
    .hero-cta-row .btn-ghost {
        width: auto;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-num {
        font-size: 32px;
    }

    .section-title {
        font-size: 36px;
    }

    .cta-title {
        font-size: 38px;
    }

    .cta-btn-row {
        flex-direction: row;
        justify-content: center;
    }

    .cta-btn-row .btn-primary,
    .cta-btn-row .btn-ghost {
        width: auto;
    }

    .home-featured-nav {
        display: flex;
    }

    .home-featured-slide {
        width: 280px;
    }

    .home-featured-media {
        height: 200px;
    }

    .featured-wrap {
        padding: 0 30px;
        max-width: 1200px;
    }

    .home-featured-track {
        gap: 16px;
    }

    .home-live-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .home-live-stat-card {
        padding: 15px 16px;
    }
}

@keyframes drawerItemIn {
    from {
        opacity: 0;
        transform: translateX(-14px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutOnScrollUp {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}


.header-inner {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: 0 14px 28px rgba(20, 45, 80, 0.09);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.hero-section,
.section-wrap {
    background: transparent;
}

.hero-wrap,
.section-wrap,
.cta-wrap {
    position: relative;
}

.home-featured-media,
.game-card,
.stat-card,
.home-featured-meta,
.home-featured-nav,
.btn-ghost {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 30px rgba(18, 42, 76, 0.1);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.game-card:hover,
.home-featured-nav:hover:not(:disabled),
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.75);
}

.home-featured-icon {
    box-shadow: 0 10px 24px rgba(28, 54, 90, 0.2);
}

.hero-content-panel {
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    box-shadow: 0 18px 34px rgba(20, 44, 78, 0.12);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    padding: 18px;
}

.hero-visual .visual-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.card-1 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.card-2 {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

.card-3 {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.game-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 28px rgba(20, 44, 78, 0.11);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.game-card:hover {
    background: rgba(255, 255, 255, 0.7);
}

.cta-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.86) 0%, rgba(245, 87, 108, 0.84) 100%);
    backdrop-filter: blur(8px);
}

/* Dark neon theme inspired by xylovip layout */
:root {
    --white: #f8f9ff;
    --text-dark: #f4f6ff;
    --text-mid: #ccd0f8;
    --text-light: #9aa0cf;
    --primary: #7a5cff;
    --primary-dark: #6948ff;
    --accent: #a44dff;
    --accent-light: #d676ff;
    --gray: rgba(147, 142, 255, 0.22);
    --light-gray: rgba(35, 36, 76, 0.82);
}

body {
    background:
        radial-gradient(1200px 600px at 75% -12%, rgba(150, 73, 255, 0.24), transparent 60%),
        radial-gradient(900px 500px at -10% 20%, rgba(90, 74, 255, 0.2), transparent 60%),
        linear-gradient(180deg, #120c27 0%, #080b1d 55%, #060816 100%);
    color: var(--text-dark);
}

header.site-header {
    background: rgba(6, 8, 22, 0.78);
    border-bottom: 1px solid rgba(165, 136, 255, 0.16);
}

.header-inner {
    background: rgba(24, 20, 49, 0.64);
    border: 1px solid rgba(175, 143, 255, 0.26);
    box-shadow: 0 12px 34px rgba(6, 8, 28, 0.65);
}

.wordmark {
    color: #f1f3ff;
}

.menu-btn {
    background: rgba(112, 97, 240, 0.22);
    color: #dfe2ff;
}

main {
    background:
        radial-gradient(1000px 500px at 72% 14%, rgba(115, 55, 255, 0.18), transparent 68%),
        radial-gradient(700px 480px at 0% 100%, rgba(67, 83, 255, 0.16), transparent 62%),
        linear-gradient(180deg, #0a0d21 0%, #070a1a 100%);
}

main::before,
main::after {
    opacity: 0.5;
}

.hero-content-panel {
    background: rgba(21, 18, 45, 0.7);
    border: 1px solid rgba(168, 136, 255, 0.28);
    box-shadow: 0 24px 44px rgba(3, 5, 18, 0.6);
}

.hero-badge {
    background: rgba(65, 195, 155, 0.12);
    color: #95ffd6;
    border: 1px solid rgba(84, 255, 191, 0.24);
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
    background: #50f0b8;
    box-shadow: 0 0 12px #50f0b8;
}

.hero-title,
.section-title,
.cta-title {
    color: #f3f5ff;
}

.hero-sub,
.section-sub,
.game-card-sub,
.toast-inner {
    color: var(--text-light);
}

.perk-chip {
    color: #d6d9ff;
}

.perk-chip i {
    color: #b68fff;
}

.btn-primary {
    background: linear-gradient(135deg, #6a50ff 0%, #9d45ff 100%);
    box-shadow: 0 10px 28px rgba(108, 72, 255, 0.4);
}

.btn-ghost {
    color: #e8e9ff;
    background: rgba(96, 83, 216, 0.14);
    border: 1px solid rgba(171, 145, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(117, 102, 255, 0.22);
}

.home-featured-media,
.home-featured-meta,
.game-card,
.stat-card,
.home-featured-nav {
    background: rgba(20, 18, 45, 0.64);
    border: 1px solid rgba(166, 136, 255, 0.26);
    box-shadow: 0 16px 30px rgba(4, 5, 18, 0.54);
}

.home-featured-name,
.game-card-name,
.stat-label,
.link-more {
    color: #eceeff;
}

.home-featured-category {
    color: #b4bbff;
}

.home-featured-dot {
    background: rgba(201, 186, 255, 0.5);
}

.home-featured-dot.active {
    background: #f2edff;
}

.section-wrap,
.hero-section {
    background: transparent;
}

.cta-section {
    background: linear-gradient(135deg, rgba(83, 57, 206, 0.88) 0%, rgba(126, 54, 173, 0.88) 100%);
}

#guestToast {
    background: rgba(18, 17, 34, 0.95);
    border: 1px solid rgba(168, 136, 255, 0.22);
}

@media (min-width: 1024px) {
    .hero-content-panel {
        padding: 22px;
    }
}

/* Balanced readability pass */
body {
    line-height: 1.55;
}

main {
    overflow-x: clip;
}

.section-wrap,
.hero-wrap {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.home-quick-nav {
    padding-top: 20px;
    padding-bottom: 14px;
}

.quick-nav-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    background: rgba(22, 19, 46, 0.58);
    border: 1px solid rgba(164, 133, 255, 0.22);
    border-radius: 14px;
    padding: 8px;
}

.quick-nav-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 52px;
    border-radius: 10px;
    text-decoration: none;
    color: #b8bdf0;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.quick-nav-item i {
    font-size: 14px;
}

.quick-nav-item:hover {
    color: #ecefff;
    background: rgba(118, 94, 255, 0.16);
}

.quick-nav-item.active {
    color: #f7f8ff;
    background: linear-gradient(135deg, rgba(104, 79, 255, 0.35), rgba(168, 76, 255, 0.28));
    border-color: rgba(170, 137, 255, 0.35);
}

.hero-section {
    padding-top: 18px;
}

.hero-wrap {
    gap: 20px;
}

.hero-content-panel {
    border-radius: 20px;
    padding: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.hero-sub {
    max-width: 62ch;
    color: #b5bbe4;
    font-size: 14px;
}

.hero-cta-row {
    margin-top: 8px;
}

.btn-primary,
.btn-ghost {
    min-height: 42px;
    font-weight: 700;
}

.hero-visual {
    min-height: 260px;
    border-radius: 18px;
    border: 1px solid rgba(166, 136, 255, 0.25);
    background: linear-gradient(160deg, rgba(22, 16, 45, 0.9), rgba(38, 16, 55, 0.84));
    overflow: hidden;
}

.hero-visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.88;
    filter: saturate(1.08) contrast(1.03);
}

.section-header {
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
}

.section-sub {
    max-width: 72ch;
    color: #a8afd8;
}

.home-featured-slide {
    width: 248px;
}

.home-featured-media {
    min-height: 165px;
}

.home-featured-meta {
    padding: 10px;
}

.home-featured-name {
    color: #eef0ff;
}

.game-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.game-card {
    min-height: 220px;
}

.game-card-sub {
    color: #adb3dd;
}

.cta-wrap {
    max-width: 760px;
}

.cta-sub {
    color: #e5e7ff;
}

@media (max-width: 767px) {
    .quick-nav-grid {
        gap: 6px;
        padding: 6px;
    }

    .quick-nav-item {
        min-height: 46px;
        font-size: 10px;
    }

    .hero-content-panel {
        padding: 16px;
    }
}
