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

:root {
    --black: #0a0a0a;
    --off-black: #111111;
    --dark-gray: #1a1a1a;
    --mid-gray: #2e2e2e;
    --gray: #777777;
    --light-gray: #aaaaaa;
    --near-white: #e8e8e8;
    --white: #f5f5f5;
    --pure-white: #ffffff;
    --accent: #ffffff;
    --pixel-font: 'Press Start 2P', monospace;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--pixel-font);
    background-color: var(--black);
    color: var(--near-white);
    overflow-x: hidden;
}

/* ALL TYPOGRAPHY OVERRIDE TO PIXEL FONT */
h1, h2, h3, h4, h5, h6, p, a, span, div, li, button, input {
    font-family: var(--pixel-font) !important;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.35;
}

/* ── HEADER ── */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--mid-gray);
    transition: border-color 0.3s;
}

header.scrolled {
    border-bottom-color: var(--gray);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 0.85rem;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 0;
    list-style: none;
}

.nav-links li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.6rem;
    line-height: 1.4;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.nav-links li a:hover {
    color: var(--white);
    border-color: var(--mid-gray);
    background: rgba(255,255,255,0.04);
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    padding-top: 68px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Large background text */
.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(4rem, 14vw, 12rem);
    letter-spacing: 2px;
    color: rgba(255,255,255,0.03);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

/* Diagonal ruled lines */
.hero-lines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 60px,
        rgba(255,255,255,0.012) 60px,
        rgba(255,255,255,0.012) 61px
    );
    pointer-events: none;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5.5rem 2.5rem 4.5rem;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-label {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-label::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--gray);
}

.hero h1 {
    font-size: clamp(1.4rem, 3.2vw, 2.5rem);
    letter-spacing: 2px;
    line-height: 1.3;
    color: var(--white);
    margin-bottom: 2rem;
}

.hero h1 .outline-text {
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.4);
    color: transparent;
}

.hero-body {
    font-size: 0.7rem;
    line-height: 1.8;
    color: var(--light-gray);
    margin-bottom: 2.5rem;
    max-width: 480px;
    letter-spacing: 0.5px;
}

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

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border: 1px solid var(--mid-gray);
    background: var(--mid-gray);
}

.hero-stat-card {
    background: var(--off-black);
    padding: 1.75rem 2rem;
    transition: background 0.2s;
}

.hero-stat-card:hover {
    background: var(--dark-gray);
}

.hero-stat-num {
    font-size: 1.8rem;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
}

.hero-stat-label {
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: var(--gray);
    text-transform: uppercase;
    line-height: 1.4;
}

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    padding: 0.9rem 1.5rem;
    font-size: 0.6rem;
    line-height: 1.4;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

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

.btn-primary:hover {
    background: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.1);
}

.btn-outline {
    background: transparent;
    color: var(--near-white);
    border: 1px solid var(--mid-gray);
}

.btn-outline:hover {
    border-color: var(--gray);
    background: rgba(255,255,255,0.04);
}

/* ── SECTION SHARED ── */
.section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 7rem 2.5rem;
}

.section-label {
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: var(--gray);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.section-rule {
    width: 60px;
    height: 2px;
    background: var(--white);
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 0.68rem;
    color: var(--light-gray);
    letter-spacing: 0.5px;
    line-height: 1.8;
    max-width: 520px;
}

/* ── FEATURES ── */
.features-wrap {
    background: var(--off-black);
    border-top: 1px solid var(--mid-gray);
    border-bottom: 1px solid var(--mid-gray);
}

.features-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    align-items: start;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--mid-gray);
}

.feature-card {
    background: var(--off-black);
    padding: 2.5rem;
    position: relative;
    transition: background 0.25s;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card:hover {
    background: var(--dark-gray);
}

.feature-num {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--gray);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.feature-card h3 {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-card p {
    font-size: 0.65rem;
    color: var(--light-gray);
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.feature-card::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 2px;
    height: 0%;
    background: var(--white);
    transition: height 0.3s ease;
}

.feature-card:hover::after {
    height: 100%;
}

/* ── GAMES ── */
.games-wrap {
    background: var(--black);
}

.games-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: end;
    margin-bottom: 4rem;
}

.games-scroll-wrap {
    position: relative;
}

.games-grid {
    display: flex;
    gap: 1px;
    background: var(--mid-gray);
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.games-grid::-webkit-scrollbar {
    display: none;
    height: 0;
}

.games-grid::-webkit-scrollbar-track {
    background: var(--off-black);
}

.games-grid::-webkit-scrollbar-thumb {
    background: var(--mid-gray);
}

.games-grid::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

.games-scroll-btn {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 4;
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--mid-gray);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.8);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--pixel-font);
}

