html,
body {
    margin: 0;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    font-family: sans-serif;
    user-select: none;
}

img {
    display: block;
    -webkit-user-drag: none;
}

body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #0F1214;
}

.attract_screen {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.attract_screen.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.attract_bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attract_bg_layers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.6s ease;
}

.quiz_screen.is-client-intro .attract_bg_layers,
.quiz_screen.is-result .attract_bg_layers,
.quiz_screen.is-endcard .attract_bg_layers {
    opacity: 0;
}

.bg_ball,
.bg_ball2,
.bg_line,
.bg_line2 {
    position: absolute;
    left: 50%;
    width: auto;
}

.bg_ball img,
.bg_ball2 img,
.bg_line img,
.bg_line2 img {
    position: relative;
    height: 100%;
    width: auto;
}

.bg_ball {
    height: 40%;
    bottom: -30%;
    transform: translateX(-80%);
}

.bg_ball2 {
    height: 30%;
    top: -16%;
    transform: translateX(-90%);
}

.bg_line {
    height: 78%;
    bottom: -40%;
    transform: translateX(10%);
}

.bg_line img {
    animation: bg_spin_reverse 48s linear infinite;
}

.bg_ball2 img {
    animation: bg_spin 48s linear infinite;
}

.bg_line2 {
    height: 34%;
    top: -2%;
    transform: translateX(-55%);
}

@keyframes bg_spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bg_spin_reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.dolar {
    position: absolute;
    height: 22.97%;
    left: 50%;
    transform: translateX(-50%);
    top: 13%;
}

.dolar img {
    position: relative;
    height: 100%;
    width: auto;
    animation: dolar_wave 3.4s ease-in-out infinite;
}

.dolar_1 img {
    animation-delay: 0s;
}

.dolar_2 img {
    animation-delay: 0.4s;
}

.dolar_3 img {
    animation-delay: 0.8s;
}

@keyframes dolar_wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8%);
    }
}

.dolar_1 {
    height: 15.6%;
transform: translate(-200%);
top: 22%;

}

.dolar_2 {
    height: 23.97%;
    left: 50%;



    z-index: 3;
}

.dolar_3 {
    height: 15.6%;
    top: 22%;

transform: translate(100%);

}


.attract_scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.attract_screen.is-scene-1 .attract_scene_1,
.attract_screen.is-scene-2 .attract_scene_2,
.attract_screen.is-scene-3 .attract_scene_3 {
    opacity: 1;
}

.attract_copy1 {
    position: absolute;
    height: 9.9%;
    width: auto;
    left: 50%;
    top: 43%;
    transform: translateX(-50%);
    z-index: 2;
}

.attract_copy2 {
    position: absolute;
    height: 9.45%;
    width: auto;
    left: 50%;
    top: 51%;
    transform: translateX(-50%);
    z-index: 2;
}

.kolko {
    position: absolute;
    height: 20.42%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
}

.kolko img {
    height: 100%;
    width: auto;
}

.attract_screen.is-scene-2 .kolko1 {
    z-index: 1;
    animation: kolko1_top 5s ease forwards;
}

.attract_screen.is-scene-2 .kolko1 img {
    animation: kolko1_scale 5s ease forwards;
}

.attract_screen.is-scene-2 .kolko2 {
    z-index: 2;
    animation: kolko2_top 5s ease forwards;
}

.attract_screen.is-scene-2 .kolko3 {
    z-index: 3;
    animation: kolko3_top 5s ease forwards;
}

@keyframes kolko1_top {
    0% {
        opacity: 0;
        top: 30.75%;
    }
    8%, 30% {
        opacity: 1;
        top: 30.75%;
    }
    42%, 58% {
        opacity: 1;
        top: 22.6%;
    }
    70%, 100% {
        opacity: 1;
        top: 15.6%;
    }
}

@keyframes kolko1_scale {
    0%, 30% {
        transform: scale(1);
    }
    42%, 58% {
        transform: scale(0.96);
    }
    70%, 100% {
        transform: scale(0.92);
    }
}

@keyframes kolko2_top {
    0%, 30% {
        opacity: 0;
        top: 44.5%;
    }
    42%, 58% {
        opacity: 1;
        top: 40.9%;
    }
    70%, 100% {
        opacity: 1;
        top: 30.9%;
    }
}

@keyframes kolko3_top {
    0%, 58% {
        opacity: 0;
        top: 52%;
    }
    70%, 100% {
        opacity: 1;
        top: 45.5%;
    }
}

