* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Manrope", Arial, Helvetica, sans-serif;
    color: #f5f7ff;
    background: #050813;
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.beta-video-bg,
.beta-video-overlay {
    position: fixed;
    inset: 0;
}

.beta-video-bg {
    z-index: 0;
    overflow: hidden;
    background: #050813;
}

.beta-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.04) brightness(0.48);
}

.beta-video-overlay {
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 8%, rgba(216, 170, 88, 0.22), transparent 26%),
        radial-gradient(circle at 18% 20%, rgba(0, 153, 255, 0.24), transparent 32%),
        radial-gradient(circle at 82% 16%, rgba(255, 0, 214, 0.22), transparent 30%),
        linear-gradient(180deg, rgba(6, 9, 20, 0.72) 0%, rgba(7, 10, 22, 0.9) 54%, rgba(5, 8, 19, 0.985) 100%);
}

.page-shell {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 36px;
}

.beta-header {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
    margin-bottom: -18px;
}

.beta-logo {
    width: min(100%, 280px);
    object-fit: contain;
    filter:
        drop-shadow(0 20px 34px rgba(0, 0, 0, 0.36))
        drop-shadow(0 0 16px rgba(245, 223, 171, 0.26))
        drop-shadow(0 0 34px rgba(101, 183, 255, 0.18));
}

.eyebrow,
.beta-panel-kicker,
.beta-countdown-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(14, 19, 33, 0.62);
    color: #f1d29d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}

.beta-header h1 {
    margin: 0;
    max-width: 760px;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(30px, 4.6vw, 54px);
    line-height: 1.04;
    color: #fff6e6;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
}

.lead {
    margin: 0;
    max-width: 700px;
    color: #f2d08f;
    font-size: clamp(18px, 2.1vw, 24px);
    font-weight: 700;
    line-height: 1.45;
    text-shadow:
        0 0 18px rgba(216, 170, 88, 0.18),
        0 6px 22px rgba(0, 0, 0, 0.34);
}

.lead-rotating {
    display: grid;
    align-items: start;
    min-height: 108px;
    transition: opacity 180ms ease, transform 180ms ease;
}

.lead-rotating.is-changing {
    opacity: 0.35;
    transform: translateY(6px);
}

.beta-top-character {
    display: grid;
    justify-items: center;
    position: relative;
    z-index: 1;
    margin-top: -42px;
    margin-bottom: -260px;
    pointer-events: none;
}

.beta-top-character-image {
    width: min(100%, 600px);
    height: auto;
    object-fit: contain;
    opacity: 0.96;
    transform: translateY(86px);
    filter:
        drop-shadow(0 26px 38px rgba(0, 0, 0, 0.34))
        drop-shadow(0 0 26px rgba(216, 170, 88, 0.2));
}

.beta-countdown-card,
.beta-panel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(13, 18, 32, 0.84), rgba(8, 12, 21, 0.9)),
        rgba(8, 12, 21, 0.76);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
}

.beta-countdown-card {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
    padding: 22px 24px;
    border-radius: 28px;
}

