:root {
    --bg: #0b0b0d;
    --muted: #9aa0a6;
    --accent: #ff8a3d;
}

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

html,
body,
#root {
    height: 100%
}

body {
    height: 100vh;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background: linear-gradient(180deg, #070708 0%, #0d0d0f 100%);
    color: #eee;
    overflow: hidden;
}

/* subtle film grain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 3px 3px;
    mix-blend-mode: overlay;
    opacity: 0.45;
}

.site {
    width: 100%;
    height: 100vh;
    transition: transform 700ms cubic-bezier(.2, .9, .25, 1)
}

.section {
    height: 100vh;
    position: relative
}

/* Hero */
.hero {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.6) saturate(0.9)
}

.hero-overlay {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 6vh 6vw 10vh;
    max-width: 1200px
}

.game-title {
    font-size: clamp(28px, 6vw, 56px);
    letter-spacing: 2px;
    margin-bottom: 18px;
    color: var(--accent)
}
.game-title-link {
    font-size: clamp(20px, 4vw, 36px);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    color: #fff
}

.hero-actions {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    margin-bottom: 18px
}

.btn {
    background: linear-gradient(90deg, #ff9a55, #ff7440);
    padding: 10px 18px;
    border-radius: 8px;
    color: #111;
    text-decoration: none;
    font-weight: 600
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.04)
}

.scroll-hint {
    color: var(--muted);
    font-size: 13px
}

/* Characters */
.characters {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6vh 4vw
}

.characters-inner {
    width: 100%;
    height: 80vh;
    overflow: hidden;
    position: relative
}

.chars-wrap {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 600ms cubic-bezier(.2, .9, .25, 1)
}

.char-slide {
    display: flex;
    align-items: stretch;
    height: 100%;
    min-width: 100%
}

.char-left {
    width: 34%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px;
    overflow-y: auto
}

.char-left img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 16px
}

.char-description {
    color: #FFFFFF;
    line-height: 1.8;
    font-size: 18px;
    max-width: 280px
}

.char-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px
}

.char-figure {
    max-width: 70%;
    height: auto;
    margin-bottom: 18px;
    max-height: calc(80vh - 120px);
    object-fit: contain
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    z-index: 60;
}

.logo {
    width: 140px;
    height: 40px;
    display: block
}

.topnav {
    display: flex;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.9)
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 200ms ease;
    cursor: pointer
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent)
}

.bgm-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 200ms ease;
    display: flex;
    align-items: center;
    justify-content: center
}

.bgm-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent)
}

.bgm-btn.active {
    color: var(--accent)
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    transition: all 200ms ease
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent)
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 300ms cubic-bezier(.2, .9, .25, 1)
}

.menu-toggle.open .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px)
}

.menu-toggle.open .hamburger:nth-child(2) {
    opacity: 0
}

.menu-toggle.open .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px)
}

.drawer-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 0;
    background: rgba(11, 11, 13, 0.222);
    backdrop-filter: blur(8px);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    width: 200px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 59;
    flex-direction: column
}

.drawer-menu.open {
    display: flex;
    animation: slideInRight 300ms cubic-bezier(.2, .9, .25, 1)
}

.drawer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 0;
    font-size: 14px;
    transition: all 200ms ease;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border: none;
    background: none
}

.drawer-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent)
}

.drawer-bgm-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 16px;
    cursor: pointer;
    transition: all 200ms ease;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px
}

.drawer-bgm-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent)
}

.drawer-bgm-btn.active {
    color: var(--accent)
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0
    }

    to {
        transform: translateX(0);
        opacity: 1
    }
}

.char-text {
    max-width: 60%;
    color: var(--muted);
    line-height: 1.6
}



/* Footer */
.footer {
    display: flex;
    align-items: center;
    justify-content: center
}

.footer footer {
    color: var(--muted);
    font-size: 14px
}

/* Responsive */
@media (max-width:1024px) {
    .topnav {
        gap: 6px
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 13px
    }

    .char-left {
        width: 40%
    }

    .char-figure {
        max-width: 85%
    }

    .char-description {
        max-width: 300px
    }
}

@media (max-width:768px) {
    .menu-toggle {
        display: flex
    }

    .topnav {
        display: none
    }

    .hero-overlay {
        padding: 6vh 5vw;
        margin-top: 20px
    }

    .characters {
        padding: 4vh 4vw;
        margin-top: 20px
    }

    .char-slide {
        flex-direction: column;
        align-items: center
    }

    .char-left {
        width: 100%;
        padding: 16px;
        justify-content: flex-start;
        max-height: none
    }

    .char-right {
        width: 100%;
        padding: 16px
    }

    .char-figure {
        max-width: 90%;
        max-height: 50vh
    }

    .char-description {
        display: none
    }
}
/*game-link*/
.game-link {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    display: inline-block;
}