.attract_copy3 {
    position: absolute;
    height: 9.45%;
    width: auto;
    left: 50%;
    top: 27.5%;
    transform: translateX(-50%);
    z-index: 2;
}

.attract_copy4 {
    position: absolute;
    height: 9.45%;
    width: auto;
    left: 50%;
    top: 35%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
}

.attract_screen.is-scene-3 .attract_copy4 {
    animation: copy4_in 5s ease forwards;
}

@keyframes copy4_in {
    0%, 28% {
        opacity: 0;
    }
    42%, 100% {
        opacity: 1;
    }
}

.icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.icon img {
    height: 100%;
    width: auto;
}

.icon_left {
    height: 8.9%;
    top: 46.9%;
    transform: translateX(-210%);
}

.icon_middle {
    height: 12.66%;
    top: 45%;
    aspect-ratio: 1;
    z-index: 3;
    perspective: 900px;
}

.icon_right {
    height: 8.9%;
    top: 46.9%;
    transform: translateX(110%);
}

.icon_flip {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.icon_face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.icon_face img {
    height: 100%;
    width: 100%;
}

.icon_gift {
    transform: rotateY(180deg);
}

.attract_screen.icons-playing .icon_left {
    animation: icon_left_merge 5s ease forwards;
}

.attract_screen.icons-playing .icon_right {
    animation: icon_right_merge 5s ease forwards;
}

.attract_screen.icons-playing .icon_left img,
.attract_screen.icons-playing .icon_right img {
    animation: icon_side_scale 5s ease forwards;
}

.attract_screen.icons-playing .icon_flip {
    animation: icon_flip_seq 5s ease forwards;
}

@keyframes icon_left_merge {
    0%, 28% {
        transform: translateX(-210%);
        opacity: 1;
    }
    42%, 100% {
        transform: translateX(-50%);
        opacity: 0;
    }
}

@keyframes icon_right_merge {
    0%, 28% {
        transform: translateX(110%);
        opacity: 1;
    }
    42%, 100% {
        transform: translateX(-50%);
        opacity: 0;
    }
}

@keyframes icon_side_scale {
    0%, 28% {
        transform: scale(1);
    }
    42%, 100% {
        transform: scale(0.6);
    }
}

@keyframes icon_flip_seq {
    0%, 55% {
        transform: rotateY(0deg);
    }
    70%, 100% {
        transform: rotateY(180deg);
    }
}

.cta_start {
    position: absolute;
    height: 7.03%;
    width: auto;
    aspect-ratio: 784 / 270;
    left: 50%;
    top: 66%;
    transform: translateX(-50%);
    z-index: 4;
    cursor: pointer;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
}

.cta_start img {
    position: relative;
    height: 100%;
    width: auto;
    pointer-events: none;
    animation: cta_pulse 2.2s ease-in-out infinite;
}

@keyframes cta_pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.attract_logo {
    position: absolute;
    height: 3.05%;
    width: auto;
    left: 50%;
    top: 90.8%;
    transform: translateX(-50%);
    z-index: 4;
    transition: top 0.85s ease, height 0.85s ease;
}

.quiz_screen.is-endcard .attract_logo {
    top: 15%;
    height: 4.4%;
}

.intro_screen {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 5;
}

.intro_screen.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.intro_q {
    position: absolute;
    left: 50%;
    top: 30%;
    height: 23.23%;
    transform: translateX(-50%);
    z-index: 2;
    transition: top 0.85s ease, height 0.85s ease;
}

.intro_q img {
    height: 100%;
    width: auto;
    animation: intro_q_float 3.2s ease-in-out infinite;
}

.intro_screen.is-intro-expanded .intro_q {
    top: 6%;
    height: 18%;
}

@keyframes intro_q_float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10%);
    }
}

