:root {
    --bg: #090b10;
    --bg2: #0e1118;
    --surface: #13161f;
    --surface2: #1a1e2b;
    --border: rgba(255, 255, 255, 0.07);
    --text: #e8eaf0;
    --muted: #666d88;
    --accent: #e8547a;
    --accent2: #7e5ef0;
    --gold: #f0b955;
    --cyan: #4fd9e8;
    --radius: 12px;
    --card-w: 200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 300;
    min-height: 100vh;
    overflow-x: hidden;
}

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.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: .4;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--surface2);
    border-radius: 9px;
}

.serif-jp {
    font-family: 'Noto Serif JP', serif;
}

.cinzel {
    font-family: 'Cinzel', serif;
}

footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    font-size: .8rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

@media (max-width: 600px) {
    :root {
        --card-w: 150px;
    }

    nav {
        padding: 0 1rem;
    }

    .modal-inner {
        grid-template-columns: 1fr;
    }

    .modal-poster {
        margin-top: -60px;
        width: 110px;
    }
}