:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-orange: #f97316;
    --accent-green: #22c55e;
    --bg: #f8fafc;
    --bg-dark: #0f172a;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: blobMove 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #c7d2fe, #e0e7ff);
    top: -150px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #fbcfe8, #fce7f3);
    bottom: 10%;
    left: -120px;
    animation-delay: -5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #a5f3fc, #cffafe);
    top: 45%;
    right: -80px;
    animation-delay: -10s;
}

@keyframes blobMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 40px) scale(1.08); }
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 900;
    font-size: 1.4rem;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.logo-text {
    background: linear-gradient(90deg, var(--primary-dark), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    font-weight: 700;
    color: var(--text-light);
    transition: color 0.2s;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-pink));
    transition: width 0.25s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* Hero */
.hero {
    padding: 150px 0 90px;
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-dark);
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    width: fit-content;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.gradient-text {
    display: block;
    background: linear-gradient(90deg, var(--primary), var(--accent-pink), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    color: #fff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
    background: #fff;
    color: var(--primary-dark);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-light);
    border-color: var(--border);
}

.btn-ghost:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.hero-visual {
    position: relative;
    min-height: 360px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 360px;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    font-weight: 800;
    animation: float 5s ease-in-out infinite;
}

.float-card img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
}

.card-drama {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    border: 2px solid rgba(236, 72, 153, 0.2);
}

.card-game {
    bottom: 20%;
    right: 10%;
    animation-delay: -2.5s;
    border: 2px solid rgba(99, 102, 241, 0.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* Section commons */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Announcements */
.announcements {
    padding: 70px 0;
    position: relative;
}

.announcements-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.announcement-marquee {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-lg);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
}

.announcement-marquee::before,
.announcement-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.announcement-marquee::before {
    left: 0;
    background: linear-gradient(90deg, rgba(248, 250, 252, 1), transparent);
}

.announcement-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(248, 250, 252, 1), transparent);
}

.marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    font-weight: 700;
    color: var(--text);
}

.marquee-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-pink);
    flex-shrink: 0;
}

.marquee-date {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.announcement-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.announcement-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.announcement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.announcement-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.announcement-type {
    display: inline-flex;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.announcement-type.update { background: #dbeafe; color: #1d4ed8; }
.announcement-type.news { background: #fce7f3; color: #be185d; }
.announcement-type.event { background: #d1fae5; color: #047857; }
.announcement-type.promo { background: #fef3c7; color: #b45309; }

.announcement-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.announcement-card h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.announcement-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.55;
}

/* Games */
.games {
    padding: 90px 0;
}

.game-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.game-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.game-card-reverse .game-card-media {
    order: 2;
}

.game-card-reverse .game-card-info {
    order: 1;
}

.game-card-media {
    position: relative;
}

.screenshot-slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--border);
}

.slider-viewport {
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-track img {
    width: 100%;
    flex-shrink: 0;
    aspect-ratio: 9/19;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
    color: var(--primary);
}

.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.slider-dot.active {
    width: 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent-pink));
}

.game-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.game-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.game-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
}

.game-category {
    display: inline-block;
    margin-top: 0.3rem;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.game-desc {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.game-features {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.game-features li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
}

.game-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    color: #fff;
    font-size: 0.7rem;
    display: grid;
    place-items: center;
}

.game-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background: var(--surface-2);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-light);
}

.meta-icon {
    font-style: normal;
    color: var(--accent-orange);
}

.game-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

/* Stats */
.stats {
    padding: 70px 0;
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1;
}

.stat-suffix {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1;
}

.stat-item .stat-line {
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-weight: 700;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* About */
.about {
    padding: 100px 0;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.value-icon {
    font-size: 1.4rem;
}

.about-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.about-card:nth-child(3) {
    grid-column: span 2;
}

.about-card-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-card-value {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text);
}

/* Contact */
.contact {
    padding: 90px 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-top: 0.75rem;
}

.contact-info {
    display: grid;
    gap: 1rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.contact-icon {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 800;
}

.contact-value {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text);
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: #fff;
    padding: 50px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 900;
    font-size: 1.3rem;
}

.footer-brand .logo-icon {
    box-shadow: none;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-inner,
    .game-card,
    .about-inner,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-visual {
        order: -1;
        min-height: 300px;
    }

    .game-card-reverse .game-card-media,
    .game-card-reverse .game-card-info {
        order: unset;
    }

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

    .about-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.25rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.35s ease;
        pointer-events: none;
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 130px 0 60px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .game-card {
        padding: 1.25rem;
        gap: 1.75rem;
    }

    .game-actions {
        flex-direction: column;
    }

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

    .about-values {
        grid-template-columns: 1fr;
    }

    .about-visual {
        grid-template-columns: 1fr;
    }

    .about-card:nth-child(3) {
        grid-column: span 1;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

    .floating-cards {
        height: 280px;
    }

    .float-card {
        padding: 0.65rem 1rem;
    }

    .float-card img {
        width: 44px;
        height: 44px;
    }

    .card-drama {
        left: 0;
    }

    .card-game {
        right: 0;
    }

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