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

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #0a0a0a;
    font-family: 'Courier New', Courier, Monaco, 'Lucida Console', monospace;
}

#webglCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

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

.title-container {
    text-align: center;
}

#overlay h1 {
    color: #ffffff;
    font-size: clamp(1.5rem, 8vw, 8rem);
    font-weight: normal;
    letter-spacing: clamp(0.01em, 0.5vw, 0.05em);
    margin-bottom: clamp(1rem, 3vw, 2rem);
    white-space: nowrap;
    text-shadow:
        0 0 40px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 1.0),
        0 0 60px rgba(255, 255, 255, 0.15);
}

.subtitle {
    color: #ffffff;
    font-size: clamp(0.9rem, 2.5vw, 1.8rem);
    font-weight: normal;
    letter-spacing: 0.08em;
    opacity: 0.95;
    text-shadow:
        0 0 40px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 1.0),
        0 0 50px rgba(255, 255, 255, 0.12);
}

.control-btn {
    display: inline-block;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding: clamp(12px, 2vw, 18px) clamp(24px, 4vw, 40px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    text-decoration: none;
    font-family: 'Courier New', Courier, Monaco, 'Lucida Console', monospace;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    position: relative;
    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.2),
        0 0 40px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    animation: pulse-glow 2s ease-in-out infinite;
}

.btn-text {
    position: relative;
    z-index: 1;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.2);
}

.control-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.4),
        0 0 60px rgba(255, 255, 255, 0.2),
        0 5px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.control-btn:active {
    transform: translateY(-1px) scale(1.02);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(255, 255, 255, 0.2),
            0 0 40px rgba(255, 255, 255, 0.1),
            inset 0 0 20px rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow:
            0 0 30px rgba(255, 255, 255, 0.3),
            0 0 60px rgba(255, 255, 255, 0.2),
            inset 0 0 30px rgba(255, 255, 255, 0.08);
    }
}

.language-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-family: 'Courier New', Courier, Monaco, 'Lucida Console', monospace;
    font-size: 14px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(5px);
    text-decoration: none;
    display: inline-block;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 100;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-text {
    display: none;
    color: #ffffff;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.modal-text.active {
    display: block;
}

.modal-text p {
    margin-bottom: 1em;
}

.modal-text p:last-child {
    margin-bottom: 0;
}

.modal-text h3 {
    color: #ffffff;
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: normal;
    letter-spacing: 0.05em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.3em;
}

.modal-text h3:first-child {
    margin-top: 0;
}

.modal-text .future-note {
    margin-top: 1.5em;
    padding-top: 1.5em;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.7;
    font-style: italic;
}

.future-note a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 2px;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.future-note a:hover {
    text-decoration-color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}