.intro_copy1,
.intro_copy2,
.intro_copy3 {
    position: absolute;
    height: 7.86%;
    width: auto;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.intro_copy1 {
    top: 54%;
    transition: top 0.85s ease;
}

.intro_screen.is-intro-expanded .intro_copy1 {
    top: 24%;
}

.intro_copy2 {
    top: 36%;
    opacity: 0;
    transition: opacity 0.5s ease 0.15s;
}

.intro_arrow {
    position: absolute;
    height: 2.27%;
    width: auto;
    left: 50%;
    top: 45%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease 0.25s;
}

.intro_copy3 {
    top: 49%;
    opacity: 0;
    transition: opacity 0.5s ease 0.35s;
}

.intro_cta {
    position: absolute;
    height: 7.03%;
    width: auto;
    aspect-ratio: 784 / 270;
    left: 50%;
    top: 66%;
    transform: translateX(-50%);
    z-index: 4;
    cursor: pointer;
    padding: 0;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease 0.45s;
}

.intro_cta img {
    position: relative;
    height: 100%;
    width: auto;
    pointer-events: none;
}

.intro_screen.is-intro-expanded .intro_copy2,
.intro_screen.is-intro-expanded .intro_arrow,
.intro_screen.is-intro-expanded .intro_copy3,
.intro_screen.is-intro-expanded .intro_cta {
    opacity: 1;
}

.intro_screen.is-intro-expanded .intro_cta {
    pointer-events: auto;
}

.intro_screen.is-intro-expanded .intro_cta img {
    animation: cta_pulse 2.2s ease-in-out 0.45s infinite;
}

.intro_screen.is-intro-expanded .intro_arrow {
    animation: intro_arrow_bounce 1.6s ease-in-out 0.4s infinite;
}

@keyframes intro_arrow_bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(18%);
    }
}

.quiz_screen {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 6;
}

.quiz_screen.is-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.quiz_bg_okrag {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 100%;
    aspect-ratio: 1;
    width: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.quiz_bg_okrag img {
    position: relative;
    height: 100%;
    width: auto;
}

.quiz_screen.is-client-intro .quiz_bg_okrag {
    opacity: 1;
}

.client_intro,
.question_play,
.question_feedback,
.result_screen {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.quiz_screen.is-client-intro .client_intro,
.quiz_screen.is-playing .question_play,
.quiz_screen.is-feedback .question_feedback,
.quiz_screen.is-result .result_screen {
    opacity: 1;
    pointer-events: auto;
}

.client_intro {
    z-index: 2;
}

.client_intro_icon {
    position: absolute;
    left: 50%;
    top: 30%;
    height: 14.11%;
    transform: translateX(-50%);
}

.client_intro_icon img {
    height: 100%;
    width: auto;
}

.client_intro_kicker,
.client_intro_title {
    position: absolute;
    left: 50%;
    width: 80%;
    transform: translateX(-50%);
    margin: 0;
    text-align: center;
    font-family: Outfit, sans-serif;
    font-weight: 400;
}

.client_intro_kicker {
    top: 50%;
    color: #E6EEFC;
    font-size: 3.2vh;
}

.client_intro_title {
    top: 56%;
    color: #84A9F6;
    font-size: 4.2vh;
    line-height: 1.15;
}

.question_progress_wrap {
    position: absolute;
    left: 50%;
    top: calc(env(safe-area-inset-top, 0px) + 6.2vh);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vh;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.quiz_screen.is-client-intro .question_progress_wrap,
.quiz_screen.is-playing .question_progress_wrap {
    opacity: 1;
}

.question_progress {
    margin: 0;
    font-family: Outfit, sans-serif;
    font-weight: 400;
    font-size: 2.1vh;
    color: #E6EEFC;
    letter-spacing: 0.04em;
}

.question_steps {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5vh;
}

.question_step {
    width: 2.7vh;
    height: 0.78vh;
    border-radius: 999px;
    background: #84A9F6;
    opacity: 0.3;
}

.question_step.is-current {
    opacity: 1;
    background: #84A9F6;
}

.question_step.is-good {
    opacity: 1;
    background: #00C2A0;
}

.question_step.is-bad {
    opacity: 1;
    background: #FD3132;
}

.question_timer {
    position: relative;
    flex: 0 0 11vh;
    width: 11vh;
    height: 11vh;
}

.timer_bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@property --timer-f {
    syntax: "<number>";
    inherits: true;
    initial-value: 1;
}

.timer_svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    --timer-f: 1;
    -webkit-mask-image: conic-gradient(
        from 0deg,
        #000 0deg,
        #000 max(0deg, calc(var(--timer-f) * 360deg - 32deg)),
        rgb(0 0 0 / 0.35) max(0deg, calc(var(--timer-f) * 360deg - 12deg)),
        rgb(0 0 0 / 0) calc(var(--timer-f) * 360deg)
    );
    mask-image: conic-gradient(
        from 0deg,
        #000 0deg,
        #000 max(0deg, calc(var(--timer-f) * 360deg - 32deg)),
        rgb(0 0 0 / 0.35) max(0deg, calc(var(--timer-f) * 360deg - 12deg)),
        rgb(0 0 0 / 0) calc(var(--timer-f) * 360deg)
    );
}

.timer_bar {
    fill: none;
    stroke: #84A9F6;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 263.9;
    stroke-dashoffset: 0;
    transition: stroke 0.25s ease;
}

.timer_num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Outfit, sans-serif;
    font-weight: 400;
    font-size: 3vh;
    color: #E6EEFC;
    font-variant-numeric: tabular-nums;
    transition: color 0.25s ease;
}

.question_timer.is-urgent .timer_num {
    color: #FD3132;
}

.question_timer.is-urgent .timer_bar {
    stroke: #FD3132;
}

.question_stack {
    position: absolute;
    left: 50%;
    top: calc(env(safe-area-inset-top, 0px) + 16vh);
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12vh);
    width: 78.5%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.4vh;
    overflow: hidden;
}

