:root {
    --shadow-blue: #00d4ff;
    --shadow-gold: #ffcc00;
    --deep-dark: #050505;
    --nav-height: 60px;
}

/* 1. STRETCH THE CANVAS */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: white;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    overflow: hidden; /* We handle scrolling inside the wrapper */
}

/* 2. THE NAVIGATION FIXED AT THE TOP */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--shadow-blue);
    display: flex;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 3. THE MAIN VIEWPORT (The "App" Window) */
.viewport-wrapper {
    margin-top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    width: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at top, #101525 0%, #000 100%);
    scrollbar-width: thin;
    scrollbar-color: var(--shadow-blue) transparent;
}

/* 4. THE POSTER CARD */
.rules-container, .tournament-card {
    width: 90%;
    max-width: 800px;
    margin: 40px 0; /* Space at top and bottom */
    padding: 2rem;
    border: 2px solid var(--shadow-blue);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
    text-align: center;
}

/* 5. RESPONSIVE LAYOUTS */
.main-content, .deployment-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

@media (min-width: 768px) {
    .main-content, .deployment-info {
        flex-direction: row;
        justify-content: space-around;
        text-align: left;
    }
}

/* 6. COMPONENTS */
.clause {
    border-left: 2px solid var(--shadow-blue);
    padding-left: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.clause h2 { color: var(--shadow-gold); font-size: 1.1rem; margin-bottom: 10px; }

.deployment-info {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 20px;
}

.info-item .label { display: block; color: var(--shadow-blue); font-size: 0.7rem; font-weight: bold; }
.info-item .value { font-size: 1.2rem; font-weight: bold; }

.login-btn {
    background: transparent;
    border: 1px solid var(--shadow-gold);
    color: var(--shadow-gold);
    padding: 12px 24px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.login-btn:hover {
    background: var(--shadow-gold);
    color: black;
    box-shadow: 0 0 20px var(--shadow-gold);
}

.challenge-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.node {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid #00ffff;
    padding: 15px;
    width: 100px;
    text-align: center;
    clip-path: polygon(10% 0, 90% 0, 100% 20%, 100% 80%, 90% 100%, 10% 100%, 0 80%, 0 20%);
}

.status-bar {
    height: 4px;
    background: #00ffff;
    margin-top: 8px;
    box-shadow: 0 0 8px #00ffff;
}

.clause strong {
    color: #00ffff; /* That neon cyan from the buttons */
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}