:root {
    --primary: #9a1f40;
    --primary-dark: #6d102a;
    --accent-wine: #b02a4f;
    --accent-rose: #7d1e4a;
    --accent-gold: #c9a24d;

    --gold: #d4af37;
    --gold-light: #f4e3a1;
    --bg: #faf8f9;
    --text-dark: #2b2b2b;
    --logo-size: 150px;

    /*--bg: #0b1220;*/
    --card: #0f1724;
    --accent1: #ff7a7a;
    --accent2: #ffd76b
}

.prizeResult {
    /*left:50%;*/
    opacity: 0;
    position: absolute;
    z-index: 20;
    padding: 18px 28px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    background-size: 200% 100%;
    color: #071022;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.5);
    max-width: 92vw;
    text-align: center;
    /*white-space: nowrap;*/
    overflow: hidden;
    /*text-overflow: ellipsis;*/
    animation: aurora 9s ease-in-out infinite alternate;
    scale: 0.3;
    /*width: 200px*/
    display: inline-flex
}

@keyframes aurora {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0% 50%
    }
}

@keyframes gradShift {
    from {
        background-position: 0% 50%
    }
    to {
        background-position: 100% 50%
    }
}

canvas {
    z-index: 0;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.3;
    mix-blend-mode: screen;
}

.fullSize {
    min-height: 100vh;
    min-width: 100vw;
}

.back2 {
    background-image: radial-gradient(at 93.43262763638768% 87.51378097660415%, hsla(343.9024390243902, 66.48648648648648%, 36.27450980392157%, 1) 0%, hsla(343.9024390243902, 66.48648648648648%, 36.27450980392157%, 0) 100%), radial-gradient(at 10.579127334734384% 66.95222805087953%, hsla(343.2258064516129, 74.4%, 24.509803921568626%, 1) 0%, hsla(343.2258064516129, 74.4%, 24.509803921568626%, 0) 100%), radial-gradient(at 22.35670673103627% 12.096173081993534%, hsla(30.142180094786728, 98.13953488372094%, 42.15686274509804%, 1) 0%, hsla(30.142180094786728, 98.13953488372094%, 42.15686274509804%, 0) 100%), radial-gradient(at 76.66070871767266% 3.334214850793016%, hsla(343.9024390243902, 66.48648648648648%, 36.27450980392157%, 1) 0%, hsla(343.9024390243902, 66.48648648648648%, 36.27450980392157%, 0) 100%), radial-gradient(at 28.832245965656522% 6.090657850046921%, hsla(343.2258064516129, 74.4%, 24.509803921568626%, 1) 0%, hsla(343.2258064516129, 74.4%, 24.509803921568626%, 0) 100%), radial-gradient(at 28.08741984463069% 91.8250837434517%, hsla(30.142180094786728, 98.13953488372094%, 42.15686274509804%, 1) 0%, hsla(30.142180094786728, 98.13953488372094%, 42.15686274509804%, 0) 100%), radial-gradient(at 39.678170437472545% 29.355243740946424%, hsla(343.9024390243902, 66.48648648648648%, 36.27450980392157%, 1) 0%, hsla(343.9024390243902, 66.48648648648648%, 36.27450980392157%, 0) 100%), radial-gradient(at 0.985213904725224% 27.414154543155313%, hsla(343.2258064516129, 74.4%, 24.509803921568626%, 1) 0%, hsla(343.2258064516129, 74.4%, 24.509803921568626%, 0) 100%), radial-gradient(at 78.6519174505145% 82.8760099470747%, hsla(30.142180094786728, 98.13953488372094%, 42.15686274509804%, 1) 0%, hsla(30.142180094786728, 98.13953488372094%, 42.15686274509804%, 0) 100%), radial-gradient(at 88.45227335382037% 89.43920854305478%, hsla(343.9024390243902, 66.48648648648648%, 36.27450980392157%, 1) 0%, hsla(343.9024390243902, 66.48648648648648%, 36.27450980392157%, 0) 100%);
    color: white;
    display: flex;
    align-items: center;
    /*font-family: "Montserrat", sans-serif;*/
}