.time_and_tag_wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    /*gap: 1.8vh;*/
    width: 100%;
    flex-shrink: 0;
    z-index: 10;
}

.client_tag {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 1.15vh 3.4vh;
    border-radius: 999px;
    background: #345FD6;
    flex: 0 1 auto;
    margin-left: -3.5vh;
}

.client_tag_txt {
    display: block;
    font-family: Outfit, sans-serif;
    font-weight: 400;
    font-size: 1.9vh;
    line-height: 1.25;
    color: #E6EEFC;
    text-align: center;
    overflow-wrap: break-word;
}

.question_box {
    width: 100%;
    box-sizing: border-box;
    padding: 6vh 4.2vh 3vh 4.2vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2vh;
    border-radius: 3.2vh;
    background: linear-gradient(180deg, #0F1214 0%, rgba(30, 42, 73, 0.2) 100%);
    border: 0.14vh solid rgba(191, 208, 255, 0.5);
    flex: 0 1 auto;
    min-height: 0;
    margin-top: -6vh;
}

.question_body,
.question_prompt {
    margin: 0;
    overflow-wrap: break-word;
}

.question_body {
    font-family: Figtree, sans-serif;
    font-weight: 400;
    font-size: 2.15vh;
    line-height: 1.35;
    color: #E6EEFC;
    text-wrap: pretty;
}

.question_prompt {
    font-family: Figtree, sans-serif;
    font-weight: 600;
    font-size: 2.15vh;
    line-height: 1.3;
    color: #84A9F6;
}

.quiz_answer {
    width: 100%;
    min-height: 6.02vh;
    box-sizing: border-box;
    padding: 1.35vh 5%;
    border: 0.14vh solid rgba(191, 208, 255, 0.5);
    border-radius: 999px;
    background: linear-gradient(180deg, #0F1214 0%, rgba(30, 42, 73, 0.85) 100%);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    flex-shrink: 0;
    outline: none;
    transition-property: transform, border-color;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.quiz_answer:active {
    transform: scale(0.98);
}

.quiz_answer span {
    display: block;
    text-align: center;
    line-height: 1.25;
    font-family: Figtree, sans-serif;
    font-weight: 400;
    font-size: 2vh;
    color: #B4BED6;
    overflow-wrap: break-word;
    text-wrap: pretty;
}

.feedback_burst {
    position: absolute;
    left: 50%;
    top: 32.7%;
    height: 28%;
    aspect-ratio: 1;
    transform: translateX(-50%);
    z-index: 3;
}

.quiz_screen.is-feedback .feedback_burst {
    animation: feedback_burst_move 2.1s ease forwards;
}

.feedback_burst img {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 100%;
    width: auto;
    transform: translate(-50%, -50%);
}

.feedback_fade {
    opacity: 0.55;
}

.quiz_screen.is-feedback .feedback_fade {
    animation: feedback_fade_out 2s ease-out forwards;
}

@keyframes feedback_fade_out {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.55;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.4);
        opacity: 0;
    }
}

@keyframes feedback_burst_move {
    0%, 66% {
        top: 32.7%;
        height: 32%;
    }
    100% {
        top: 12.8%;
        height: 11%;
    }
}

.feedback_particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.feedback_particle {
    position: absolute;
    left: 50%;
    top: 48.7%;
    width: var(--size);
    height: var(--size);
    margin-left: calc(var(--size) * -0.5);
    opacity: 0;
}

.feedback_particle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feedback_particles.is-playing .feedback_particle {
    animation: feedback_particle_fly var(--dur) ease-out var(--delay) both;
}

.feedback_particle:nth-child(1) {
    --size: 3.4vh;
    --dx: -16vh;
    --dy: -20vh;
    --rot-start: -22deg;
    --rot-end: -64deg;
    --scale-end: 0.82;
    --dur: 1.86s;
    --delay: 0s;
}

.feedback_particle:nth-child(2) {
    --size: 5.1vh;
    --dx: 14vh;
    --dy: -22vh;
    --rot-start: 18deg;
    --rot-end: 76deg;
    --scale-end: 1.05;
    --dur: 2.06s;
    --delay: 0.05s;
}

.feedback_particle:nth-child(3) {
    --size: 4.2vh;
    --dx: 22vh;
    --dy: -4vh;
    --rot-start: 10deg;
    --rot-end: -38deg;
    --scale-end: 0.9;
    --dur: 1.94s;
    --delay: 0.11s;
}

.feedback_particle:nth-child(4) {
    --size: 3.6vh;
    --dx: 18vh;
    --dy: 16vh;
    --rot-start: -36deg;
    --rot-end: 42deg;
    --scale-end: 0.78;
    --dur: 1.82s;
    --delay: 0.17s;
}

.feedback_particle:nth-child(5) {
    --size: 4.8vh;
    --dx: -2vh;
    --dy: 20vh;
    --rot-start: 14deg;
    --rot-end: 52deg;
    --scale-end: 0.96;
    --dur: 2s;
    --delay: 0.03s;
}

.feedback_particle:nth-child(6) {
    --size: 3.8vh;
    --dx: -20vh;
    --dy: 12vh;
    --rot-start: 28deg;
    --rot-end: -24deg;
    --scale-end: 0.84;
    --dur: 1.88s;
    --delay: 0.09s;
}

.feedback_particle:nth-child(7) {
    --size: 5.3vh;
    --dx: -24vh;
    --dy: -6vh;
    --rot-start: -12deg;
    --rot-end: -70deg;
    --scale-end: 1.08;
    --dur: 2.08s;
    --delay: 0.14s;
}

.feedback_particle:nth-child(8) {
    --size: 4vh;
    --dx: 6vh;
    --dy: -26vh;
    --rot-start: 24deg;
    --rot-end: 58deg;
    --scale-end: 0.88;
    --dur: 1.92s;
    --delay: 0.07s;
}

@keyframes feedback_particle_fly {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(var(--rot-start)) scale(0.28);
    }
    16% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) rotate(var(--rot-end)) scale(var(--scale-end));
    }
}

