/* CSS Variables - Darkrai Theme (Exact from Design) */
:root {
    --primary-color: #1E1B4B;
    --primary-medium: #312E81;
    --accent-color: #4F46E5;
    --accent-light: #818CF8;
    --text-primary: #C7D2FE;
    --text-secondary: #E0E7FF;
    --text-muted: #A5B4FC;
    --text-white: #FFFFFF;
    --text-dark: #374151;
    --bg-black: #000000;
    --bg-dark: #0F172A;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
}

/* Import Pixel Font - Must be first */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-black);
    background-image: linear-gradient(180deg, #000000 0%, #0F172A 50%, #1E1B4B 100%);
    min-height: 100vh;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

/* Force pixel font on all text elements */
h1, h2, h3, h4, h5, h6,
p, span, a, div, li, button,
.logo, .hero-title, .hero-subtitle,
.step-number, .step-text,
.copyright, .disclaimer, .pokemon-disclaimer {
    font-family: 'Press Start 2P', cursive !important;
    letter-spacing: 0.02em;
}

/* Header Navigation */
.site-header {
    background: #1E1B4B;
    height: 72px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
}

.main-nav {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.logo {
    color: var(--text-white);
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    font-family: 'Press Start 2P', cursive !important;
}

.version {
    color: var(--text-muted);
    font-size: 10px;
    font-family: 'Press Start 2P', cursive !important;
    letter-spacing: 0.05em;
}

/* Pokemon Ball Logo - Image */
.pokeball-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    image-rendering: pixelated;
}

/* Navigation Links */
.nav-links {
    display: none;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-white);
    font-size: 12px;
    text-decoration: none;
    font-family: 'Press Start 2P', monospace;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: #312E81;
    padding: 64px 48px;
    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.hero-title {
    color: #C7D2FE;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    font-family: 'Press Start 2P', monospace;
    text-transform: uppercase;
}

.hero-subtitle {
    color: #E0E7FF;
    font-size: 12px;
    text-align: center;
    max-width: 900px;
    line-height: 1.6;
    font-family: 'Press Start 2P', monospace;
    width: 900px;
}

/* Game iframe Wrapper */
.game-iframe-wrapper {
    width: 1000px;
    height: 563px;
    background: #0F172A;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Game Introduction */
.game-introduction {
    width: 1000px;
    background: #4F46E5;
    border-radius: 12px;
    padding: 32px;
    gap: 16px;
    text-align: center;
}

.game-introduction h2 {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Press Start 2P', monospace;
    margin-bottom: 16px;
}

.game-introduction p {
    color: #E0E7FF;
    font-size: 10px;
    line-height: 1.6;
    max-width: 936px;
    margin: 0 auto;
    font-family: 'Press Start 2P', monospace;
}

/* How to Play */
.how-to-play {
    width: 1000px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 32px;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
}

.how-to-play h2 {
    color: #4F46E5;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Press Start 2P', monospace;
    margin-bottom: 12px;
    text-align: center;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-number {
    color: #4F46E5;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Press Start 2P', monospace;
    min-width: 24px;
}

.step-text {
    color: #374151;
    font-size: 10px;
    line-height: 1.6;
    font-family: 'Press Start 2P', monospace;
}

/* Footer */
.site-footer {
    background: #000000;
    color: var(--text-light);
    text-align: center;
    padding: 24px 48px;
    gap: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.copyright {
    color: #10B981;
    font-size: 10px;
    font-family: 'Press Start 2P', monospace;
}

.disclaimer,
.pokemon-disclaimer {
    color: #A5B4FC;
    font-size: 8px;
    font-family: 'Press Start 2P', monospace;
    max-width: 800px;
    text-align: center;
}

.site-footer a {
    color: var(--accent-light);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-nav {
        padding: 0 32px;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 16px;
    }

    .game-iframe-wrapper,
    .game-introduction,
    .how-to-play {
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 10px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: auto;
        padding: 16px 0;
    }

    .main-nav {
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }

    .logo-container {
        width: 100%;
        justify-content: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .hero-section {
        padding: 32px 16px;
    }

    .game-iframe-wrapper {
        height: auto;
        aspect-ratio: 16/9;
    }

    .game-introduction,
    .how-to-play {
        padding: 24px;
    }

    .hero-title {
        font-size: 18px;
    }
}

/* Ad Banners */
.ad-banner {
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    padding: var(--spacing-sm);
}

/* AdSense styling */
.adsbygoogle {
    display: block;
}
