:root {
    --ts-bg: #f8f8fc;
    --ts-surface: #ffffff;
    --ts-ink: #20213a;
    --ts-grey: #6b6d86;
    --ts-violet: #5b5bd6;
    --ts-violet-2: #4747b8;
    --ts-lilac: #eeeefb;
    --ts-hair: #e3e3f0;
    --ts-font: "Segoe UI", -apple-system, Roboto, "Noto Sans", sans-serif;
}

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

body {
    margin: 0;
    background: var(--ts-bg);
    color: var(--ts-ink);
    font-family: var(--ts-font);
    font-size: 16px;
    line-height: 1.6;
}

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

.ts-header {
    display: flex;
    justify-content: center;
    padding: 18px 16px;
    background: var(--ts-lilac);
    border-bottom: 1px solid var(--ts-hair);
}

.ts-header__title {
    color: var(--ts-violet-2);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .06em;
    text-decoration: none;
    text-align: center;
}

.ts-header__title:hover {
    color: var(--ts-ink);
}

.ts-hero {
    max-width: 800px;
    margin: 38px auto 26px;
    padding: 0 16px;
    text-align: center;
    font-size: clamp(24px, 3.8vw, 36px);
    font-weight: 600;
    line-height: 1.26;
}

.ts-hero__tint {
    color: var(--ts-violet);
}

#ts-zone {
    padding: 0 16px;
}

#ts-shell {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    border: 1px solid var(--ts-hair);
}

#ts-movie {
    display: block;
    width: 100%;
    height: auto;
}

#ts-cue {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(180deg, rgba(32, 33, 58, .05), rgba(32, 33, 58, .45));
    cursor: pointer;
    transition: opacity .25s ease, visibility .25s ease;
}

.ts-cue__ball {
    position: relative;
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ts-violet);
    border-radius: 50%;
}

.ts-cue__halo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(91, 91, 214, .45);
    animation: ts-pulse 2s ease-out infinite;
}

.ts-cue__halo--two {
    animation-delay: 1s;
}

@keyframes ts-pulse {
    from {
        transform: scale(1);
        opacity: .8;
    }
    to {
        transform: scale(1.7);
        opacity: 0;
    }
}

.ts-cue__mark {
    position: relative;
    width: 0;
    height: 0;
    margin-left: 5px;
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #fff;
}

.ts-cue__txt {
    display: flex;
    flex-direction: column;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}

.ts-cue__big {
    font-size: 19px;
    font-weight: 700;
}

.ts-cue__small {
    font-size: 13px;
    opacity: .9;
}

.ts-cue-off {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#ts-grow {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 20;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 10px;
    backdrop-filter: blur(6px);
    cursor: pointer;
}

#ts-grow:hover {
    background: rgba(255, 255, 255, .35);
}

#ts-grow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#ts-shell:fullscreen,
#ts-shell:-webkit-full-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
}

#ts-shell:fullscreen #ts-movie,
#ts-shell:-webkit-full-screen #ts-movie {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ts-buy {
    padding: 48px 16px 10px;
}

.ts-form {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    padding: 30px 28px 26px;
    background: var(--ts-surface);
    border: 1px solid var(--ts-hair);
    border-radius: 16px;
    box-shadow: 0 20px 44px -34px rgba(32, 33, 58, .45);
}

.ts-form__heading {
    margin: 0 0 18px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
}

.ts-form__frame {
    margin: 0 0 14px;
    padding: 16px;
    background: radial-gradient(circle at 50% 40%, var(--ts-lilac), var(--ts-surface) 75%);
    border-radius: 12px;
}

.ts-form__frame img {
    width: auto;
    max-height: 280px;
    margin: 0 auto;
    object-fit: contain;
}

.ts-form__stock {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.ts-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    font-size: 13px;
    color: var(--ts-violet-2);
    background: var(--ts-lilac);
    border-radius: 999px;
}

.ts-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fb07a;
}

.ts-form__trap {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.ts-form__set {
    margin-bottom: 14px;
}

.ts-form__lab {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ts-grey);
}

.ts-form__inp {
    width: 100%;
    padding: 13px 15px;
    font: inherit;
    color: var(--ts-ink);
    background: var(--ts-surface);
    border: 1px solid var(--ts-hair);
    border-radius: 10px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ts-form__inp:focus {
    border-color: var(--ts-violet);
    box-shadow: 0 0 0 3px var(--ts-lilac);
}

.ts-form__inp--num {
    letter-spacing: .03em;
}

.ts-form__cta {
    width: 100%;
    margin-top: 6px;
    padding: 15px;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: var(--ts-violet);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s ease;
}

.ts-form__cta:hover {
    background: var(--ts-violet-2);
}

.ts-form__info {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--ts-grey);
}

.ts-footer {
    margin-top: 48px;
    background: var(--ts-surface);
    border-top: 1px solid var(--ts-hair);
}

.ts-footer__wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 26px 16px 32px;
    text-align: center;
}

.ts-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 14px;
}

.ts-footer__nav a {
    font-size: 14px;
    color: var(--ts-violet-2);
    text-decoration: none;
}

.ts-footer__nav a:hover {
    text-decoration: underline;
}

.ts-footer__copy {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--ts-grey);
}

.ts-footer__legal {
    margin: 0;
    font-size: 12px;
    line-height: 1.65;
    color: var(--ts-grey);
}

@media (max-width: 600px) {
    #ts-cue {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .ts-cue__ball {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }
    .ts-cue__small {
        display: none;
    }
    .ts-form {
        padding: 24px 16px 20px;
    }
    .ts-form__frame img {
        max-height: 220px;
    }
}
