/* Base Dark Space Theme */
body {
    background-color: #05070a;
    font-family: 'Courier New', Courier, monospace;
    color: #e0e0e0;
    margin: 0;
    padding: 20px;
    text-align: center;
    overflow-x: hidden;
    transition: background-color 0.2s ease;
}

header {
    margin-bottom: 20px;
}

h1 {
    color: #66fcf1;
    text-shadow: 0 0 15px rgba(102, 252, 241, 0.6);
    letter-spacing: 3px;
}

/* --- SCREEN 1: INTRO SCREEN OVERLAY --- */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #05070a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.6s ease;
}

.intro-content {
    max-width: 600px;
    padding: 40px;
    border: 1px solid rgba(102, 252, 241, 0.2);
    border-radius: 20px;
    background: rgba(31, 40, 51, 0.3);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

.intro-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.intro-content p {
    color: #45a29e;
    font-style: italic;
    margin-bottom: 30px;
}

/* Glow Enter Button */
.enter-btn {
    background-color: transparent;
    color: #66fcf1;
    border: 2px solid #66fcf1;
    padding: 15px 30px;
    font-size: 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.2);
    transition: all 0.3s ease;
}

.enter-btn:hover {
    background-color: #66fcf1;
    color: #05070a;
    box-shadow: 0 0 25px #66fcf1;
}

/* --- SCREEN 2: MAIN GATEWAY SYSTEM --- */
.hidden {
    display: none;
}

.main-interface {
    animation: fadeIn 1s ease forwards;
}

.portal-universe {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 75vh;
}

.clock-system {
    position: relative;
    width: 500px;
    height: 500px;
    border: 2px dashed rgba(69, 162, 158, 0.15);
    border-radius: 50%;
}

/* Individual Portal Circles */
.portal-node {
    position: absolute;
    width: 90px;
    height: 90px;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.portal-node img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #45a29e;
    box-shadow: 0 0 10px rgba(69, 162, 158, 0.3);
    animation: cosmic-spin 30s linear infinite;
}

/* Bright Light Glow when hovering your mouse around nodes */
.portal-node:hover {
    filter: brightness(1.4) drop-shadow(0 0 18px #66fcf1);
    transform: scale(1.1);
}

/* Center Configuration */
.center-node {
    top: 50%;
    left: 50%;
    width: 145px;
    height: 145px;
    transform: translate(-50%, -50%);
    z-index: 10;
}
.center-node img {
    border-color: #66fcf1;
    box-shadow: 0 0 25px rgba(102, 252, 241, 0.4);
    animation: cosmic-spin-reverse 45s linear infinite;
}
.center-node:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.node-label {
    display: block;
    font-size: 0.8rem;
    color: #66fcf1;
    margin-top: 5px;
}

/* Outer Ring Coordinates */
.pos-12   { top: 0%;    left: 50%;  transform: translate(-50%, 0); }
.pos-1-30 { top: 15%;   left: 85%;  transform: translate(-50%, -50%); }
.pos-3    { top: 50%;   left: 100%; transform: translate(-100%, -50%); }
.pos-4-30 { top: 85%;   left: 85%;  transform: translate(-50%, -50%); }
.pos-6    { top: 100%;  left: 50%;  transform: translate(-50%, -100%); }
.pos-7-30 { top: 85%;   left: 15%;  transform: translate(-50%, -50%); }
.pos-9    { top: 50%;   left: 0%;   transform: translate(0, -50%); }
.pos-10-30{ top: 15%;   left: 15%;  transform: translate(-50%, -50%); }

/* Mute Control Button */
.audio-control-btn {
    background-color: transparent;
    color: #45a29e;
    border: 1px solid #45a29e;
    padding: 6px 14px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
}
.audio-control-btn:hover {
    color: #66fcf1;
    border-color: #66fcf1;
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
}

/* Animations */
@keyframes cosmic-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes cosmic-spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
