/* ==========================================================
   Pepsi x Fantastiko - Christmas 2026 landing
   ========================================================== */

/* --- Fonts (Axiforma, shared ../fonts folder) --- */
@font-face {
    font-family: 'AxiformaBlack';
    src: url('../fonts/Kastelov%20-%20Axiforma%20Black.otf') format('opentype');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'AxiformaSemiBold';
    src: url('../fonts/Kastelov%20-%20Axiforma%20SemiBold.otf') format('opentype');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'AxiformaRegular';
    src: url('../fonts/Kastelov%20-%20Axiforma%20Regular.otf') format('opentype');
    font-weight: normal; font-style: normal; font-display: swap;
}
/* Same families as last year's form */
@font-face {
    font-family: 'AxiformaThin';
    src: url('../fonts/Axiforma-Thin.woff2') format('woff2'),
         url('../fonts/Axiforma-Thin.woff') format('woff'),
         url('../fonts/Axiforma-Thin.ttf') format('truetype');
    font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'AxiformaBold';
    src: url('../fonts/Axiforma-Bold.woff2') format('woff2'),
         url('../fonts/Axiforma-Bold.woff') format('woff'),
         url('../fonts/Axiforma-Bold.ttf') format('truetype');
    font-weight: normal; font-style: normal; font-display: swap;
}