.beta-countdown-head {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.beta-countdown-head strong {
    color: #fff2d4;
    font-size: 20px;
    font-weight: 800;
}

.beta-countdown-status {
    color: #d3ddef;
    font-size: 13px;
    line-height: 1.55;
}

.beta-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.beta-countdown-item {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 18px 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(7, 11, 18, 0.6);
}

.beta-countdown-item span {
    color: #fff2d4;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1;
}

.beta-countdown-item small {
    color: #afbddc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.beta-main-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.beta-panel {
    height: 100%;
    border-radius: 26px;
    padding: 22px;
}

.beta-panel-head {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.beta-panel-head h2 {
    margin: 0;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(24px, 2.8vw, 34px);
    line-height: 1.08;
    color: #fff6e8;
}

.beta-panel-head p:last-child,
.beta-download-helper {
    margin: 0;
    color: #d3ddef;
    font-size: 13px;
    line-height: 1.6;
}

.alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.55;
}

.alert-success {
    border: 1px solid rgba(91, 215, 155, 0.34);
    background: rgba(18, 67, 44, 0.5);
    color: #dffbe7;
}

.alert-error {
    border: 1px solid rgba(255, 115, 115, 0.34);
    background: rgba(85, 26, 26, 0.52);
    color: #ffe2e2;
}

.beta-form {
    display: grid;
    gap: 16px;
}

.beta-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field {
    display: grid;
    gap: 7px;
    align-content: start;
}

.field-full {
    grid-column: 1 / -1;
}

.field span {
    color: #fff0cd;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.field input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(5, 9, 17, 0.78);
    color: #f5f7ff;
    font: inherit;
    outline: none;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.field input::placeholder {
    color: #8d9ab6;
}

.field input:hover,
.field input:focus {
    border-color: rgba(216, 170, 88, 0.36);
    box-shadow:
        0 0 0 4px rgba(216, 170, 88, 0.08),
        0 14px 28px rgba(0, 0, 0, 0.14);
}

.field-feedback {
    display: grid;
    align-content: start;
    min-height: 36px;
}

.field-helper,
.error-text {
    font-size: 11px;
    line-height: 1.5;
}

.field-helper {
    color: #9fb0cf;
}

.error-text {
    color: #ffb5b5;
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    background:
        linear-gradient(135deg, #c79542 0%, #f2d08f 30%, #8db6ff 100%);
    color: #09111f;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 18px 32px rgba(216, 170, 88, 0.18),
        0 8px 22px rgba(101, 183, 255, 0.14);
    transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.button-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
    box-shadow:
        0 22px 36px rgba(216, 170, 88, 0.22),
        0 10px 24px rgba(101, 183, 255, 0.16);
}

.beta-download-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.beta-download-cta {
    display: grid;
    gap: 12px;
    margin-top: auto;
}

.beta-download-meta {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(7, 11, 18, 0.58);
}

.beta-download-meta span {
    color: #f1d29d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.beta-download-meta strong {
    color: #fff2d4;
    font-size: 18px;
    line-height: 1.4;
}

.beta-download-requirements {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(7, 11, 18, 0.58);
}

.beta-download-requirements span {
    color: #f1d29d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.beta-download-requirements ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.beta-download-requirements li {
    position: relative;
    padding-left: 18px;
    color: #dbe4f7;
    font-size: 13px;
    line-height: 1.55;
}

.beta-download-requirements li::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, #fff0c8, #d8aa58 58%, #815917 100%);
    box-shadow: 0 0 12px rgba(216, 170, 88, 0.22);
}

.button-download {
    margin-top: 0;
}

.discord-float {
    position: fixed;
    top: 50%;
    right: 24px;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    color: #f5f7ff;
    text-decoration: none;
    transform: translateY(-50%);
}

.discord-float-ring,
.discord-float-icon,
.discord-float-badge {
    position: absolute;
}

.discord-float-ring {
    inset: 4px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 50%, rgba(122, 162, 255, 0.34), rgba(122, 162, 255, 0.06) 58%, rgba(122, 162, 255, 0) 74%);
    animation: discordPulse 2.8s ease-in-out infinite;
}

.discord-float-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(31, 41, 78, 0.92), rgba(18, 24, 47, 0.96)),
        rgba(10, 14, 30, 0.92);
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.28),
        0 0 22px rgba(98, 140, 255, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.discord-float-icon::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(118, 146, 255, 0.22), rgba(226, 84, 255, 0.18));
    opacity: 0.88;
}

.discord-float-icon svg {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
}

.discord-float-badge {
    right: 84px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(10, 14, 28, 0.88);
    color: #e8eeff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 180ms ease, transform 180ms ease;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
    white-space: nowrap;
}

.discord-float:hover .discord-float-icon {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(132, 165, 255, 0.34);
    box-shadow:
        0 22px 38px rgba(0, 0, 0, 0.34),
        0 0 28px rgba(98, 140, 255, 0.32),
        0 0 34px rgba(226, 84, 255, 0.16);
}

.discord-float:hover .discord-float-badge {
    opacity: 1;
    transform: translateX(0);
}

@keyframes discordPulse {
    0%,
    100% {
        transform: scale(0.94);
        opacity: 0.65;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@media (max-width: 920px) {
    .beta-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100%, calc(100% - 20px));
        padding: 20px 0 24px;
    }

    .beta-logo {
        width: min(100%, 220px);
    }

    .beta-countdown-card,
    .beta-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .beta-form-grid,
    .beta-countdown-grid {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }

    .field-feedback {
        min-height: auto;
    }

    .discord-float {
        right: 18px;
        width: 66px;
        height: 66px;
    }

    .discord-float-icon {
        width: 56px;
        height: 56px;
    }

    .discord-float-badge {
        display: none;
    }
}

@media (max-width: 540px) {
    .beta-header h1 {
        font-size: 28px;
    }

    .lead {
        font-size: 18px;
    }

    .lead-rotating {
        min-height: 132px;
    }

    .beta-top-character-image {
        width: min(100%, 364px);
        transform: translateY(42px);
    }

    .beta-top-character {
        margin-top: 0;
        margin-bottom: -120px;
    }

    .discord-float {
        top: auto;
        bottom: 18px;
        right: 16px;
        transform: none;
    }

    .beta-countdown-head strong {
        font-size: 17px;
    }
}