.feedback_body {
    position: absolute;
    left: 50%;
    top: 28%;
    width: 72%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    z-index: 2;
}

.quiz_screen.is-feedback .feedback_body {
    animation: feedback_card_in 0.45s ease 1.55s forwards;
}

@keyframes feedback_card_in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4%);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.feedback_headline {
    margin: 0 0 7.4vh;
    font-family: Outfit, sans-serif;
    font-weight: 400;
    font-size: 3.2vh;
    line-height: 1.2;
    text-align: center;
    text-wrap: balance;
}

.quiz_screen.is-feedback-good .feedback_headline {
    color: #00C2A0;
}

.quiz_screen.is-feedback-bad .feedback_headline {
    color: #E6EEFC;
}

.feedback_card {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 3.6vh 4.4vh 4.4vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6vh;
    border-radius: 3.2vh;
}

.quiz_screen.is-feedback-good .feedback_card {
    background: linear-gradient(165deg, #2AD4B4 0%, #00C2A0 100%);
    border: 0.16vh solid #E6EEFC;
    padding-bottom: 5.2vh;
}

.quiz_screen.is-feedback-bad .feedback_card {
    background: linear-gradient(180deg, #1B2440 0%, #0F1214 100%);
    border: 0.16vh solid #00C2A0;
}

.feedback_solution {
    margin: 0;
    font-family: Outfit, sans-serif;
    font-weight: 700;
    font-size: 4.2vh;
    line-height: 1.15;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.quiz_screen.is-feedback-good .feedback_solution {
    color: #1B2440;
}

.quiz_screen.is-feedback-bad .feedback_solution {
    color: #E6EEFC;
}

.feedback_desc {
    margin: 0;
    font-family: Figtree, sans-serif;
    font-weight: 400;
    font-size: 1.9vh;
    line-height: 1.35;
    text-align: center;
    text-wrap: pretty;
    overflow-wrap: break-word;
}

.quiz_screen.is-feedback-good .feedback_desc {
    color: #1B2440;
}

.quiz_screen.is-feedback-bad .feedback_desc {
    color: #E6EEFC;
}

.points_chip {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    box-sizing: border-box;
    padding: 1.15vh 3.6vh;
    border-radius: 999px;
    background: linear-gradient(160deg, #00C2A0 0%, #1B2440 100%);
    border: 0.14vh solid #E6EEFC;
    z-index: 2;
}

.points_chip_txt {
    display: block;
    font-family: Figtree, sans-serif;
    font-weight: 400;
    font-size: 2.1vh;
    line-height: 1.2;
    color: #E6EEFC;
    white-space: nowrap;
}

.quiz_screen.is-feedback-bad .points_chip,
.quiz_screen.is-feedback-bad .time_bonus {
    display: none;
}

.time_bonus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2vh;
    margin-top: 3.8vh;
    flex-shrink: 0;
}

.time_bonus img {
    height: 3.6vh;
    width: auto;
}

.time_bonus_txt {
    font-family: Figtree, sans-serif;
    font-weight: 400;
    font-size: 2.1vh;
    color: #E6EEFC;
}

.result_title {
    position: absolute;
    left: 50%;
    top: 11.5%;
    margin: 0;
    transform: translateX(-50%);
    font-family: Outfit, sans-serif;
    font-weight: 700;
    font-size: 4.8vh;
    letter-spacing: 0.06em;
    color: #E6EEFC;
    white-space: nowrap;
    z-index: 4;
    transition: top 0.85s ease, font-size 0.85s ease, opacity 0.4s ease;
}

.result_screen.is-compact .result_title {
    top: 11.2%;
    font-size: 3.3vh;
}

.result_score_txt {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8vh;
    z-index: 1;
}

.result_label {
    margin: 0;
    font-family: Outfit, sans-serif;
    font-weight: 400;
    font-size: 2.3vh;
    color: #E6EEFC;
}

.result_score_wrap {
    position: absolute;
    left: 50%;
    top: 26%;
    height: 47.6%;
    aspect-ratio: 1;
    transform: translateX(-50%);
    z-index: 2;
    transition: top 0.85s ease, height 0.85s ease;
}

.result_screen.is-compact .result_score_wrap {
    top: 15.6%;
    height: 18%;
}

.result_screen.is-compact .result_score_txt {
    gap: 0.25vh;
}

.result_screen.is-compact .result_label {
    font-size: 1.55vh;
}

.result_screen.is-compact .result_score {
    font-size: 4vh;
}

.result_rings {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.result_ring {
    position: absolute;
    left: 50%;
    top: calc(26% + 23.8%);
    height: 47.6%;
    aspect-ratio: 1;
    width: auto;
    transform: translate(-50%, -50%) scale(1);
}

.result_ring img {
    position: relative;
    height: 100%;
    width: auto;
    display: block;
}

.quiz_screen.is-result .result_ring_out {
    animation: result_ring_out 3.4s ease-out forwards;
}

.quiz_screen.is-result .result_ring_stay {
    animation: result_ring_stay 1.7s ease-out 0.7s forwards;
}

@keyframes result_ring_out {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.95;
    }
    75% {
        opacity: 0.75;
    }
    100% {
        transform: translate(-50%, -50%) scale(3.6);
        opacity: 0;
    }
}

@keyframes result_ring_stay {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.95;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 1;
    }
}

.quiz_screen.is-result .result_score_wrap {
    animation: result_score_in 0.7s ease 0.1s both;
}

@keyframes result_score_in {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.86);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.result_ball {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.result_score {
    font-family: Outfit, sans-serif;
    font-weight: 600;
    font-size: 11vh;
    line-height: 1;
    color: #84A9F6;
    font-variant-numeric: tabular-nums;
    transition: font-size 0.85s ease;
}

.result_confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.result_confetti_piece {
    position: absolute;
    left: 50%;
    top: 54%;
    width: var(--size);
    height: calc(var(--size) * 0.34);
    margin-left: calc(var(--size) * -0.5);
    opacity: 0;
}

.result_confetti_piece img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quiz_screen.is-result .result_confetti.is-playing .result_confetti_piece {
    animation: result_confetti_fly var(--dur) ease-out var(--delay) both;
}

.result_confetti_piece:nth-child(1) { --size: 2.8vh; --dx: -18vh; --dy: -22vh; --rot-start: -20deg; --rot-end: -70deg; --dur: 1.15s; --delay: 0s; }
.result_confetti_piece:nth-child(2) { --size: 3.6vh; --dx: 16vh; --dy: -24vh; --rot-start: 18deg; --rot-end: 80deg; --dur: 1.28s; --delay: 0.05s; }
.result_confetti_piece:nth-child(3) { --size: 2.5vh; --dx: 24vh; --dy: -6vh; --rot-start: 8deg; --rot-end: -40deg; --dur: 1.1s; --delay: 0.1s; }
.result_confetti_piece:nth-child(4) { --size: 3.4vh; --dx: 20vh; --dy: 16vh; --rot-start: -30deg; --rot-end: 36deg; --dur: 1.22s; --delay: 0.16s; }
.result_confetti_piece:nth-child(5) { --size: 2.2vh; --dx: -4vh; --dy: 22vh; --rot-start: 14deg; --rot-end: 58deg; --dur: 1.05s; --delay: 0.03s; }
.result_confetti_piece:nth-child(6) { --size: 3.1vh; --dx: -22vh; --dy: 12vh; --rot-start: 26deg; --rot-end: -28deg; --dur: 1.18s; --delay: 0.08s; }
.result_confetti_piece:nth-child(7) { --size: 4vh; --dx: -26vh; --dy: -8vh; --rot-start: -12deg; --rot-end: -78deg; --dur: 1.32s; --delay: 0.13s; }
.result_confetti_piece:nth-child(8) { --size: 2.7vh; --dx: 8vh; --dy: -28vh; --rot-start: 22deg; --rot-end: 64deg; --dur: 1.12s; --delay: 0.06s; }
.result_confetti_piece:nth-child(9) { --size: 3.2vh; --dx: 28vh; --dy: 8vh; --rot-start: -8deg; --rot-end: 48deg; --dur: 1.2s; --delay: 0.18s; }
.result_confetti_piece:nth-child(10) { --size: 2.3vh; --dx: -14vh; --dy: 24vh; --rot-start: 32deg; --rot-end: -16deg; --dur: 1.08s; --delay: 0.11s; }
.result_confetti_piece:nth-child(11) { --size: 3.8vh; --dx: -30vh; --dy: 4vh; --rot-start: -24deg; --rot-end: -88deg; --dur: 1.26s; --delay: 0.02s; }
.result_confetti_piece:nth-child(12) { --size: 2.9vh; --dx: 12vh; --dy: 26vh; --rot-start: 6deg; --rot-end: 72deg; --dur: 1.16s; --delay: 0.15s; }

@keyframes result_confetti_fly {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(var(--rot-start)) scale(0.3);
    }
    14% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) rotate(var(--rot-end)) scale(1);
    }
}

