* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #050A1E;
    color: #A0D8F1;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
}

.module-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
}

.module-container.narrow {
    max-width: 980px;
}

/* Access Control */
.access-control {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 30, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(12px);
}

.access-control.hidden {
    display: none;
}

.control-module {
    background: linear-gradient(145deg, #0A1534, #050A1E);
    border: 3px solid #00FFFF;
    border-radius: 16px;
    padding: 3rem 2.8rem;
    max-width: 580px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 255, 255, 0.4), inset 0 0 60px rgba(0, 255, 255, 0.1);
}

.access-icon {
    font-size: 4.5rem;
    color: #00FFFF;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.control-module h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #00FFFF;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.control-module p {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #7DB8D1;
    margin-bottom: 2rem;
}

.access-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.access-buttons button {
    padding: 1.2rem 2.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grant-access {
    background: linear-gradient(135deg, #00FFFF, #0088FF);
    color: #050A1E;
    border: 2px solid #00FFFF;
}

.grant-access:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.6);
}

.deny-access {
    background: #1A2540;
    color: #5A7090;
    border: 2px solid #2A3550;
}

.deny-access:hover {
    background: #2A3550;
}

/* Header */
.system-header {
    background: rgba(5, 10, 30, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-layout {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.system-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.system-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.7rem;
    font-weight: 900;
    color: #00FFFF;
    letter-spacing: 3px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 32px;
    height: 3px;
    background: #00FFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.system-nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: #7DB8D1;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    letter-spacing: 1px;
}

.nav-link:hover,
.nav-link.active-link {
    color: #00FFFF;
    border-bottom-color: #00FFFF;
}

/* Command Center */
.command-center {
    padding: 5.5rem 0;
    background: linear-gradient(145deg, #0A1534, #050A1E);
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

.center-display {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.system-title {
    font-size: 3.8rem;
    font-weight: 900;
    color: #00FFFF;
    margin-bottom: 1.5rem;
    letter-spacing: 4px;
    text-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
}

.system-description {
    font-size: 1.3rem;
    color: #7DB8D1;
    margin-bottom: 3rem;
    line-height: 1.9;
}

.status-indicators {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.indicator {
    background: rgba(0, 255, 255, 0.08);
    border: 2px solid rgba(0, 255, 255, 0.3);
    padding: 1rem 2.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.indicator-glyph {
    color: #00FFFF;
    font-size: 1.4rem;
    font-weight: bold;
}

.indicator-text {
    font-weight: 600;
    font-size: 1.05rem;
    font-family: 'Orbitron', sans-serif;
}

/* Game Module */
.game-module {
    padding: 5rem 0;
}

.module-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.module-header h2 {
    font-size: 3rem;
    font-weight: 900;
    color: #00FFFF;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.module-header p {
    font-size: 1.2rem;
    color: #5A7090;
}

.game-viewport {
    background: rgba(10, 21, 52, 0.6);
    border: 3px solid rgba(0, 255, 255, 0.4);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0, 255, 255, 0.3), inset 0 0 40px rgba(0, 255, 255, 0.05);
}

.game-viewport iframe {
    width: 100%;
    height: 740px;
    border: none;
    border-radius: 10px;
}

/* System Features */
.system-features {
    padding: 5rem 0;
    background: linear-gradient(180deg, #050A1E, #0A1534);
}

.feature-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-node {
    background: rgba(10, 21, 52, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 14px;
    padding: 3rem;
    transition: all 0.4s ease;
}

.feature-node:hover {
    transform: translateY(-10px);
    border-color: #00FFFF;
    box-shadow: 0 25px 50px rgba(0, 255, 255, 0.4);
}

.node-icon {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
}

.feature-node h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #00FFFF;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

.feature-node p {
    color: #7DB8D1;
    line-height: 1.9;
}

/* Protocol Notices */
.protocol-notices {
    padding: 5rem 0;
}

.notice-module {
    background: rgba(0, 255, 255, 0.05);
    border: 3px solid rgba(0, 255, 255, 0.4);
    border-radius: 14px;
    padding: 3.5rem;
}

.notice-module h3 {
    font-size: 2.3rem;
    font-weight: 900;
    color: #00FFFF;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: 2px;
}

.protocol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2.5rem;
}

.protocol-entry h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #00FFFF;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.protocol-entry p {
    color: #7DB8D1;
    line-height: 1.9;
}

/* Action Module */
.action-module {
    padding: 5.5rem 0;
    background: linear-gradient(145deg, #0A1534, #050A1E);
    text-align: center;
    border-top: 2px solid rgba(0, 255, 255, 0.2);
}

.action-display h2 {
    font-size: 3.3rem;
    font-weight: 900;
    color: #00FFFF;
    margin-bottom: 1.2rem;
    letter-spacing: 2px;
}

.action-display p {
    font-size: 1.3rem;
    color: #5A7090;
    margin-bottom: 3rem;
}

.action-button {
    display: inline-block;
    background: linear-gradient(135deg, #00FFFF, #0088FF);
    color: #050A1E;
    padding: 1.5rem 4rem;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #00FFFF;
    transition: all 0.4s ease;
    box-shadow: 0 15px 45px rgba(0, 255, 255, 0.4);
}

.action-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.7);
}

/* Interface Pages */
.interface-header {
    padding: 4.5rem 0;
    background: linear-gradient(145deg, #0A1534, #050A1E);
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
    text-align: center;
}

.interface-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #00FFFF;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.sys-timestamp {
    color: #4A6080;
    font-size: 1rem;
    font-family: 'Orbitron', sans-serif;
}

/* Operational Guidance */
.operational-guidance {
    padding: 3.5rem 0;
}

.guidance-panel {
    background: rgba(10, 21, 52, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 14px;
    padding: 3rem;
}

.guidance-panel h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #00FFFF;
    margin-bottom: 1.5rem;
}

.guidance-panel p {
    color: #7DB8D1;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.instruction-item {
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.instruction-icon {
    font-size: 2.2rem;
}

.instruction-label {
    font-size: 1rem;
    font-weight: 500;
}

/* Game Interface */
.game-interface {
    padding: 3rem 0 5.5rem 0;
}

.interface-frame {
    background: rgba(10, 21, 52, 0.6);
    border: 3px solid rgba(0, 255, 255, 0.4);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0, 255, 255, 0.3);
}

.interface-frame iframe {
    width: 100%;
    height: 740px;
    border: none;
    border-radius: 10px;
}

/* Document Module */
.document-module {
    padding: 5rem 0;
}

.system-document h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: #00FFFF;
    margin: 3rem 0 1.5rem 0;
    letter-spacing: 1px;
}

.system-document h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0088FF;
    margin: 2.5rem 0 1.2rem 0;
}

.system-document p {
    margin-bottom: 1.5rem;
    color: #7DB8D1;
    line-height: 1.95;
}

.system-document ul {
    margin: 1.5rem 0 2rem 2.5rem;
    color: #7DB8D1;
}

.system-document li {
    margin-bottom: 1rem;
    line-height: 1.9;
}

.system-document a {
    color: #00FFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.system-document a:hover {
    color: #0088FF;
    text-decoration: underline;
}

.alert-module {
    background: rgba(0, 255, 255, 0.1);
    border: 3px solid rgba(0, 255, 255, 0.5);
    border-radius: 10px;
    padding: 2.5rem;
    margin-top: 3rem;
}

.alert-module strong {
    color: #00FFFF;
    font-size: 1.2rem;
}

.alert-module.critical h3 {
    font-size: 2rem;
    color: #00FFFF;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.alert-module.critical ul {
    list-style: none;
    margin: 0;
}

.alert-module.critical li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.alert-module.critical li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #00FFFF;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Footer */
.system-footer {
    background: rgba(5, 10, 30, 0.95);
    border-top: 2px solid rgba(0, 255, 255, 0.3);
    padding: 4.5rem 0 2rem 0;
    margin-top: 5rem;
}

.footer-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-node h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #00FFFF;
    margin-bottom: 1.3rem;
    letter-spacing: 1px;
}

.footer-node p {
    color: #5A7090;
    line-height: 1.9;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.9rem;
}

.footer-nav a {
    color: #7DB8D1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #00FFFF;
}

.footer-terminal {
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding-top: 2.5rem;
    text-align: center;
    color: #4A6080;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .system-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 10, 30, 0.98);
        flex-direction: column;
        gap: 0;
        display: none;
        border-bottom: 2px solid rgba(0, 255, 255, 0.3);
    }

    .system-nav.active {
        display: flex;
    }

    .nav-link {
        padding: 1.3rem;
        border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    }

    .system-title {
        font-size: 2.5rem;
    }

    .system-description {
        font-size: 1.1rem;
    }

    .status-indicators {
        flex-direction: column;
        align-items: center;
    }

    .module-header h2 {
        font-size: 2.2rem;
    }

    .game-viewport iframe,
    .interface-frame iframe {
        height: 500px;
    }

    .feature-matrix,
    .protocol-grid {
        grid-template-columns: 1fr;
    }

    .action-display h2,
    .interface-header h1 {
        font-size: 2.3rem;
    }

    .control-module {
        padding: 2.5rem 2rem;
        margin: 1rem;
    }

    .control-module h2 {
        font-size: 1.8rem;
    }

    .access-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .system-document h2 {
        font-size: 1.9rem;
    }
}
