:root {
    --bg: #0b0b1a;
    --bg2: #12122a;
    --card: #161636;
    --text: #e8e8f0;
    --muted: #9595b0;
    --primary: #5865f2;
    --accent: #7c3aed;
    --grad: linear-gradient(135deg, #5865f2, #7c3aed);
    --radius: 16px;
    --max: 1200px;
    --header: 72px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header)
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden
}

a {
    color: inherit;
    text-decoration: none
}

img {
    display: block;
    max-width: 100%
}

.container {
    width: min(var(--max), 92%);
    margin-inline: auto
}

/* particles */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .45
}

/* header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header);
    z-index: 100;
    transition: background .3s, box-shadow .3s, backdrop-filter .3s
}

.header.scrolled {
    background: rgba(11, 11, 26, .82);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06)
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem
}

.logo-en {
    display: block;
    font-size: .6rem;
    font-weight: 400;
    letter-spacing: .18em;
    color: var(--muted);
    margin-top: -2px
}

.nav {
    display: flex;
    gap: 8px
}

.nav-link {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: .92rem;
    color: var(--muted);
    transition: color .25s, background .25s
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(88, 101, 242, .18)
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pading:4px
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s
}

/* hero */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header) + 40px) 0 80px
}

.hero-title {
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero-sub {
    font-size: clamp(.95rem, 1.8vw, 1.15rem);
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 36px
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap
}

.btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform .2s, box-shadow .2s
}

.btn:hover {
    transform: translateY(-2px)
}

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 30px rgba(88, 101, 242, .35)
}

.btn-primary:hover {
    box-shadow: 0 12px 40px rgba(88, 101, 242, .5)
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .25)
}

.btn-outline:hover {
    border-color: #fff
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 12px
}

.scroll-hint span {
    display: block;
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    margin: 6px auto;
    animation: scrollDot 1.6s infinite
}

@keyframes scrollDot {
    0% {
        opacity: 1;
        transform: translateY(0)
    }

    100% {
        opacity: 0;
        transform: translateY(14px)
    }
}

/* sections */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 0
}

.section-head {
    text-align: center;
    margin-bottom: 56px
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 10px
}

.section-desc {
    color: var(--muted)
}

/* about stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 56px
}

.stat-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    padding: 32px 16px;
    text-align: center
}

.stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.stat-label {
    color: var(--muted);
    font-size: .9rem;
    margin-top: 4px
}

.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.value-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform .3s, border-color .3s
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(88, 101, 242, .4)
}

.value-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px
}

.value-card p {
    color: var(--muted);
    font-size: .92rem
}

/* games */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px
}

.game-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .35s, box-shadow .35s
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4)
}

.game-img {
    height: 180px;
    background: center/cover no-repeat
}

.game-body {
    padding: 20px
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .75rem;
    background: rgba(255, 255, 255, .08);
    margin-bottom: 10px
}

.tag.hot {
    background: rgba(245, 87, 108, .2);
    color: #f5576c
}

.tag.new {
    background: rgba(67, 233, 123, .15);
    color: #43e97b
}

.game-body h3 {
    font-size: 1.1rem;
    margin-bottom: 6px
}

.game-body p {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 14px
}

.game-link {
    font-size: .88rem;
    color: var(--primary);
    font-weight: 600
}

/* news */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin-inline: auto
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    padding: 18px 24px;
    transition: border-color .25s, transform .25s
}

.news-item:hover {
    border-color: rgba(88, 101, 242, .4);
    transform: translateX(4px)
}

.news-item time {
    white-space: nowrap;
    color: var(--muted);
    font-size: .88rem;
    min-width: 90px
}

.news-info h3 {
    font-size: .95rem;
    font-weight: 500;
    margin-bottom: 4px
}

.news-tag {
    font-size: .75rem;
    color: var(--primary)
}

/* contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 12px
}

.contact-info>p {
    color: var(--muted);
    margin-bottom: 28px
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: .92rem
}

.contact-list strong {
    display: block;
    color: var(--muted);
    font-weight: 400;
    font-size: .8rem;
    margin-bottom: 2px
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font: inherit;
    font-size: .92rem;
    outline: none;
    transition: border-color .25s
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary)
}

.contact-form select option {
    background: var(--bg2)
}

.form-msg {
    font-size: .85rem;
    min-height: 1.2em
}

.form-msg.ok {
    color: #43e97b
}

.form-msg.err {
    color: #f5576c
}

/* footer */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 28px 0;
    text-align: center;
    color: var(--muted);
    font-size: .82rem
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.footer a:hover {
    color: #fff
}

/* reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

/* ripple */
.btn {
    position: relative;
    overflow: hidden
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    transform: scale(0);
    animation: rippleAnim .6s linear;
    pointer-events: none
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0
    }
}

@media(max-width:900px) {
    .stats {
        grid-template-columns: repeat(2, 1fr)
    }

    .values {
        grid-template-columns: 1fr
    }

    .contact-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:700px) {
    .burger {
        display: flex
    }

    .nav {
        position: fixed;
        top: var(--header);
        left: 0;
        right: 0;
        background: rgba(11, 11, 26, .96);
        backdrop-filter: blur(14px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        transform: translateY(-120%);
        opacity: 0;
        transition: transform .35s, opacity .35s
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1
    }

    .nav-link {
        padding: 12px 16px
    }

    .stats {
        grid-template-columns: 1fr 1fr
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px
    }
}