@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --arc-black: #0a0a0a;
    --arc-dark: #1a0a2e;
    --arc-purple: #3a0a4e;
    --arc-neon-pink: #ff006e;
    --arc-neon-cyan: #00f5ff;
    --arc-neon-yellow: #f9f002;
    --arc-neon-green: #39ff14;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    background: var(--arc-black);
    color: #fff;
    min-height: 100vh;
    line-height: 1.6;
}

.arcade-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--arc-black);
    border-bottom: 3px solid var(--arc-neon-pink);
    box-shadow: 0 0 20px var(--arc-neon-pink);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.arcade-logo {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.4rem;
    color: var(--arc-neon-cyan);
    text-decoration: none;
    text-shadow: 0 0 10px var(--arc-neon-cyan), 0 0 20px var(--arc-neon-cyan);
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 90%, 100% { opacity: 1; }
    92%, 94%, 96% { opacity: 0.8; }
}

.arcade-nav {
    display: flex;
    gap: 2rem;
}

.arcade-nav a {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: var(--arc-neon-yellow);
    text-decoration: none;
    text-shadow: 0 0 5px var(--arc-neon-yellow);
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.arcade-nav a:hover {
    color: var(--arc-neon-green);
    text-shadow: 0 0 15px var(--arc-neon-green);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 4px;
    background: var(--arc-neon-pink);
    margin: 5px 0;
    box-shadow: 0 0 5px var(--arc-neon-pink);
    transition: 0.3s;
}

.menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(6px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:last-child {
    transform: rotate(-45deg) translate(6px, -8px);
}

.arcade-main {
    padding-top: 80px;
}

.pixel-hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(180deg, var(--arc-black) 0%, var(--arc-dark) 50%, var(--arc-purple) 100%);
    position: relative;
    overflow: hidden;
}

.pixel-hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(transparent 50%, rgba(0, 0, 0, 0.5) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.3;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-container h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 2.2rem;
    color: var(--arc-neon-cyan);
    text-shadow: 0 0 20px var(--arc-neon-cyan), 3px 3px 0 var(--arc-neon-pink);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-container .intro {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.play-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--arc-neon-pink);
    color: #fff;
    text-decoration: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    border: 4px solid var(--arc-neon-cyan);
    box-shadow: 0 0 20px var(--arc-neon-pink), inset 0 0 10px rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: var(--arc-neon-cyan);
    border-color: var(--arc-neon-pink);
    box-shadow: 0 0 30px var(--arc-neon-cyan);
    transform: scale(1.05);
}

.notice-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.notice-badge {
    background: rgba(255, 0, 110, 0.2);
    border: 2px solid var(--arc-neon-pink);
    padding: 0.8rem 1.5rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: var(--arc-neon-yellow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-zone {
    padding: 4rem 2rem;
    background: var(--arc-dark);
    border-top: 3px solid var(--arc-neon-cyan);
    border-bottom: 3px solid var(--arc-neon-cyan);
}

.zone-header {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--arc-neon-green);
    text-shadow: 0 0 15px var(--arc-neon-green);
}

.game-cabinet {
    max-width: 900px;
    margin: 0 auto;
    background: var(--arc-black);
    padding: 1.5rem;
    border: 4px solid var(--arc-neon-pink);
    box-shadow: 0 0 30px var(--arc-neon-pink), inset 0 0 20px rgba(255, 0, 110, 0.1);
}

.game-cabinet iframe {
    width: 100%;
    height: 550px;
    border: none;
}

.features-zone {
    padding: 5rem 2rem;
    background: var(--arc-purple);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.feature-box {
    background: var(--arc-dark);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 3px solid var(--arc-neon-cyan);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--arc-neon-cyan);
}

.feature-box .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-box h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: var(--arc-neon-yellow);
    margin-bottom: 1rem;
    text-shadow: 0 0 5px var(--arc-neon-yellow);
}

.feature-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.story-zone {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--arc-dark) 0%, var(--arc-black) 100%);
}

.story-wrapper {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.story-wrapper h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: var(--arc-neon-pink);
    text-shadow: 0 0 10px var(--arc-neon-pink);
    margin-bottom: 2rem;
}

.story-wrapper p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.arcade-footer {
    background: var(--arc-black);
    padding: 4rem 2rem;
    border-top: 3px solid var(--arc-neon-green);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    color: var(--arc-neon-cyan);
    text-shadow: 0 0 10px var(--arc-neon-cyan);
    margin-bottom: 2rem;
}

.resources-section h4 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: var(--arc-neon-yellow);
    margin-bottom: 1rem;
}

.resources-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.resources-row a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
}

.resources-row a:hover {
    color: var(--arc-neon-pink);
    text-shadow: 0 0 5px var(--arc-neon-pink);
}

.footer-text {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 245, 255, 0.3);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
}

.age-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.age-screen.hidden {
    display: none;
}

.age-box {
    background: var(--arc-dark);
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    border: 4px solid var(--arc-neon-pink);
    box-shadow: 0 0 40px var(--arc-neon-pink);
}

.age-box h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: var(--arc-neon-cyan);
    text-shadow: 0 0 10px var(--arc-neon-cyan);
    margin-bottom: 1.5rem;
}

.age-box p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-btn {
    padding: 1rem 2rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.age-btn.yes {
    background: var(--arc-neon-green);
    color: var(--arc-black);
    border: 3px solid var(--arc-neon-cyan);
}

.age-btn.no {
    background: transparent;
    color: var(--arc-neon-pink);
    border: 3px solid var(--arc-neon-pink);
}

.age-btn:hover {
    transform: scale(1.1);
}

.page-section {
    padding: 5rem 2rem 4rem;
    min-height: calc(100vh - 200px);
}

.page-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--arc-dark);
    padding: 3rem;
    border: 4px solid var(--arc-neon-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.page-box h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    color: var(--arc-neon-pink);
    text-shadow: 0 0 10px var(--arc-neon-pink);
    margin-bottom: 2rem;
}

.page-box h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: var(--arc-neon-yellow);
    margin: 2.5rem 0 1rem;
}

.page-box p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.page-box ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.page-box li {
    margin-bottom: 0.6rem;
}

.game-hint {
    background: rgba(0, 245, 255, 0.1);
    border: 3px solid var(--arc-neon-cyan);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .arcade-nav {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: var(--arc-black);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 3px solid var(--arc-neon-pink);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .arcade-nav.active {
        transform: translateX(0);
    }

    .header-inner {
        padding: 1rem 1.5rem;
    }

    .hero-container h1 {
        font-size: 1.2rem;
    }

    .hero-container .intro {
        font-size: 1.1rem;
    }

    .notice-row {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .game-zone,
    .features-zone,
    .story-zone,
    .arcade-footer,
    .page-section {
        padding: 3rem 1.5rem;
    }

    .page-box {
        padding: 2rem 1.5rem;
    }

    .game-cabinet iframe {
        height: 400px;
    }
}
