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

body {
    overflow: hidden;
    background: #000000;
    font-family: 'IBM Plex Mono', monospace;
    color: #aaccff;
    cursor: crosshair;
    -webkit-user-select: none;
    user-select: none;
}

#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#title-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    animation: fadeInTitle 3s ease-out 0.5s forwards;
}

#main-title {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 100;
    font-size: clamp(3rem, 12vw, 8rem);
    color: #cc99ff;
    letter-spacing: 0.3em;
    text-shadow:
        0 0 20px rgba(204, 153, 255, 0.3),
        0 0 60px rgba(204, 153, 255, 0.1),
        0 0 100px rgba(204, 153, 255, 0.05);
    animation: pulse 6s ease-in-out infinite;
}

#tagline {
    font-weight: 200;
    font-size: clamp(0.6rem, 2vw, 0.9rem);
    color: rgba(170, 204, 255, 0.4);
    letter-spacing: 0.15em;
    margin-top: 1rem;
    font-style: italic;
}

@keyframes fadeInTitle {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

#void-counter {
    position: fixed;
    bottom: 2.5rem;
    left: 1.5rem;
    z-index: 20;
    font-size: 0.7rem;
    font-weight: 300;
    color: rgba(170, 204, 255, 0.35);
    letter-spacing: 0.05em;
    transition: color 0.6s ease;
}

#void-counter:hover {
    color: rgba(170, 204, 255, 0.7);
}

#counter-value {
    color: rgba(204, 153, 255, 0.5);
    font-weight: 400;
    transition: color 0.3s ease;
}

#info-btn {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 30;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(170, 204, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(170, 204, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#info-btn:hover {
    border-color: rgba(204, 153, 255, 0.4);
    color: rgba(204, 153, 255, 0.8);
    box-shadow: 0 0 15px rgba(204, 153, 255, 0.1);
}

#sound-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 30;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(170, 204, 255, 0.25);
    cursor: pointer;
    transition: color 0.4s ease;
}

#sound-btn:hover {
    color: rgba(204, 153, 255, 0.8);
}

#sound-btn.active {
    color: rgba(204, 153, 255, 0.6);
}

#info-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.5s ease;
}

#info-panel.hidden {
    opacity: 0;
    pointer-events: none;
}

#info-content {
    max-width: 480px;
    padding: 2.5rem;
    background: rgba(10, 0, 20, 0.8);
    border: 1px solid rgba(204, 153, 255, 0.12);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: 1rem;
}

#info-content h2 {
    font-weight: 200;
    font-size: 1.4rem;
    color: rgba(204, 153, 255, 0.8);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

#info-content h3 {
    font-weight: 300;
    font-size: 0.85rem;
    color: rgba(170, 204, 255, 0.6);
    margin: 1.2rem 0 0.6rem;
    letter-spacing: 0.05em;
}

#info-content p {
    font-weight: 300;
    font-size: 0.8rem;
    line-height: 1.7;
    color: rgba(170, 204, 255, 0.5);
    margin-bottom: 0.8rem;
}

#info-content code {
    background: rgba(204, 153, 255, 0.1);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    color: rgba(204, 153, 255, 0.7);
    font-family: 'IBM Plex Mono', monospace;
}

#info-content ul {
    list-style: none;
    padding: 0;
}

#info-content li {
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(170, 204, 255, 0.45);
    line-height: 1.8;
    padding-left: 1rem;
    position: relative;
}

#info-content li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: rgba(204, 153, 255, 0.4);
}

#info-content li strong {
    color: rgba(170, 204, 255, 0.65);
    font-weight: 400;
}

#info-content .dim {
    font-size: 0.65rem;
    color: rgba(170, 204, 255, 0.2);
    margin-top: 1.5rem;
}

#close-info {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(204, 153, 255, 0.2);
    border-radius: 20px;
    color: rgba(204, 153, 255, 0.5);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

#close-info:hover {
    border-color: rgba(204, 153, 255, 0.5);
    color: rgba(204, 153, 255, 0.9);
    box-shadow: 0 0 20px rgba(204, 153, 255, 0.1);
}

#toast-container {
    position: fixed;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    padding: 0.7rem 1.5rem;
    background: rgba(10, 0, 20, 0.85);
    border: 1px solid rgba(204, 153, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(204, 153, 255, 0.8);
    letter-spacing: 0.03em;
    white-space: nowrap;
    animation: toastIn 0.5s ease-out forwards, toastOut 0.5s ease-in 3.5s forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

#quote-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    pointer-events: none;
}

.floating-quote {
    max-width: 400px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 200;
    font-style: italic;
    color: rgba(204, 153, 255, 0.6);
    line-height: 1.8;
    padding: 0 2rem;
    animation: quoteFade 5s ease-in-out forwards;
}

.quote-author {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.65rem;
    font-style: normal;
    font-weight: 300;
    color: rgba(170, 204, 255, 0.3);
    letter-spacing: 0.1em;
}

@keyframes quoteFade {
    0% { opacity: 0; transform: scale(0.95); }
    15% { opacity: 1; transform: scale(1); }
    75% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.02); }
}

#footer {
    position: fixed;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    font-size: 0.55rem;
    font-weight: 300;
    color: rgba(170, 204, 255, 0.12);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

#footer a {
    color: rgba(204, 153, 255, 0.15);
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: rgba(204, 153, 255, 0.5);
}

/* Undefined flash effect */
.void-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 200, 100, 0.15), transparent 70%);
    z-index: 5;
    pointer-events: none;
    animation: voidFlash 3s ease-in-out forwards;
}

@keyframes voidFlash {
    0% { opacity: 0; }
    30% { opacity: 1; }
    100% { opacity: 0; }
}

/* Galaxy */
.mini-galaxy {
    position: fixed;
    pointer-events: none;
    z-index: 8;
    animation: galaxySpin 10s linear infinite, galaxyFade 8s ease-in 2s forwards;
}

@keyframes galaxySpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes galaxyFade {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (max-width: 600px) {
    #main-title {
        letter-spacing: 0.15em;
    }
    #info-content {
        padding: 1.5rem;
    }
}