.games-scroll-btn:hover {
    transform: translateY(-50%) translate(-1px, -1px);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.8);
}

.games-scroll-prev { left: -12px; }
.games-scroll-next { right: -12px; }

.game-card {
    background: var(--off-black);
    overflow: hidden;
    cursor: pointer;
    transition: background 0.25s;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    flex: 0 0 min(340px, 82vw);
    width: min(340px, 82vw);
    scroll-snap-align: start;
}

.game-card:hover {
    background: var(--dark-gray);
}

.game-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(60%) contrast(1.1);
    transition: filter 0.4s, transform 0.5s;
}

.game-card:hover .game-image img {
    filter: grayscale(20%) contrast(1.05);
    transform: scale(1.03);
}

.game-divider {
    height: 1px;
    background: var(--mid-gray);
}

.game-content {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-card h3 {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.game-card p {
    font-size: 0.62rem;
    color: var(--light-gray);
    line-height: 1.8;
    margin-bottom: 1.75rem;
    letter-spacing: 0.5px;
    flex-grow: 1;
}

/* ── SUPPORT ── */
.support-wrap {
    background: var(--off-black);
    border-top: 1px solid var(--mid-gray);
}

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

.support-right {
    border: 1px solid var(--mid-gray);
    padding: 3rem;
}

.support-right h3 {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.support-right p {
    font-size: 0.65rem;
    color: var(--light-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

/* ── FOOTER ── */
footer {
    background: var(--black);
    border-top: 1px solid var(--mid-gray);
    padding: 4rem 2.5rem 2rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-brand img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 50%;
}

.footer-brand-name {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--white);
}

.footer-desc {
    font-size: 0.62rem;
    color: var(--gray);
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.footer-col h5 {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--light-gray);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col ul li a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.58rem;
    line-height: 1.4;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--near-white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--mid-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.55rem;
    line-height: 1.8;
    color: var(--gray);
    letter-spacing: 0.5px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content-left {
    animation: fadeUp 0.8s ease both;
}

.hero-right {
    animation: fadeUp 0.8s 0.2s ease both;
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-right { display: none; }
    .features-layout { grid-template-columns: 1fr; }
    .games-header { grid-template-columns: 1fr; }
    .support-inner { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .games-scroll-prev { left: 6px; }
    .games-scroll-next { right: 6px; }
}

/* ── HERO CHARACTER IMAGE OVERLAY ── */
.hero {
    min-height: 100vh;
    padding-top: 68px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
}

.hero-photo {
    position: absolute;
    inset: 0;
    background-image: url("../images/Asuna.webp");
    background-size: cover;
    background-position: 70% center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-photo-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10,10,10,0.82) 0%,
        rgba(10,10,10,0.55) 38%,
        rgba(10,10,10,0.18) 62%,
        rgba(10,10,10,0.08) 100%
    );
    z-index: 1;
}

.hero-overlay-title {
    display: none;
}

.hero-overlay-title h1,
.hero-content-left h1 {
    font-size: clamp(0.95rem, 2.6vw, 1.85rem);
    letter-spacing: 2px;
    line-height: 1.45;
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 0 6px 28px rgba(0,0,0,0.65);
    margin-bottom: 1.6rem;
}

.hero-overlay-title h1 .outline-text,
.hero-content-left h1 .outline-text {
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.85);
    color: transparent;
    text-shadow: none;
}

.hero-inner {
    z-index: 2;
}

@media (max-width: 900px) {
    .hero-photo { background-position: 62% center; }
    .hero-photo-veil {
        background: linear-gradient(
            180deg,
            rgba(10,10,10,0.55) 0%,
            rgba(10,10,10,0.72) 45%,
            rgba(10,10,10,0.88) 100%
        );
    }
}

/* ── FLOATING ROCKET ── */
.floating-rocket-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 55px;
    height: 55px;
    background-color: var(--white, #f5f5f5);
    border: 2px solid var(--mid-gray, #2e2e2e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.8);
    transition: transform 0.2s, box-shadow 0.2s;
}
.floating-rocket-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.8);
}
.floating-rocket-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
}
.floating-rocket-btn img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    transform: rotate(45deg);
}
