:root {
    --cyan: #00f6ff;
    --pink: #ff00c8;
    --blue: #273cff;
    --yellow: #fff500;
    --darkpink: rgba(255, 0, 200, .45);
    --logo: url("../images/Logo_Square_Centre_Alpha.png");
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100svh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    color: white;
    background: #000;
    font-family: "Orbitron", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background: repeating-linear-gradient(0deg,
            transparent 0 3px,
            rgba(255, 255, 255, .08) 4px,
            transparent 5px);
    z-index: 5;
}

.page {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100svh;
    height: auto;
    width: 100%;
    padding: calc(32px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom));
    isolation: isolate;
}

.page::before,
.page::after {
    content: "";
    position: absolute;
    width: 45vw;
    height: 45vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .16;
    z-index: -1;
}

/* .page::before {
            background: var(--blue);
            top: -20%;
            left: -15%;
        }

        .page::after {
            background: var(--pink);
            right: -15%;
            bottom: -20%;
        } */

.content {
    width: min(850px, 100%);
    text-align: center;
}

.logo {
    position: relative;
    width: min(620px, 92vw);
    margin: -100px auto -30px auto;
    animation: float 4s ease-in-out infinite;
}

.logo img {
    display: block;
    width: 60%;
    margin: 0 auto;
    filter: drop-shadow(0 0 8px var(--cyan)) drop-shadow(0 0 20px var(--darkpink));
}

.logo::before,
.logo::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    aspect-ratio: 1;
    background: var(--logo) center / contain no-repeat;
    pointer-events: none;
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
}

.logo::before {
    opacity: .72;
    z-index: -1;
    filter: sepia(1) saturate(12) hue-rotate(125deg);
    animation: backdrop-glitch-left 2.6s infinite steps(1);
}

.logo::after {
    opacity: .58;
    z-index: -1;
    filter: sepia(1) saturate(12) hue-rotate(285deg);
    animation: backdrop-glitch-right 2.1s infinite steps(1);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: clamp(.7rem, 2vw, .9rem);
    font-weight: 400;
    letter-spacing: .45em;
    text-transform: uppercase;
    text-shadow: 0 0 12px var(--cyan);
}

h2 {
    position: relative;
    margin: 0;
    color: white;
    font-size: clamp(2rem, 7vw, 5rem);
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
    text-shadow:
        3px 0 var(--pink),
        -3px 0 var(--cyan),
        0 0 25px rgba(255, 255, 255, .45);
}

h2::before,
h2::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: transparent;
}

h2::before {
    color: var(--pink);
    mix-blend-mode: screen;
    clip-path: inset(0 0 100% 0);
    animation: title-glitch-left 2.8s infinite steps(1);
}

h2::after {
    color: var(--cyan);
    mix-blend-mode: screen;
    clip-path: inset(0 0 100% 0);
    animation: title-glitch-right 2.8s infinite steps(1);
}

.subtitle {
    max-width: 560px;
    margin: 22px auto 34px;
    color: #c8c8c8;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

.notify {
    display: flex;
    max-width: 470px;
    margin: auto;
    padding: 5px;
    border: 1px solid var(--cyan);
    background: rgba(0, 0, 0, .65);
    box-shadow: 0 0 18px rgba(0, 246, 255, .3);
}

.notify input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 14px;
    color: white;
    background: transparent;
    font-family: Arial, sans-serif;
}

.notify button {
    border: 0;
    padding: 0 20px;
    color: #000;
    background: var(--cyan);
    cursor: pointer;
    font-family: inherit;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: .2s;
}

.notify button:hover {
    background: var(--pink);
    box-shadow: 0 0 18px var(--pink);
}

.disclaimer {
    max-width: 470px;
    margin: 8px auto 0;
    color: #777;
    font-family: Arial, sans-serif;
    font-size: .62rem;
    line-height: 1.35;
    text-align: center;
}

.disclaimer a {
    color: #999;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 24px auto 0;
}

.social-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(0, 246, 255, .8);
    color: var(--cyan);
    background: rgba(0, 0, 0, .5);
    box-shadow: 0 0 12px rgba(0, 246, 255, .2);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
    isolation: isolate;
}

.social-icon svg {
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform .2s ease, filter .2s ease;
}

.social-icon:hover,
.social-icon:focus-visible {
    transform: translateY(-3px);
    color: white;
    border-color: var(--yellow);
    box-shadow: 0 0 22px rgba(255, 245, 0, .28), 0 0 16px rgba(255, 0, 200, .18);
}

.social-icon:hover svg,
.social-icon:focus-visible svg {
    transform: scale(1.08);
    filter: drop-shadow(0 0 8px var(--cyan)) drop-shadow(0 0 14px rgba(255, 0, 200, .3));
}

.subscriber-count {
    margin: 16px 0 0;
    color: var(--cyan);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.subscriber-count span {
    color: var(--yellow);
    font-size: .9rem;
    font-weight: 900;
}

iframe#hidden_iframe {
    display: none;
}

.status {
    min-height: 20px;
    margin-top: 14px;
    color: var(--yellow);
    font-size: .7rem;
    letter-spacing: .12em;
}

.status:empty {
    display: none;
}

