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

html,
body {
    width: 100%;
    background: #000;
    overflow-x: hidden;
}

body {
    display: flex;
    justify-content: center;
}

.stage {
    position: relative;
    width: 100%;
    max-width: 500px;
    container-type: inline-size;
    container-name: stage;
}

.stage__video {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    background: #000;
}

.stage__upper {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.panel {
    width: 92%;
    margin: 0 auto 4%;
    padding: 1.8cqw 2cqw 2.6cqw;
    border: 0.45cqw solid #e6c36a;
    border-radius: 3.4cqw;
    background: linear-gradient(#1c0e09, #0c0604);
    box-shadow:
        inset 0 0 0 0.15cqw rgba(255, 236, 180, 0.7),
        0 0 1.4cqw rgba(230, 195, 106, 0.28);
}

.panel__bonus {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 648 / 370;
    border-radius: 1.6cqw;
}

.countdown {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.countdown__num {
    position: absolute;
    top: 42.8%;
    height: 29.2%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff4c8;
    font-family: Impact, "Arial Black", "Segoe UI", sans-serif;
    font-size: 7.6cqw;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-shadow: 0 0.25cqw 0.4cqw rgba(0, 0, 0, 0.65);
}

.countdown__num:nth-child(1) {
    left: 15%;
    width: 22.4%;
}

.countdown__num:nth-child(2) {
    left: 40.6%;
    width: 21.9%;
}

.countdown__num:nth-child(3) {
    left: 65.9%;
    width: 21.9%;
}

.stage__lower {
    width: calc(100% * 736 / 648);
    max-width: none;
    height: auto;
    margin-left: calc(100% * -44 / 648);
    margin-top: calc(100% * -38 / 648);
}

.promo {
    position: absolute;
    left: 50%;
    top: 25%;
    width: 86%;
    aspect-ratio: 16 / 9;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.promo__text {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: translateX(18%);
    clip-path: inset(0 0 0 100%);
    will-change: transform, opacity, clip-path;
}

.promo__text.is-enter {
    animation: slice-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.promo__text.is-hold {
    opacity: 1;
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
}

.promo__text.is-exit {
    animation: slice-out 0.45s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes slice-in {
    0% {
        opacity: 0;
        transform: translateX(18%);
        clip-path: inset(0 0 0 100%);
    }
    35% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
    }
}

.reg-form {
    --unit: 1cqw;
    position: relative;
    width: 100%;
    margin-top: 2cqw;
    display: flex;
    flex-direction: column;
    gap: 2.4cqw;
    padding: 3.2cqw;
    border: 0.15cqw solid #374151;
    border-radius: 1.6cqw;
    background: #111827;
    box-shadow: 0 2.5cqw 5cqw -1.2cqw rgba(0, 0, 0, 0.55);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: max(14px, 1.8cqw);
    color: #fff;
}

.field {
    display: block;
}

.field__label {
    display: block;
    margin-bottom: max(6px, 0.8cqw);
    color: #d1d5db;
    font-size: max(13px, 1.7cqw);
    font-weight: 500;
}

.field__optional {
    color: #6b7280;
    font-weight: 400;
}

.field__control {
    position: relative;
}

.field__icon {
    position: absolute;
    top: 50%;
    left: max(10px, 1.2cqw);
    width: max(18px, 2.3cqw);
    height: max(18px, 2.3cqw);
    color: #9ca3af;
    transform: translateY(-50%);
    pointer-events: none;
}

.field__input {
    display: block;
    width: 100%;
    padding: max(11px, 1.6cqw) max(14px, 1.8cqw) max(11px, 1.6cqw) max(36px, 4.6cqw);
    border: 0.15cqw solid #4b5563;
    border-radius: max(6px, 0.8cqw);
    background: #1f2937;
    color: #fff;
    font: inherit;
    font-size: max(15px, 1.9cqw);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.field__input::placeholder {
    color: #9ca3af;
}

.field__input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 0.2cqw #facc15;
}

.field__input--password {
    padding-right: max(40px, 5.4cqw);
}

.field__toggle {
    position: absolute;
    top: 50%;
    right: max(10px, 1.2cqw);
    display: flex;
    padding: 0;
    border: 0;
    background: none;
    color: #9ca3af;
    transform: translateY(-50%);
    cursor: pointer;
}

.field__toggle:hover {
    color: #d1d5db;
}

.field__toggle-icon {
    width: max(18px, 2.3cqw);
    height: max(18px, 2.3cqw);
}

.field__hint {
    display: block;
    margin-top: 0.4cqw;
    color: #9ca3af;
    font-size: max(12px, 1.45cqw);
}

.field__error {
    display: none;
    margin-top: 0.4cqw;
    color: #f87171;
    font-size: max(12px, 1.45cqw);
}

.field__error.is-visible {
    display: block;
}

.field__input.is-invalid {
    border-color: #f87171;
}

.form-status {
    min-height: 1.2em;
    font-size: max(13px, 1.55cqw);
    line-height: 1.4;
}

.form-status.is-error {
    color: #f87171;
}

.form-status.is-success {
    color: #4ade80;
}

.captcha {
    display: flex;
    align-items: center;
    gap: 1.2cqw;
}

.captcha__box {
    flex: 0 0 auto;
    display: flex;
    padding: 0.8cqw;
    border: 0.15cqw solid #4b5563;
    border-radius: 0.8cqw;
    background: #1f2937;
    cursor: pointer;
}

.captcha__box:hover {
    background: #273244;
}

.captcha__image {
    display: block;
    width: max(72px, 10cqw);
    height: max(24px, 3.4cqw);
    object-fit: contain;
    border-radius: 0.4cqw;
    background: #c0c0c0;
}

.captcha__image:not([src]),
.captcha__image[src=""] {
    opacity: 0.35;
}

.captcha__input {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 1.2cqw;
}

.register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8cqw;
    width: 100%;
    padding: max(12px, 1.8cqw);
    border: 0;
    border-radius: max(6px, 0.8cqw);
    background: linear-gradient(to right, #facc15, #eab308);
    color: #111827;
    font: inherit;
    font-size: max(16px, 2.1cqw);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.register-btn:hover:not(:disabled) {
    background: linear-gradient(to right, #eab308, #ca8a04);
    transform: scale(1.05);
}

.register-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.register-btn:active {
    transform: scale(1);
}

.register-btn__icon {
    width: max(18px, 2.4cqw);
    height: max(18px, 2.4cqw);
}

.bonus {
    margin-top: 0.4cqw;
    padding: 1.6cqw;
    border: 0.15cqw solid rgba(250, 204, 21, 0.3);
    border-radius: 0.8cqw;
    background: linear-gradient(to right, rgba(250, 204, 21, 0.1), rgba(234, 179, 8, 0.1));
    text-align: center;
}

.bonus__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8cqw;
    margin-bottom: 0.8cqw;
    color: #facc15;
    font-size: max(15px, 1.9cqw);
    font-weight: 700;
}

.bonus__icon {
    width: 2cqw;
    height: 2cqw;
}

.bonus__text {
    color: #d1d5db;
    font-size: max(13px, 1.7cqw);
    line-height: 1.4;
}

@container stage (max-width: 480px) {
    .reg-form {
        width: 100%;
        gap: 1.8cqw;
        padding: 2.2cqw 2.6cqw;
        border-radius: 1.4cqw;
        font-size: 3.3cqw;
    }

    .field__label {
        margin-bottom: 0.6cqw;
        font-size: 3cqw;
    }

    .field__icon {
        left: 2cqw;
        width: 3.8cqw;
        height: 3.8cqw;
    }

    .field__input {
        padding: 2cqw 2.2cqw 2cqw 7.2cqw;
        border-radius: 0.8cqw;
        font-size: 3.3cqw;
    }

    .field__input--password {
        padding-right: 6.8cqw;
    }

    .field__toggle {
        right: 2cqw;
    }

    .field__toggle-icon {
        width: 3.8cqw;
        height: 3.8cqw;
    }

    .field__hint,
    .field__error,
    .form-status {
        font-size: 2.6cqw;
    }

    .captcha {
        gap: 1.2cqw;
    }

    .captcha__box {
        padding: 0.6cqw;
    }

    .captcha__image {
        width: 16cqw;
        height: 5.4cqw;
    }

    .captcha__input {
        padding-left: 2cqw;
    }

    .register-btn {
        gap: 1cqw;
        padding: 2.1cqw;
        font-size: 3.5cqw;
    }

    .register-btn__icon {
        width: 3.6cqw;
        height: 3.6cqw;
    }

    .bonus {
        padding: 1.4cqw;
    }

    .bonus__title {
        margin-bottom: 0.5cqw;
        font-size: 3.1cqw;
    }

    .bonus__icon {
        width: 3.2cqw;
        height: 3.2cqw;
    }

    .bonus__text {
        font-size: 2.7cqw;
    }
}

@container stage (max-width: 360px) {
    .reg-form {
        width: 100%;
        gap: 1.5cqw;
        padding: 2cqw;
    }

    .captcha {
        flex-wrap: nowrap;
    }
}

@keyframes slice-out {
    0% {
        opacity: 1;
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
    }
    100% {
        opacity: 0.35;
        transform: translateX(-28%);
        clip-path: inset(0 100% 0 0);
    }
}