.back {
    /*background: linear-gradient(-45deg, var(--primary), var(--primary-dark), var(--primary));*/
    background: linear-gradient(
            120deg,
            var(--primary),
            var(--primary-dark),
            var(--accent-rose),
            var(--primary),
            var(--accent-wine),
            var(--accent-gold)
    );
    background-size: 400% 400%;
    animation: gradient 13s ease-in-out infinite;
    /*background-size: 400% 400%;*/
    /*animation: gradient 15s ease infinite;*/
}

/* мягкое свечение поверх */
.back::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
            circle at 30% 30%,
            rgba(255, 255, 255, 0.08),
            transparent 60%
    );
    pointer-events: none;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.noTouch{
    pointer-events: none;
}
.askAdmin{
    position: absolute;
    bottom: 2em;
    opacity: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
    flex-direction: column;
    text-align: center;
}
body.bordo {
    margin: 0;
    background: var(--primary),;
    color: white;
    display: flex;
    align-items: center;
    /*overflow: hidden;*/
    height: 100vh;
    width: 100vw;
}

.prizes_holder {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

h1.selectPrize {
    position: absolute;
    top: 10%;
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    opacity: 0;
}

#prizes {
    position: absolute;
    top: 50%;
    height: 1px;
    background: yellow;
}

.buttons {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
}

.templateHolder {
    position: absolute;
    right: 0;
    top: 0;
    display: none;
}

.box {
    width: 150px;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.box:hover {
    /*box-shadow: 0 0 10px 0 red;*/
    filter: drop-shadow(0 0 6px rgba(0, 150, 255, 0.8)) drop-shadow(0 0 12px rgba(0, 150, 255, 0.6)) drop-shadow(0 0 20px rgba(0, 150, 255, 0.4));
    z-index: 5;

}

.box_cap {
    position: relative;
    width: fit-content;
    top: 30px;
}


.box_body {
    width: fit-content;
}

.logo {
    max-width: var(--logo-size);
    height: auto;
}

.hero {
    /*background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);*/
    /*padding: 80px 20px;*/
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    max-width: 500px;
    margin: 0 auto;
}

/* HTML: <div class="loader"></div> */
.loader {
    width: 60px;
    aspect-ratio: 2;
    --_g: no-repeat radial-gradient(circle closest-side, #000 90%, #0000);
    background: var(--_g) 0% 50%,
    var(--_g) 50% 50%,
    var(--_g) 100% 50%;
    background-size: calc(100% / 3) 50%;
    animation: l3 1s infinite linear;
}

@keyframes l3 {
    20% {
        background-position: 0% 0%, 50% 50%, 100% 50%
    }
    40% {
        background-position: 0% 100%, 50% 0%, 100% 50%
    }
    60% {
        background-position: 0% 50%, 50% 100%, 100% 0%
    }
    80% {
        background-position: 0% 50%, 50% 50%, 100% 100%
    }
}

/*.form .cf-fields{*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    gap: 1em;*/
/*}*/
.form {
    max-width: 460px;
    margin: 50px auto;
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.form h2 {
    margin: 0;
}

.form .convertforms .cf-input {
    width: 100%;
    border-width: 2px;
}


.button {
    background: var(--primary);
    color: white !important;
    border: none;
    padding: 14px 26px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.button:hover {
    background: var(--primary-dark);
}

/* Барабан слота */
.slot-wrapper {
    margin-top: 40px;
    display: none;
}

.slot {
    width: 100%;
    height: 110px;
    overflow: hidden;
    border-radius: 14px;
    border: 3px solid var(--gold);
    background: var(--gold-light);
    position: relative;
}

.slot-inner {
    position: absolute;
    width: 100%;
    animation: spin 1.8s ease-out forwards;
}

@keyframes spin {
    0% {
        top: -600px;
    }
    100% {
        top: 0;
    }
}

.prize-item {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
}

.result {
    margin-top: 30px;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-dark);
    display: none;
}

@media screen and (max-width: 500px) {
    .logo {
        max-width: 30%;
    }

    .hero h1{
        font-size: 30px;
    }
    .form h2{
        font-size: 1.4em;
    }
    .form{
        max-width: 95%;
        padding: 0;
    }
}
@media (max-width: 420px) {
    .prizeResult {
        font-size: 16px;
        padding: 14px 18px;
        border-radius: 10px
    }
}
@media screen and (max-width: 380px) {
    .box {
        width: 100px;
    }
}