.status.is-loading {
    display: block;
    width: min(280px, 80vw);
    height: 6px;
    margin: 18px auto 0;
    border: .5px solid var(--yellow);
    background: rgba(255, 245, 0, .12);
    box-shadow: 0 0 12px rgba(255, 245, 0, .35);
    overflow: hidden;
}

.status.is-loading::before {
    content: "";
    display: block;
    width: 38%;
    height: 100%;
    background: var(--yellow);
    box-shadow: 0 0 10px var(--yellow);
    animation: register-progress 1.15s ease-in-out infinite;
}

.footer {
    position: fixed;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    right: calc(20px + env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
    left: calc(20px + env(safe-area-inset-left));
    color: #666;
    font-family: Arial, sans-serif;
    font-size: .7rem;
    letter-spacing: .15em;
    text-align: center;
    text-transform: uppercase;
}

.footer a {
    color: #888;
    font-size: .6rem;
    letter-spacing: inherit;
    line-height: inherit;
    text-transform: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease, text-shadow .2s ease;
}

.footer a:hover,
.footer a:focus-visible {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 246, 255, .6);
}

@keyframes float {
    50% {
        transform: translateY(-8px);
    }
}

@keyframes backdrop-glitch-left {

    0%,
    88%,
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(-50%, -50%);
    }

    90% {
        clip-path: inset(0 0 58% 0);
        transform: translate(calc(-50% - 10px), calc(-50% + 4px));
    }

    91% {
        clip-path: inset(42% 0 0 0);
        transform: translate(calc(-50% - 4px), calc(-50% - 2px));
    }

    93% {
        clip-path: inset(18% 0 28% 0);
        transform: translate(calc(-50% - 8px), calc(-50% + 2px));
    }

    96% {
        clip-path: inset(0 0 0 0);
        transform: translate(-50%, -50%);
    }
}

@keyframes backdrop-glitch-right {

    0%,
    82%,
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(-50%, -50%);
    }

    84% {
        clip-path: inset(58% 0 0 0);
        transform: translate(calc(-50% + 10px), calc(-50% + 2px));
    }

    87% {
        clip-path: inset(0 0 40% 0);
        transform: translate(calc(-50% + 4px), calc(-50% - 5px));
    }

    90% {
        clip-path: inset(20% 0 18% 0);
        transform: translate(calc(-50% + 8px), calc(-50% + 1px));
    }

    94% {
        clip-path: inset(0 0 0 0);
        transform: translate(-50%, -50%);
    }
}

@keyframes title-glitch-left {

    0%,
    90%,
    100% {
        clip-path: inset(0 0 100% 0);
        transform: translate(0);
    }

    90.5% {
        clip-path: inset(0 0 45% 0);
        transform: translate(-18px, 0);
    }

    91% {
        clip-path: inset(50% 0 0 0);
        transform: translate(14px, 0);
    }

    91.5% {
        clip-path: inset(0 0 100% 0);
    }

    95%,
    95.5% {
        clip-path: inset(20% 0 30% 0);
        transform: translate(-20px, 0);
    }

    96% {
        clip-path: inset(0 0 100% 0);
    }
}

@keyframes title-glitch-right {

    0%,
    90%,
    100% {
        clip-path: inset(0 0 100% 0);
        transform: translate(0);
    }

    90.5% {
        clip-path: inset(50% 0 0 0);
        transform: translate(18px, 0);
    }

    91% {
        clip-path: inset(0 0 45% 0);
        transform: translate(-14px, 0);
    }

    91.5% {
        clip-path: inset(0 0 100% 0);
    }

    95%,
    95.5% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(20px, 0);
    }

    96% {
        clip-path: inset(0 0 100% 0);
    }
}

@keyframes register-progress {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(285%);
    }
}

@media (max-width: 520px) {
    .notify {
        flex-direction: column;
        gap: 5px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .notify input,
    .notify button {
        font-size: 16px;
        min-height: 48px;
        border: 1px solid var(--cyan);
    }

    .notify button {
        font-size: 16px;
        padding: 12px;
    }
}

@media (max-height: 800px) {
    .page {
        padding: calc(18px + env(safe-area-inset-top)) 20px calc(18px + env(safe-area-inset-bottom));
    }

    .logo {
        width: min(440px, 68vw);
        margin-top: -28px;
        margin-bottom: -18px;
    }

    h2 {
        font-size: clamp(2rem, 5vw, 3.8rem);
    }

    .eyebrow {
        letter-spacing: .28em;
    }

    .subtitle {
        margin: 14px auto 22px;
        font-size: .92rem;
        line-height: 1.5;
    }

    .social-links {
        margin-top: 18px;
        gap: 10px;
    }

    .social-icon {
        width: 46px;
        height: 46px;
    }

    .footer {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        margin-top: 18px;
    }
}

@media (max-height: 680px) {
    .page {
        padding-bottom: 20px;
    }

    .logo {
        width: min(360px, 62vw);
        margin-top: -18px;
        margin-bottom: -10px;
    }

    .eyebrow {
        margin-bottom: 8px;
        letter-spacing: .22em;
    }

    h2 {
        font-size: clamp(1.8rem, 4vw, 3rem);
    }

    .subtitle {
        margin: 12px auto 18px;
        max-width: 500px;
        font-size: .82rem;
    }

    .notify {
        max-width: 420px;
    }

    .social-links {
        margin-top: 16px;
    }

    .social-icon {
        width: 42px;
        height: 42px;
    }
}