.result_screen.is-compact .result_confetti {
    display: none;
}

.result_more,
.result_actions {
    opacity: 0;
    pointer-events: none;
}

.result_screen.is-compact .result_more {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.result_screen.is-saved .result_rings,
.result_screen.is-saved .result_title,
.result_screen.is-saved .result_score_wrap,
.result_screen.is-saved .result_more {
    opacity: 0;
    pointer-events: none;
    animation: none;
    transition: opacity 0.4s ease;
}

.result_end_qr {
    position: absolute;
    left: 50%;
    top: 25vh;
   height: 17%;
    transform: translateX(-50%) translateY(6%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2vh;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

.result_bg_q {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 280%;
    width: auto;
    transform: translate(-50%, -57%);
    z-index: 0;
    pointer-events: none;
}

.result_bg_q img {
    position: relative;
    height: 100%;
    width: auto;
}

.result_end_qr_code {
    position: relative;
    height: 100%;
    z-index: 1;
}

.result_screen.is-saved .result_end_qr {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.55s ease 0.2s, transform 0.7s ease 0.15s;
}

.result_screen.is-saved .result_actions {
    opacity: 1;
    pointer-events: auto;
    top: auto;
    bottom: 24vh;
    width: 72%;
    flex-direction: column;
    gap: 2.8vh;
    transform: translateX(-50%) translateY(0);
    justify-content: center;
    transition: opacity 0.5s ease 0.35s, transform 0.5s ease 0.35s;
}

.result_more {
    position: absolute;
    left: 50%;
    top: 35%;
    width: 88%;
    bottom: auto;
    height: auto;
    transform: translateX(-50%) translateY(3%);
    display: flex;
    flex-direction: column;
    gap: 1.6vh;
    z-index: 2;
}

.result_screen.is-compact .result_more {
    transform: translateX(-50%) translateY(0);
}

.result_areas,
.result_form,
.result_qr {
    box-sizing: border-box;
    border-radius: 3.2vh;
    background: linear-gradient(180deg, #0F1214 0%, rgba(30, 42, 73, 0.2) 100%);
    border: 0.14vh solid rgba(191, 208, 255, 0.5);
}

.result_areas {
    flex: 0 0 auto;
    width: 100%;
    padding: 1.8vh 2.6vh 2vh;
    display: flex;
    flex-direction: column;
    gap: 1vh;
    align-items: center;
}

.result_areas_title {
    margin: 0;
    font-family: Outfit, sans-serif;
    font-weight: 400;
    font-size: 1.9vh;
    line-height: 1.3;
    color: #84A9F6;
}

.result_areas_line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55vh 0.7vh;
    font-family: Figtree, sans-serif;
    font-weight: 400;
    font-size: 1.45vh;
    line-height: 1.35;
    color: #E6EEFC;
}

.result_areas_item {
    white-space: nowrap;
}

.result_areas_chunk {
    display: inline-flex;
    align-items: center;
    gap: 0.7vh;
    white-space: nowrap;
}

.result_areas_dot {
    width: 0.55vh;
    height: 0.55vh;
    border-radius: 50%;
    background: #FD3132;
    flex-shrink: 0;
}

.result_split {
    flex: 0 0 auto;
    align-items: stretch;
    display: flex;
    flex-direction: row;
    gap: 1.6vh;
}

.result_form {
    flex: 2;
    min-width: 0;
    padding: 2vh 2.4vh 2.2vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.2vh;
}

.result_form_copy {
    width:auto;
    height: 4.76vh;
    max-height: 8.2vh;
    object-fit: contain;
    object-position: left center;
}

.result_form_label {
    font-family: Figtree, sans-serif;
    font-weight: 400;
    font-size: 1.7vh;
    color: #84A9F6;
}

.result_name {
    width: 100%;
    box-sizing: border-box;
    height: 4.6vh;
    padding: 0 2vh;
    border: 0.14vh solid rgba(191, 208, 255, 0.5);
    border-radius: 999px;
    background: rgba(15, 18, 20, 0.65);
    font-family: Figtree, sans-serif;
    font-weight: 400;
    font-size: 2vh;
    color: #E6EEFC;
    outline: none;
}

.result_name::placeholder {
    color: rgba(230, 238, 252, 0.45);
}

.result_form.is-invalid .result_name {
    border-color: #FD3132;
}

.result_error {
    margin: 0;
    font-family: Figtree, sans-serif;
    font-weight: 400;
    font-size: 1.7vh;
    line-height: 1.2;
    color: #FD3132;
}

.result_error[hidden] {
    display: none;
}

.result_form .result_btn_save {
    width: 100%;
    flex: 0 0 auto;
    margin-top: 0.4vh;
}

.result_qr {
    flex: 1;
    min-width: 0;
    padding: 2vh 1.6vh 1.8vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2vh;
}

.result_qr_img {
    width: 100%;
    height: auto;
}

.result_qr_caption {
    margin: 0;
    font-family: Outfit, sans-serif;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    color: #E6EEFC;
}

.result_qr_caption_form {
    font-size: 1.55vh;
}

.result_qr_caption_end {
    position: relative;
    z-index: 1;
    font-size: 2.55vh;
    white-space: nowrap;
    flex-shrink: 0;
}

.result_actions {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: 12%;
    width: 88%;
    transform: translateX(-50%) translateY(3%);
    display: flex;
    gap: 1.6vh;
    z-index: 2;
}

.result_btn {
    flex: 1;
    height: 5.2vh;
    padding: 0;
    border: 0;
    border-radius: 999px;
    font-family: Outfit, sans-serif;
    font-weight: 400;
    font-size: 2.2vh;
    color: #E6EEFC;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.result_btn_save {
    background: #FD3132;
}

.result_btn_rank {
    display: none;
    background: #3D6BFF;
}

.result_btn_new {
    display: none;
    background: #FD3132;
}

.result_screen.is-saved .result_btn_rank,
.result_screen.is-saved .result_btn_new {
    display: block;
    width: 100%;
    flex: none;
}

