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

:root {
    --primary-blue: #0d47a1;
    --electric-blue: #2196f3;
    --light-blue: #64b5f6;
    --silver: #cfd8dc;
    --dark-navy: #0a1929;
    --cyan: #00bcd4;
    --amber: #ffa726;
    --danger-red: #f44336;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #0a1929 0%, #1a237e 50%, #0d47a1 100%);
    background-attachment: fixed;
    color: var(--silver);
    line-height: 1.7;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: linear-gradient(90deg, var(--dark-navy) 0%, var(--primary-blue) 100%);
    border-bottom: 2px solid var(--electric-blue);
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-symbol {
    font-size: 2.5rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan); }
    to { text-shadow: 0 0 20px var(--electric-blue), 0 0 30px var(--electric-blue); }
}

.brand-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-blue);
    letter-spacing: 2px;
}

.nav-trigger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.trigger-line {
    width: 28px;
    height: 3px;
    background: var(--light-blue);
    transition: 0.3s;
}

.primary-nav {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    background: rgba(13, 71, 161, 0.5);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--electric-blue);
}

.nav-link {
    padding: 0.75rem 1.5rem;
    color: var(--silver);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    background: rgba(33, 150, 243, 0.3);
    color: var(--light-blue);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--electric-blue);
    color: white;
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.6);
}

.main-container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.hero-module {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(0, 188, 212, 0.2) 100%);
    border-radius: 15px;
    margin-bottom: 3rem;
    border: 2px solid var(--electric-blue);
    box-shadow: 0 10px 40px rgba(33, 150, 243, 0.3);
}

.hero-headline {
    font-size: 3rem;
    color: var(--light-blue);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(33, 150, 243, 0.7);
}

.hero-subline {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--silver);
}

.hero-accent {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    margin: 2rem auto 0;
}

.intro-module, .alert-module, .showcase-module, .advantages-module, .ethics-module {
    margin-bottom: 3rem;
}

.module-wrapper {
    background: rgba(13, 71, 161, 0.3);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--electric-blue);
    backdrop-filter: blur(10px);
}

.module-title {
    font-size: 2rem;
    color: var(--light-blue);
    margin-bottom: 2rem;
    font-weight: 700;
}

.module-title.centered {
    text-align: center;
}

.intro-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.9;
}