/* --- Tokens --- */
:root {
    --black: #0b0a0b;
    --blue: #273a97;
    --blue-dark: #2c3087;
    --red: #ed1a38;
    --white: #ffffff;
    /* layout unit: 100u = banner width (capped on very wide screens) */
    --u: min(1vw, 16px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: AxiformaRegular, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { display: block; }

.page { position: relative; background: var(--black); overflow-x: clip; }

/* ==========================================================
   HERO (mobile first)
   ========================================================== */
.hero {
    position: relative;
    z-index: 1;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12vw 5vw 0;
    overflow: hidden;
}

.hero-stars,
.steps-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-repeat: repeat;
}
.hero-stars { background-image: url('assets/stars_dark.svg'); background-size: 70vw; }
.steps-stars { background-image: url('assets/stars_blue.svg'); background-size: 80vw; }

.deco { position: absolute; pointer-events: none; }

.headline {
    position: relative;
    z-index: 3;
    margin: 0;
    text-align: center;
    font-family: AxiformaBlack, 'Arial Black', sans-serif;
    font-weight: normal;
    line-height: 1.04;
    color: var(--white);
    font-size: 8.4vw;
    order: 1;
}
.hl-line { display: block; }
.hl-pepsi { font-size: 1.7em; line-height: 1; margin-top: .05em; }
.hl-pepsi small { font-size: .55em; margin-right: .06em; }

.lights-tl { left: -2vw; top: 2vw; width: 30vw; }
.lights-r  { display: none; }
.pepsico   { right: 4vw; top: 2vw; width: 15vw; z-index: 3; }

.bottles {
    position: relative;
    z-index: 2;
    order: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    height: 70vw;
    margin-top: 0;
    width: 100%;
}
.bottle { height: 66vw; width: auto; margin-bottom: 4vw; }
.bottle-blue { margin-right: -1vw; height: 62vw; }
.bottle-zero { height: 66vw; }

.snow {
    position: absolute;
    z-index: 4;
    left: 0; right: 0; bottom: 0;
    height: 16vw;
    background: url('assets/snow.webp') center top / 160% auto no-repeat;
    pointer-events: none;
}

/* ==========================================================
   STEPS + PRIZE
   ========================================================== */
.steps-section {
    position: relative;
    z-index: 2;
    background: var(--blue);
    padding: 9vw 5vw 6vw;
    overflow: hidden;
}

.steps {
    position: relative;
    z-index: 2;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6vw;
}

.step { display: flex; align-items: flex-start; gap: 3.2vw; }

.num {
    flex: none;
    width: 11vw; height: 11vw;
    border-radius: 50%;
    background: var(--white);
    color: var(--blue);
    display: grid;
    place-items: center;
    font-family: AxiformaBlack, sans-serif;
    font-size: 6.4vw;
    line-height: 1;
    padding: .06em 0 0;          /* optical vertical centring of the digit */
    position: relative;
}
/* the dot sits next to the digit without pushing it off-centre */
.num::after {
    content: '.';
    position: absolute;
    left: calc(50% + .28em);
    top: calc(50% + .03em);
    transform: translateY(-50%);
    line-height: 1;
}

.step h2 {
    margin: 0 0 1vw;
    font-family: AxiformaBlack, sans-serif;
    font-weight: normal;
    font-size: 9vw;
    line-height: 1;
}
.step h2 small {
    display: block;
    margin-top: 1.4vw;
    font-family: AxiformaRegular, sans-serif;
    font-size: 4.4vw;
    line-height: 1.2;
}
.step p {
    margin: 0;
    font-size: 4.5vw;
    line-height: 1.22;
}
.step a { color: inherit; text-decoration: none; }

.prize {
    position: relative;
    z-index: 3;
    margin: 6vw -5vw 0 auto;
    width: 70vw;
    pointer-events: none;
}
.machine { width: 100%; height: auto; }
.badge50 {
    position: absolute;
    left: -8vw;
    top: 42%;
    width: 27vw;
    height: auto;
}

.period {
    position: relative;
    z-index: 4;
    margin: -12vw auto 0;
    display: block;
    width: fit-content;
    background: var(--red);
    color: var(--white);
    text-align: center;
    border-radius: 3.4vw;
    padding: 2.4vw 4vw;
    font-family: AxiformaSemiBold, sans-serif;
    font-size: 4vw;
    line-height: 1.15;
}

/* ==========================================================
   REGISTER (form section)
   ========================================================== */
.register {
    position: relative;
    z-index: 2;
    background: var(--blue);
    padding: 4vw 5vw 10vw;
    overflow: hidden;
    scroll-margin-top: 0;
}
.register-title {
    position: relative;
    z-index: 2;
    margin: 0 0 6vw;
    text-align: center;
    font-family: AxiformaBlack, sans-serif;
    font-weight: normal;
    font-size: 6.4vw;
    line-height: 1.1;
}

/* ==========================================================
   LEGAL
   ========================================================== */
.legal {
    background: var(--blue);
    padding: 0 5vw 8vw;
}
.legal p {
    margin: 0 auto;
    max-width: 62rem;
    font-size: 3.4vw;
    line-height: 1.25;
    color: var(--white);
}
.legal a { color: inherit; }

/* ==========================================================
   FORM  (same form as last year, restyled to sit in a card)
   ========================================================== */
input[type="time"]::-webkit-calendar-picker-indicator { background: none; }
input[type="datetime-local"]::-webkit-inner-spin-button,
input[type="datetime-local"]::-webkit-calendar-picker-indicator { opacity: 0; }

.mainForm {
    position: relative;
    z-index: 20;
    background: #ffffff;
    border-radius: 24px;
    padding: 1.6rem 1.5rem 1.2rem;
    width: 100%;
    max-width: 34rem;
    margin: 0 auto;
    text-align: center;
    box-shadow: -4px 8px 24px rgba(0, 0, 0, .35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #000;
}

.logoForm {
    width: 96px;
    max-width: 22%;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.mb-3 {
    width: 100%;
    max-width: 100%;
    margin: 0 auto .7rem;
    display: flex;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid #d1d5db;
    border-radius: .375rem;
    outline: none;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    font-size: 16px;
    background: #fff;
    color: #000;
}
.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .5);
}

.mb-3 input,
select {
    max-width: 90% !important;
    display: inline-block !important;
    font-family: AxiformaThin, sans-serif;
}
.mb-3 p {
    width: 97% !important;
    font-family: AxiformaThin, sans-serif;
    text-align: left;
    font-size: .8rem;
    margin: 0;
    color: #000;
}

input::-webkit-datetime-edit { line-height: 1; padding: 0; margin-bottom: -2px; }

/* file button */
.custom-file-button { position: relative; display: flex; justify-content: center; align-items: center; }
.file-upload-label {
    position: relative;
    z-index: 20;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .25rem;
    padding: .5rem .75rem;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, .25);
    border: none;
    width: 90%;
    font-family: AxiformaThin, sans-serif;
    font-size: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-upload-input {
    position: absolute; z-index: 10;
    width: 100%; height: 0; opacity: 0;
    inset: 0;
    cursor: pointer;
    display: none;
}
.custom-file-button:hover .file-upload-label { cursor: pointer; }

/* buttons */
.my-btn, .btn-primary { background-color: var(--blue-dark); transition: all .3s; }
.my-btn:hover, .btn-primary:hover { background-color: #283a97 !important; cursor: pointer !important; }

.btn-submit-style {
    margin: .4rem auto 0;
    width: 100%;
    max-width: 95%;
    display: block;
    padding: .6rem 1rem;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-family: AxiformaBlack, sans-serif;
    font-size: clamp(20px, 1.6vw, 26px);
    box-shadow: 2px 1px 5px rgba(0, 0, 0, .15);
}
.btn-submit-style:disabled { cursor: default; }

#status {
    font-family: AxiformaBold, sans-serif;
    color: #eb5757;
    text-align: center;
    padding: .25rem;
    font-size: .8rem;
    margin: 0 !important;
    min-height: 1.4em;
}

/* toggle switches */
table { width: 93%; margin: auto; border-spacing: 0 1vh; border-collapse: separate; }
.switch { position: relative; width: 34px; height: 14px; float: right; }
.switch input { opacity: 0; }
.toggle { position: absolute; cursor: pointer; inset: 0; background-color: #d8d7d7; }
.toggle.round { border-radius: 34px; }
.toggle:before {
    position: absolute; content: "";
    height: 20px; width: 20px; left: 0; bottom: -3px;
    background-color: #6d6d6d; border-radius: 50%;
    transition: transform .15s;
}
input:checked + .toggle:before { transform: translateX(14px); background-color: #0049e1; }
.mb-3 a { color: inherit; }

/* receipt sample popups */
.field { position: relative; flex: 0 1 90%; max-width: 90%; display: flex; }
.mb-3 .field input { max-width: 100% !important; width: 100%; padding-right: 2.4rem; }
.info { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); display: flex; line-height: 0; z-index: 2; }
.info:hover { cursor: pointer; }
.obrazec {
    position: absolute;
    max-width: 62%;
    right: 0;
    margin-top: -8%;
    z-index: 99999;
    display: none;
    filter: drop-shadow(-4px 6px 8px rgb(0 0 0 / .3));
}

/* ==========================================================
   DESKTOP  (>= 900px) - recreates the banner composition
   everything below is expressed in --u (1u = 1% of banner width)
   ========================================================== */
@media (min-width: 900px) {
    :root { --L: calc(50% - 50 * var(--u)); }   /* left edge of the 100u stage */

    .hero {
        display: block;
        padding: 0;
        height: calc(36.25 * var(--u));
        overflow: visible;
    }
    .hero-stars, .steps-stars { background-size: calc(36 * var(--u)); }

    .lights-tl { left: calc(var(--L) + 0.2 * var(--u)); top: calc(1.6 * var(--u)); width: calc(19 * var(--u)); }
    .pepsico   { left: calc(var(--L) + 49.5 * var(--u)); right: auto; top: calc(1.2 * var(--u)); width: calc(7.4 * var(--u)); }
    .lights-r  { display: block; left: calc(var(--L) + 64.2 * var(--u)); top: calc(18 * var(--u)); width: calc(28.4 * var(--u)); z-index: 3; }

    .bottles {
        position: absolute;
        left: calc(var(--L) + 21.4 * var(--u));
        bottom: calc(3 * var(--u));
        width: calc(22 * var(--u));
        height: auto;
        margin: 0;
        justify-content: flex-start;
    }
    .bottle { margin: 0; }
    .bottle-blue { height: calc(29.6 * var(--u)); margin-right: calc(-0.2 * var(--u)); }
    .bottle-zero { height: calc(32.6 * var(--u)); margin-left: calc(-0.5 * var(--u)); }

    .snow {
        height: calc(7.4 * var(--u));
        background-size: max(100%, calc(100 * var(--u))) auto;
    }

    .headline {
        position: absolute;
        left: calc(var(--L) + 59.5 * var(--u));
        top: calc(1.2 * var(--u));
        width: calc(40 * var(--u));
        font-size: calc(4.55 * var(--u));
        line-height: 1.12;
    }
    .hl-pepsi { font-size: 1.5em; margin-top: .02em; }

    /* ----- steps ----- */
    .steps-section {
        height: calc(38.75 * var(--u));
        padding: 0;
        overflow: visible;
    }
    .steps-section .steps-stars { overflow: hidden; }

    .steps {
        position: absolute;
        left: calc(var(--L) + 1.4 * var(--u));
        top: calc(1.8 * var(--u));
        width: calc(62 * var(--u));
        gap: calc(1.3 * var(--u));
    }
    .step { gap: calc(1.7 * var(--u)); }
    .num {
        width: calc(4.4 * var(--u)); height: calc(4.4 * var(--u));
        font-size: calc(3.1 * var(--u));
        margin-top: calc(.5 * var(--u));
    }
    .step h2 { font-size: calc(4.9 * var(--u)); line-height: .84; margin-bottom: calc(.5 * var(--u)); }
    .step h2 small {
        display: inline;
        margin: 0 0 0 calc(.5 * var(--u));
        font-size: calc(2.2 * var(--u));
    }
    .step p { font-size: calc(2.1 * var(--u)); line-height: 1.2; max-width: calc(58 * var(--u)); }

    .prize {
        position: absolute;
        z-index: 5;
        left: calc(var(--L) + 81.4 * var(--u));
        top: calc(-12.25 * var(--u));
        width: calc(36.2 * var(--u));
        margin: 0;
    }
    .machine {
        -webkit-mask-image: linear-gradient(to right, #000 94%, transparent);
        mask-image: linear-gradient(to right, #000 94%, transparent);
    }
    .badge50 {
        left: calc(-7.4 * var(--u));
        top: calc(27.2 * var(--u));
        width: calc(13 * var(--u));
    }

    .period {
        position: absolute;
        z-index: 6;
        left: calc(var(--L) + 59.7 * var(--u));
        top: calc(26.4 * var(--u));
        margin: 0;
        border-radius: calc(1.5 * var(--u));
        padding: calc(.9 * var(--u)) calc(1.2 * var(--u));
        font-size: calc(1.65 * var(--u));
        white-space: nowrap;
    }

    /* ----- form section ----- */
    .register { padding: calc(4 * var(--u)) 2rem 4rem; }
    .register-title { font-size: calc(3 * var(--u)); margin-bottom: calc(2.4 * var(--u)); }
    .register { padding-top: calc(6 * var(--u)); }
    .mainForm { max-width: 36rem; }

    .legal { padding: 0 2rem 3rem; }
    .legal p { font-size: max(.9rem, calc(1.15 * var(--u))); max-width: calc(80 * var(--u)); }
}

/* desktop wide form text tweaks (as last year) */
@media (max-width: 1231px) { .mb-3 p { font-size: .75rem; } }

/* ==========================================================
   MOBILE form tweaks (as last year)
   ========================================================== */
@media (max-width: 899px) {
    .mainForm { padding: 1.4rem 1.1rem 1rem; border-radius: 20px; }
    .logoForm { max-width: 20%; }
    .mb-3 p { font-size: .8rem !important; }
    .btn-submit-style { font-size: 6vw; }
    .obrazec { max-width: 81%; right: 11%; margin-top: 10%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ==========================================================
   DESKTOP ONE-SCREEN LAYOUT (>= 1200px wide, >= 700px tall)
   16:9 composition on full-width black + blue bands:
   form (left) | bottles + steps (center) | prize (right)
   1u = 1/160 of the composition width, fitted to the screen.
   ========================================================== */
@media (min-width: 1200px) and (min-height: 700px) {
    :root {
        --u: min(calc(100vw / 160), calc(100vh / 90));
        --L: calc(50% - 80 * var(--u));      /* left edge of the 160u composition */
    }

    html, body { height: 100%; }
    /* scale the form (rem based) together with the composition on big screens */
    html { font-size: max(16px, calc(1.78 * var(--u))); }

    .page {
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: calc(46 * var(--u)) 1fr auto;
        height: 100vh;
        overflow: hidden;
        background: var(--blue);
    }

    /* ---------- bands ---------- */
    .hero { grid-column: 1; grid-row: 1; height: auto; }
    .hero-stars, .steps-stars { background-size: calc(40 * var(--u)); }

    .steps-section {
        grid-column: 1;
        grid-row: 2 / 4;
        height: auto;
        min-height: 0;
    }

    /* ---------- hero (arranged like the wobbler artwork) ---------- */
    .lights-tl { left: calc(var(--L) + 58 * var(--u)); top: calc(2.5 * var(--u)); width: calc(15 * var(--u)); }
    .pepsico   { left: calc(var(--L) + 97 * var(--u)); top: calc(2.8 * var(--u)); width: calc(7.5 * var(--u)); }
    .lights-r  { left: calc(var(--L) + 126 * var(--u)); top: calc(18.5 * var(--u)); width: calc(28 * var(--u)); }

    .headline {
        left: calc(var(--L) + 108 * var(--u));
        top: calc(1.8 * var(--u));
        width: calc(48 * var(--u));
        font-size: calc(4.4 * var(--u));
        line-height: 1.1;
        white-space: normal;
    }
    .hl-line { display: block; }
    .hl-pepsi { font-size: 1.5em; margin-top: .03em; }

    /* bottles are sunk into the snow like in the artwork: the base is hidden
       behind the snow and the blue band (hero is below the steps section) */
    .bottles { left: calc(var(--L) + 64 * var(--u)); bottom: calc(-4.5 * var(--u)); width: calc(27 * var(--u)); }
    .bottle-blue { height: calc(42.7 * var(--u)); margin-bottom: calc(-0.9 * var(--u)); }
    .bottle-zero { height: calc(45 * var(--u)); }
    .snow { height: calc(12 * var(--u)); background-size: max(100%, calc(160 * var(--u))) auto; }

    /* ---------- steps (compact) ---------- */
    .steps {
        left: calc(var(--L) + 62 * var(--u));
        top: calc(3.2 * var(--u));
        width: calc(50 * var(--u));
        gap: calc(1.5 * var(--u));
    }
    .step { gap: calc(1.2 * var(--u)); }
    .num { width: calc(3.4 * var(--u)); height: calc(3.4 * var(--u)); font-size: calc(2.4 * var(--u)); margin-top: calc(.2 * var(--u)); }
    .step h2 { font-size: calc(3.6 * var(--u)); margin-bottom: calc(.4 * var(--u)); }
    .step h2 small { font-size: calc(1.8 * var(--u)); margin-left: calc(.4 * var(--u)); }
    .step p { font-size: calc(1.8 * var(--u)); max-width: calc(41 * var(--u)); }

    /* ---------- prize (right), arm bleeds off the screen edge ---------- */
    .prize {
        clip-path: none;
        left: auto;
        right: calc(-2 * var(--u));
        top: calc(-16.5 * var(--u));
        width: calc(34.5 * var(--u));
    }
    .machine { -webkit-mask-image: none; mask-image: none; }
    .badge50 { left: calc(-9 * var(--u)); top: calc(-1.5 * var(--u)); width: calc(13 * var(--u)); }

    .period {
        left: auto;
        right: calc(var(--L) + 3 * var(--u));
        top: calc(33.5 * var(--u));
        font-size: calc(1.5 * var(--u));
        padding: calc(.7 * var(--u)) calc(1.1 * var(--u));
        border-radius: calc(1.2 * var(--u));
    }

    /* ---------- form (left) ---------- */
    .register {
        grid-column: 1;
        grid-row: 1 / 4;
        align-self: center;
        justify-self: start;
        margin-left: max(2rem, calc(50vw - 75 * var(--u)));
        z-index: 6;
        width: auto;
        padding: 0;
        background: transparent;
        overflow: visible;
        display: block;
        margin-top: calc(-2 * var(--u));
    }
    .register .steps-stars, .register-title { display: none; }
    .mainForm { width: 26rem; max-width: 92vw; padding: 1.2rem 1.4rem .9rem; }
    .logoForm { width: 4.9rem; margin-bottom: .7rem; }
    .mb-3 { margin-bottom: .55rem; }
    .form-input { font-size: 1rem; }
    .file-upload-label { font-size: 1.125rem; }
    .btn-submit-style { font-size: 1.375rem; padding: .5rem 1rem; }

    /* ---------- footer: full width, centered ---------- */
    .legal {
        grid-column: 1;
        grid-row: 3;
        position: relative;
        z-index: 3;
        margin: 0;
        padding: calc(.8 * var(--u)) 2rem calc(1.4 * var(--u));
        background: var(--blue);
        text-align: center;
    }
    .legal p {
        margin: 0 auto;
        max-width: calc(130 * var(--u));
        font-size: max(12px, calc(1.25 * var(--u)));
        line-height: 1.25;
        text-align: center;
    }
}

/* ==========================================================
   Stars on both bands, but never under texts
   - black band: cut out behind the headline
   - blue band: cut out behind the steps / form title
   (footer, pill and form card have solid backgrounds)
   ========================================================== */
.hero-stars,
.steps-stars {
    -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
            mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: 0 0, 0 0;
            mask-position: 0 0, 0 0;
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}

/* mobile */
.hero-stars  { -webkit-mask-size: 100% 100%, 100% 46vw; mask-size: 100% 100%, 100% 46vw; }
.steps-stars { -webkit-mask-size: 100% 100%, 100% calc(100% - 92vw); mask-size: 100% 100%, 100% calc(100% - 92vw); }
.register .steps-stars { -webkit-mask-size: 100% 100%, 100% 24vw; mask-size: 100% 100%, 100% 24vw; }

@media (min-width: 900px) {
    .hero-stars {
        -webkit-mask-size: 100% 100%, calc(44 * var(--u)) calc(23 * var(--u));
                mask-size: 100% 100%, calc(44 * var(--u)) calc(23 * var(--u));
        -webkit-mask-position: 0 0, calc(50vw - 50 * var(--u) + 57.5 * var(--u)) 0;
                mask-position: 0 0, calc(50vw - 50 * var(--u) + 57.5 * var(--u)) 0;
    }
    .steps-stars {
        -webkit-mask-size: 100% 100%, calc(66 * var(--u)) calc(34 * var(--u));
                mask-size: 100% 100%, calc(66 * var(--u)) calc(34 * var(--u));
        -webkit-mask-position: 0 0, calc(50vw - 50 * var(--u)) calc(.5 * var(--u));
                mask-position: 0 0, calc(50vw - 50 * var(--u)) calc(.5 * var(--u));
    }
    .register .steps-stars {
        -webkit-mask-size: 100% 100%, 100% calc(12 * var(--u));
                mask-size: 100% 100%, 100% calc(12 * var(--u));
        -webkit-mask-position: 0 0, 0 0;
                mask-position: 0 0, 0 0;
    }
}

@media (min-width: 1200px) and (min-height: 700px) {
    .hero-stars {
        -webkit-mask-size: 100% 100%, calc(52 * var(--u)) calc(21 * var(--u));
                mask-size: 100% 100%, calc(52 * var(--u)) calc(21 * var(--u));
        -webkit-mask-position: 0 0, calc(50vw - 80 * var(--u) + 106 * var(--u)) 0;
                mask-position: 0 0, calc(50vw - 80 * var(--u) + 106 * var(--u)) 0;
    }
    .steps-stars {
        -webkit-mask-size: 100% 100%, calc(54 * var(--u)) calc(30 * var(--u));
                mask-size: 100% 100%, calc(54 * var(--u)) calc(30 * var(--u));
        -webkit-mask-position: 0 0, calc(50vw - 80 * var(--u) + 60 * var(--u)) calc(2 * var(--u));
                mask-position: 0 0, calc(50vw - 80 * var(--u) + 60 * var(--u)) calc(2 * var(--u));
    }
}

/* ==========================================================
   "ВИЖ ПОБЕДИТЕЛИТЕ" button + end-of-campaign card
   ========================================================== */
a.winners-btn {
    display: block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    margin: .9rem auto 0;
    cursor: pointer;
}
.register > a.winners-btn {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 34rem;
    margin: .9rem auto 0;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.endCard { gap: 0; }
.end-msg {
    margin: .2rem 0 .6rem;
    font-family: AxiformaBold, sans-serif;
    font-size: 1.05rem;
    line-height: 1.3;
    color: #1b1b1b;
    text-align: center;
}
.endCard .logoForm { margin-bottom: .9rem; }

/* short desktop screens: slightly tighter form so the winners button still fits */
@media (min-width: 1200px) and (min-height: 700px) and (max-height: 800px) {
    .logoForm { width: 3.9rem; margin-bottom: .4rem; }
    .mainForm { padding-top: .9rem; padding-bottom: .7rem; }
    .mb-3 { margin-bottom: .42rem; }
    a.winners-btn { margin-top: .6rem; }
    .btn-submit-style { padding: .4rem 1rem; }
}

@media (max-width: 899px) {
    a.winners-btn { font-size: 4.9vw; padding-top: .7rem; padding-bottom: .7rem; }
}

@media (min-width: 1200px) and (min-height: 700px) {
    .register > a.winners-btn { width: 26rem; max-width: 92vw; margin-top: .8rem; }
}

/* ended version: the button lives inside the card */
.endCard .winners-btn { width: 100%; max-width: 95%; margin: .4rem auto .3rem; }

/* winners button: red, no border */
a.winners-btn,
.register > a.winners-btn {
    background-color: #ed1a38;
    border: none;
}
a.winners-btn:hover,
.register > a.winners-btn:hover { background-color: #d4152f !important; }
