:root {
    --primary-yellow: #FFC425;
    --primary-black: #1C1C1E;
    --primary-black-rgb: 28, 28, 30;
    --white: #F2F2F2;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Bebas Neue", system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
    background: #000;
    color: var(--primary-yellow);
    position: relative;
}

#webGLApp {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    display: block;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
    pointer-events: none;
}

.page-shell {
    position: fixed;
    inset: 0;
    z-index: 2;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.back {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 3;
    color: var(--primary-yellow);
    text-decoration: none;
    font-size: 22px;
}

.back:hover {
    text-decoration: underline;
}

.wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 90px 24px 48px;
}

header {
    text-align: center;
    margin-bottom: 28px;
}

h1 {
    margin: 0;
    font-size: 40px;
    color: var(--primary-yellow);
    position: relative;
    display: inline-block;
    padding-bottom: 0px;
}

h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background: var(--primary-yellow);
    animation: underlineGrow .8s ease-out .1s forwards;
}

@keyframes underlineGrow {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.panel {
    background: rgba(var(--primary-black-rgb), 0.6);
    border-radius: 20px;
    padding: 22px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    backdrop-filter: blur(8px);
    margin-bottom: 18px;
}

.panel h2 {
    margin: 0 0 12px;
    color: var(--primary-yellow);
    font-size: 24px;
}

.panel p,
footer p {
    margin: 0;
    font-family: "Inter", system-ui, Arial, sans-serif;
    color: var(--white);
    line-height: 1.65;
    font-size: 16px;
}

.mail-link {
    position: relative;
    color: var(--primary-yellow);
    text-decoration: none;
}

.mail-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: width .3s ease;
}

.mail-link:hover::after {
    width: 100%;
}

footer {
    text-align: center;
    margin-top: 28px;
    padding-bottom: 24px;
}

footer p {
    color: rgba(242, 242, 242, 0.8);
}

@media (max-width:640px) {
    .back {
        top: 16px;
        left: 16px;
        font-size: 20px;
    }

    .wrap {
        padding: 72px 16px 36px;
    }

    h1 {
        font-size: 32px;
    }

    .panel {
        padding: 18px 16px;
        border-radius: 16px;
        margin-bottom: 14px;
    }

    .panel h2 {
        font-size: 21px;
    }

    .panel p,
    footer p {
        font-size: 15px;
        line-height: 1.6;
    }
}