.alert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.alert-panel {
    background: rgba(13, 71, 161, 0.4);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.alert-panel:hover {
    transform: translateY(-8px);
}

.panel-red {
    border-color: var(--danger-red);
}

.panel-cyan {
    border-color: var(--cyan);
}

.panel-amber {
    border-color: var(--amber);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel-glyph {
    font-size: 2.5rem;
}

.alert-panel h3 {
    color: var(--light-blue);
    font-size: 1.3rem;
}

.showcase-module {
    background: rgba(13, 71, 161, 0.3);
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid var(--cyan);
    box-shadow: 0 10px 40px rgba(0, 188, 212, 0.3);
}

.showcase-content {
    margin-bottom: 2.5rem;
}

.showcase-intro, .showcase-detail {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.game-display {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--electric-blue);
}

.game-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.showcase-tip {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 188, 212, 0.2);
    border-radius: 10px;
    border-left: 4px solid var(--cyan);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.advantage-card {
    background: rgba(13, 71, 161, 0.4);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--electric-blue);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.advantage-card h3 {
    color: var(--light-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.ethics-module {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3) 0%, rgba(13, 71, 161, 0.3) 100%);
    border-radius: 15px;
    border: 2px solid var(--electric-blue);
}

.ethics-wrapper {
    padding: 3rem;
}

.ethics-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.ethics-callout {
    background: rgba(0, 188, 212, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--cyan);
    margin-top: 2rem;
}

.app-footer {
    background: linear-gradient(to top, var(--dark-navy) 0%, var(--primary-blue) 100%);
    border-top: 2px solid var(--electric-blue);
    padding: 3rem 2rem;
    margin-top: auto;
}

.footer-structure {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.footer-segment h4 {
    color: var(--light-blue);
    margin-bottom: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--silver);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-segment p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.age-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 41, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.age-overlay.hidden {
    display: none;
}

.age-dialog {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-navy) 100%);
    border: 3px solid var(--electric-blue);
    border-radius: 15px;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(33, 150, 243, 0.5);
}

.age-icon-circle {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.age-heading {
    color: var(--light-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Rajdhani', sans-serif;
}

.age-description {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.age-subdesc {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.age-control-panel {
    display: flex;
    gap: 1rem;
}

.verify-button, .reject-button {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.verify-button {
    background: var(--cyan);
    color: white;
}

.verify-button:hover {
    background: #00acc1;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.6);
}

.reject-button {
    background: var(--danger-red);
    color: white;
}

.reject-button:hover {
    background: #e53935;
    transform: scale(1.05);
}

.page-hero {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    background: rgba(13, 71, 161, 0.3);
    border-radius: 15px;
    border: 2px solid var(--electric-blue);
}

.page-hero h1 {
    font-size: 2.5rem;
    color: var(--light-blue);
    margin-bottom: 0.5rem;
}

.page-tagline {
    font-size: 1.2rem;
    font-style: italic;
}

.page-hero.critical {
    border-color: var(--danger-red);
    border-width: 3px;
}

.game-info-module, .game-container-module, .instructions-module, .technical-module, .warnings-module {
    margin-bottom: 3rem;
}

.game-info-module, .instructions-module, .technical-module, .warnings-module {
    background: rgba(13, 71, 161, 0.3);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--electric-blue);
}

.info-content p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.instruction-card {
    display: flex;
    gap: 1rem;
    background: rgba(0, 188, 212, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--cyan);
}

.instruction-badge {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cyan);
    font-family: 'Rajdhani', sans-serif;
    min-width: 50px;
}

.instruction-info h3 {
    color: var(--light-blue);
    margin-bottom: 0.5rem;
}

.tech-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tech-item {
    background: rgba(0, 188, 212, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--cyan);
}

.tech-item strong {
    color: var(--light-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.warning-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.warning-block {
    background: rgba(244, 67, 54, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--danger-red);
    text-align: center;
    font-weight: 600;
}

.legal-docs {
    max-width: 900px;
    margin: 0 auto;
}

.legal-block {
    background: rgba(13, 71, 161, 0.3);
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid var(--electric-blue);
}

.legal-block h2 {
    color: var(--light-blue);
    margin-bottom: 1.5rem;
    font-size: 1.7rem;
}

.legal-block h3 {
    color: var(--light-blue);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.legal-block p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.legal-block ul {
    margin: 1rem 0 1rem 2rem;
}

.legal-block li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.critical-block {
    border: 3px solid var(--danger-red);
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(13, 71, 161, 0.3) 100%);
}

.emphasis-paragraph {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.9;
}

@media (max-width: 768px) {
    .nav-trigger {
        display: flex;
    }

    .primary-nav {
        position: fixed;
        top: 85px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        flex-direction: column;
        padding: 2rem 0;
        height: calc(100vh - 85px);
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .primary-nav.active {
        left: 0;
    }

    .nav-link {
        border-radius: 0;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-subline {
        font-size: 1.1rem;
    }

    .main-container {
        padding: 2rem 1rem;
    }

    .alert-grid, .advantages-grid, .instruction-grid, .tech-details, .warning-blocks {
        grid-template-columns: 1fr;
    }

    .module-wrapper, .showcase-module, .game-info-module, .instructions-module, .technical-module, .warnings-module, .legal-block {
        padding: 1.5rem;
    }

    .age-dialog {
        margin: 1rem;
        padding: 2rem;
    }

    .age-control-panel {
        flex-direction: column;
    }

    .game-display {
        padding-bottom: 120%;
    }
}
