@font-face {
    font-family: 'OpenSans-Bold';
    src: url('/fonts/OpenSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'OpenSans-ExtraBold';
    src: url('/fonts/OpenSans-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'PTSans-Bold';
    src: url('/fonts/PTSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'PTSans-Regular';
    src: url('/fonts/PTSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

body {
    margin: 0;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;

    --figma-w: 802;
    --screen-w: min(100vw, calc(100vh * (9 / 16)));
}

/* Background */
.interactive-bg-screen {
    position: relative;
    aspect-ratio: 9 / 16;
    max-height: 100vh;
    max-width: 100vw;
    background-color: #000;
    overflow: hidden;
}

    .interactive-bg-screen .bg-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.screen-white-mode {
    background-color: #FFFFFF !important;
}

    .screen-white-mode .bg-image {
        display: none !important;
    }

/* Click zones */
.click-zone {
    position: absolute;
    cursor: pointer;
/*    border: 2px solid rgba(255, 0, 0, 0.6); background: rgba(255, 0, 0, 0.2);*/
    z-index: 10;
}

#btn-start {
    top: 83%;
    left: 14%;
    width: 75%;
    height: 13%;
}

.btn-next {
    top: 83%;
    left: 15%;
    width: 70%;
    height: 13%;
}

.back1-btn-zone {
    top: 4%;
    left: 4%;
    width: 14%;
    height: 8%;
}

.back2-btn-zone {
    top: 3%;
    left: 1%;
    width: 13%;
    height: 8%;
}

.prev-btn-zone {
    top: 43%;
    left: 7%;
    width: 16%;
    height: 10%;
}

.next-btn-zone {
    top: 43%;
    right: 7%;
    width: 16%;
    height: 10%;
}

.select-btn-zone {
    bottom: 4%;
    left: 14%;
    width: 74%;
    height: 13%;
}

.reshoot-btn-zone {
    top: 66%;
    left: 35%;
    width: 30%;
    height: 14%;
}

.zone-agree {
    top: calc(550 / var(--figma-w) * var(--screen-w));
    left: calc(133 / var(--figma-w) * var(--screen-w));
    width: calc(342 / var(--figma-w) * var(--screen-w));
    height: calc(81 / var(--figma-w) * var(--screen-w));
}

.zone-disagree {
    top: calc(650 / var(--figma-w) * var(--screen-w));
    left: calc(133 / var(--figma-w) * var(--screen-w));
    width: calc(342 / var(--figma-w) * var(--screen-w));
    height: calc(81 / var(--figma-w) * var(--screen-w));
}


/* Buttons */
#btn-car-prev {
    position: absolute;
    width: calc(84 / var(--figma-w) * var(--screen-w));
    top: calc(643 / var(--figma-w) * var(--screen-w));
    left: calc(81 / var(--figma-w) * var(--screen-w));
    z-index: 5;
}

#btn-car-next {
    position: absolute;
    width: calc(84 / var(--figma-w) * var(--screen-w));
    top: calc(643 / var(--figma-w) * var(--screen-w));
    left: calc(641 / var(--figma-w) * var(--screen-w));
    z-index: 5;
}

#btn-car-prev img,
#btn-car-next img {
    width: 100%;
}

.snap-btn {
    position: absolute;
    top: calc(1143 / var(--figma-w) * var(--screen-w));
    left: 50%;
    transform: translateX(-50%);
    width: calc(133 / var(--figma-w) * var(--screen-w));
    height: auto;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.1s ease-in-out;
}

    .snap-btn img {
        width: 100%;
        height: auto;
        display: block;
    }

    .shoot-btn:active {
        transform: translateX(-50%) scale(0.92);
    }

.reshoot-btn {
    position: absolute;
    top: calc(965 / var(--figma-w) * var(--screen-w));
    left: 50%;
    transform: translateX(-50%);
    width: calc(158 / var(--figma-w) * var(--screen-w));
    height: auto;
    cursor: pointer;
    z-index: 10;
}

    .reshoot-btn img {
        width: 100%;
        height: auto;
        display: block;
    }

.bear-card {
    cursor: pointer;
    transition: transform 0.15s ease-in-out;
}

.bear-card:hover {
    transform: scale(1.02);
}

.bear-card.selected {
    border: 3px solid #0d6efd;
}

/* Frames */
.neon-frame {
    position: relative;
    box-sizing: border-box;
    box-shadow: 0px 4px 46.6px #D9FF00;
    border-radius: calc(53 / var(--figma-w) * var(--screen-w));
    overflow: hidden;
    z-index: 3;
}

    .neon-frame img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        display: block;
    }

    .neon-frame::after {
        content: '';
        position: absolute;
        inset: 0;
        border: calc(9 / var(--figma-w) * var(--screen-w)) solid #D9FF00;
        border-radius: inherit;
        box-sizing: border-box;
        pointer-events: none;
    }

.result-photo-layout {
    position: absolute;
    width: calc(727 / var(--figma-w) * var(--screen-w));
    height: calc(727 / var(--figma-w) * var(--screen-w));
    left: calc(52 / var(--figma-w) * var(--screen-w));
    top: calc(304 / var(--figma-w) * var(--screen-w));
}

.mail-photo-layout {
    position: absolute;
    width: calc(531 / var(--figma-w) * var(--screen-w));
    height: calc(531 / var(--figma-w) * var(--screen-w));
    left: calc(145 / var(--figma-w) * var(--screen-w));
    top: calc(399 / var(--figma-w) * var(--screen-w));
}

/* Camera */
.camera-frame {
    box-sizing: border-box;
    position: absolute;
    left: calc(50 / var(--figma-w) * var(--screen-w));
    top: calc(333 / var(--figma-w) * var(--screen-w));
    width: calc(704 / var(--figma-w) * var(--screen-w));
    height: calc(1010 / var(--figma-w) * var(--screen-w));
    background: #000000;
    border: calc(6 / var(--figma-w) * var(--screen-w)) solid #D9FF00;
    box-shadow: 0px 4px 79.6px -16px #D9FF00;
    border-radius: calc(79 / var(--figma-w) * var(--screen-w));
    overflow: hidden;
    z-index: 5;
}

#camera-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 70%;
    object-fit: cover;
    transform: translate(-50%, -50%) rotate(90deg);
    z-index: 1;
}
/* Loading icon */
.petal {
    position: absolute;
    width: calc(329 / var(--figma-w) * var(--screen-w));
}

.filled-petal {
    position: absolute;
    width: calc(477 / var(--figma-w) * var(--screen-w));
    margin-left: calc(-74 / var(--figma-w) * var(--screen-w));
}

.loading-icon {
    position: absolute;
    width: calc(742 / var(--figma-w) * var(--screen-w));
    height: calc(717 / var(--figma-w) * var(--screen-w));
    left: calc(37 / var(--figma-w) * var(--screen-w));
    top: calc(391 / var(--figma-w) * var(--screen-w));
    z-index: 5;
}

    .loading-icon .top {
        left: calc(206 / var(--figma-w) * var(--screen-w));
        top: calc(160 / var(--figma-w) * var(--screen-w));
        transform: translateY(-50%) rotate(180deg);
    }

    .loading-icon .right {
        left: calc(402 / var(--figma-w) * var(--screen-w));
        top: calc(355 / var(--figma-w) * var(--screen-w));
        transform: translateY(-50%) rotate(270deg) scaleX(-1);
    }

    .loading-icon .bottom {
        left: calc(206 / var(--figma-w) * var(--screen-w));
        top: calc(545 / var(--figma-w) * var(--screen-w));
        transform: translateY(-50%);
    }

    .loading-icon .left {
        left: calc(16 / var(--figma-w) * var(--screen-w));
        top: calc(352 / var(--figma-w) * var(--screen-w));
        transform: translateY(-50%) rotate(90deg) scaleX(-1);
    }

/* Images */
.cover-front {
    position: absolute;
    left: calc(54 / var(--figma-w) * var(--screen-w));
    top: calc(461 / var(--figma-w) * var(--screen-w));
    width: calc(699 / var(--figma-w) * var(--screen-w));
    height: calc(676 / var(--figma-w) * var(--screen-w));
    z-index: 5;
}

.cover-back {
    position: absolute;
    left: calc(0 / var(--figma-w) * var(--screen-w));
    top: calc(361 / var(--figma-w) * var(--screen-w));
    width: calc(802 / var(--figma-w) * var(--screen-w));
    height: calc(848 / var(--figma-w) * var(--screen-w));
    z-index: 2;
}

/* Text */
.pt-h1 {
    position: absolute;

    font-family: PTSans-Bold;

    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.pt-p {
    position: absolute;
    font-family: PTSans-Regular;
    font-style: normal;
    font-weight: 400;

    display: flex;
    align-items: center;
    text-align: center;
}

    .pt-p.invalid {
        color: #C14F4F;
    }

.attempts-number {
    left: calc(333 / var(--figma-w) * var(--screen-w));
    top: calc(1175 / var(--figma-w) * var(--screen-w));

    font-size: calc(24 / var(--figma-w) * var(--screen-w));
    line-height: calc(27 / var(--figma-w) * var(--screen-w));

    letter-spacing: 0.04em;
    color: #FFFFFF;
    transform: matrix(1, 0, 0.01, 1, 0, 0);
}

.loading-text {
    width: calc(303 / var(--figma-w) * var(--screen-w));
    height: calc(108 / var(--figma-w) * var(--screen-w));
    left: calc(262 / var(--figma-w) * var(--screen-w));
    top: calc(1152 / var(--figma-w) * var(--screen-w));

    font-size: calc(150 / var(--figma-w) * var(--screen-w));
    line-height: calc(62 / var(--figma-w) * var(--screen-w));

    text-transform: uppercase;
    color: #D9FF00;
    text-shadow: 0px calc(-2 / var(--figma-w) * var(--screen-w)) calc(16 / var(--figma-w) * var(--screen-w)) #D9FF00;
    transform: matrix(1, 0.01, -0.02, 1, 0, 0);
}

.agreement-text {
    left: calc(295 / var(--figma-w) * var(--screen-w));
    top: calc(1125 / var(--figma-w) * var(--screen-w));
    font-size: calc(24 / var(--figma-w) * var(--screen-w));
    line-height: calc(27 / var(--figma-w) * var(--screen-w));
    letter-spacing: 0.04em;
    color: #FFFFFF;
    transform: matrix(1, 0, 0.01, 1, 0, 0);
}

.policy-link {
    text-decoration: underline;
    cursor: pointer;
}

.camera-countdown {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: PTSans-Bold;
    font-style: normal;
    font-weight: 700;
    font-size: calc(307 / var(--figma-w) * var(--screen-w));
    line-height: calc(356 / var(--figma-w) * var(--screen-w));
    color: #D9FF00;
    text-shadow: calc(-2 / var(--figma-w) * var(--screen-w)) calc(1.5 / var(--figma-w) * var(--screen-w)) calc(10 / var(--figma-w) * var(--screen-w)) rgba(217, 255, 0, 0.68);
    z-index: 10;
    pointer-events: none;
}

/* Inputs */
.input {
    box-sizing: border-box;
    position: absolute;
    background: rgba(7, 21, 40, 4);
    border: 5px solid #D9FF00;
    box-shadow: 0px 0px 22.1px #D9FF00;
    outline: none;
    font-family: PTSans-Regular;
    font-weight: 400;
    font-size: calc(40 / var(--figma-w) * var(--screen-w));
    line-height: calc(27 / var(--figma-w) * var(--screen-w));
    letter-spacing: 0.04em;
    text-align: center;
    color: #FFFFFF;
}

    .input::placeholder {
        color: rgba(255, 255, 255, 0.35);
    }

    .input.invalid {
        background: rgba(7, 21, 40, 0.74);
        border: 5px solid #FF0004;
        box-shadow: 0px 0px 22.1px #FF0004;
        color: #C14F4F;
    }

.mail-input {
    width: calc(463 / var(--figma-w) * var(--screen-w));
    height: calc(117 / var(--figma-w) * var(--screen-w));
    left: calc(184 / var(--figma-w) * var(--screen-w));
    top: calc(980 / var(--figma-w) * var(--screen-w));
    border-radius: calc(37 / var(--figma-w) * var(--screen-w));
}

.agreement-input {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    width: calc(51 / var(--figma-w) * var(--screen-w));
    height: calc(52 / var(--figma-w) * var(--screen-w));
    left: calc(218 / var(--figma-w) * var(--screen-w));
    top: calc(1127 / var(--figma-w) * var(--screen-w));
    border-radius: calc(12 / var(--figma-w) * var(--screen-w));
}

    .agreement-input:checked {
        background-image: url('/imgs/icons/check.svg');
        background-size: 85%;
        background-position: center;
        background-repeat: no-repeat; 
    }

/* Selector */
.selector-card {
    box-sizing: border-box;
    position: absolute;
    border-radius: calc(23 / var(--figma-w) * var(--screen-w));
    background: rgba(0, 0, 0, 0.004);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: all 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-img-wrapper {
    width: 100%;
    height: 75%;
}

    .card-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit:contain;
        display: block;
    }

    .card-img-wrapper video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.card-text-wrapper {
    width: 100%;
    height: 33.34%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

    .card-text-wrapper h1 {
        margin: 0 0 10px 0;
        color: #FFFFFF;
        text-transform: uppercase;
        font-family: PTSans-Bold;
        font-weight: 700;
        font-size: calc(36 / var(--figma-w) * var(--screen-w));
        transition: transform 0.5s ease-in-out;
        transform-origin: top center;
    }

    .card-text-wrapper p {
        margin: 0;
        color: rgba(255, 255, 255, 0.8);
        font-family: PTSans-Regular;
        font-size: calc(24 / var(--figma-w) * var(--screen-w));
        white-space: nowrap;
        transition: transform 0.5s ease-in-out;
        transform-origin: top center;
    }

.state-center {
    width: calc(541 / var(--figma-w) * var(--screen-w));
    height: calc(815 / var(--figma-w) * var(--screen-w));
    left: calc(136 / var(--figma-w) * var(--screen-w));
    top: calc(325 / var(--figma-w) * var(--screen-w));
    border: calc(5 / var(--figma-w) * var(--screen-w)) solid #00FF44;
    box-shadow: inset 4px 34px 196.4px -77px rgba(0, 255, 68, 0.82);
    z-index: 3;
    opacity: 1;
}

.state-left {
    width: calc(383 / var(--figma-w) * var(--screen-w));
    height: calc(531 / var(--figma-w) * var(--screen-w));
    left: calc(-283 / var(--figma-w) * var(--screen-w));
    top: calc(459 / var(--figma-w) * var(--screen-w));
    border: calc(5 / var(--figma-w) * var(--screen-w)) solid #FFE100;
    box-shadow: inset 4px 34px 196.4px -77px rgba(255, 140, 0, 0.82);
    z-index: 2;
    opacity: 1;
}

.state-right {
    width: calc(383 / var(--figma-w) * var(--screen-w));
    height: calc(531 / var(--figma-w) * var(--screen-w));
    left: calc(705 / var(--figma-w) * var(--screen-w));
    top: calc(459 / var(--figma-w) * var(--screen-w));
    border: calc(5 / var(--figma-w) * var(--screen-w)) solid #FFE100;
    box-shadow: inset 4px 34px 196.4px -77px rgba(255, 140, 0, 0.82);
    z-index: 2;
    opacity: 1;
}

.state-hidden-left {
    width: calc(383 / var(--figma-w) * var(--screen-w));
    height: calc(531 / var(--figma-w) * var(--screen-w));
    left: calc(-800 / var(--figma-w) * var(--screen-w));
    top: calc(459 / var(--figma-w) * var(--screen-w));
    border: 5px solid #FFE100;
    z-index: 1;
    opacity: 0;
}

.state-hidden-right {
    width: calc(383 / var(--figma-w) * var(--screen-w));
    height: calc(531 / var(--figma-w) * var(--screen-w));
    left: calc(1200 / var(--figma-w) * var(--screen-w));
    top: calc(459 / var(--figma-w) * var(--screen-w));
    border: 5px solid #FFE100;
    z-index: 1;
    opacity: 0;
}

    .state-left .card-text-wrapper p,
    .state-right .card-text-wrapper h1,
    .state-right .card-text-wrapper p,
    .state-hidden-left .card-text-wrapper h1,
    .state-hidden-left .card-text-wrapper p,
    .state-hidden-right .card-text-wrapper h1,
    .state-hidden-right .card-text-wrapper p {
        transform: scale(0.7);
    }

/* Keyboard */
.simple-keyboard {
    position: absolute;
    top: calc(1110 / var(--figma-w) * var(--screen-w)) !important;
    z-index: -1;
}

.hg-button {
    height: calc(55 / var(--figma-w) * var(--screen-w)) !important;
    font-family: PTSans-Regular !important;
    font-size: calc(25 / var(--figma-w) * var(--screen-w)) !important;
}

.simple-keyboard .hg-button-space {
    flex-grow: 4 !important;
    max-width: 80% !important;
}

.hg-button[data-skbtn=".com"],
.hg-button[data-skbtn="@"] {
    flex-grow: 1 !important;
    flex-basis: 10% !important;
    min-width: calc(80 / var(--figma-w) * var(--screen-w)) !important;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.d-none {
    display: none !important;
}

.modal-agreement-bg {
    position: relative;
    width: calc(609 / var(--figma-w) * var(--screen-w));
    height: calc(859 / var(--figma-w) * var(--screen-w));
    background-image: url('/imgs/pages/mail/agreement.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.modal-text-container {
    position: absolute;
    top: calc(266 / var(--figma-w) * var(--screen-w));
    left: calc(56 / var(--figma-w) * var(--screen-w));
    width: calc(497 / var(--figma-w) * var(--screen-w));
    height: calc(225 / var(--figma-w) * var(--screen-w));
    border: calc(2 / var(--figma-w) * var(--screen-w)) solid #FFFFFF;
    border-radius: calc(24 / var(--figma-w) * var(--screen-w));
    padding: calc(15 / var(--figma-w) * var(--screen-w));
    overflow: hidden;
}

.modal-text-scroll {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    font-family: PTSans-Regular;
    font-size: calc(25 / var(--figma-w) * var(--screen-w));
    line-height: calc(26 / var(--figma-w) * var(--screen-w));
    letter-spacing: 0.02em;
    color: #FFFFFF;
    padding-left: calc(10 / var(--figma-w) * var(--screen-w));
    padding-right: calc(15 / var(--figma-w) * var(--screen-w));
    padding-top: calc(10 / var(--figma-w) * var(--screen-w));
}

    .modal-text-scroll::-webkit-scrollbar {
        width: calc(16 / var(--figma-w) * var(--screen-w));
    }

    .modal-text-scroll::-webkit-scrollbar-track {
        background: #54277A;
        border-radius: calc(8 / var(--figma-w) * var(--screen-w));
    }

    .modal-text-scroll::-webkit-scrollbar-thumb {
        background: #9563BF;
        border-radius: calc(8 / var(--figma-w) * var(--screen-w));
    }

.modal-system-bg {
    box-sizing: border-box;
    width: 70%;
    position: relative;
    background: linear-gradient(155.81deg, #3A34DD -13.2%, #693396 69.56%);
    border: calc(6 / var(--figma-w) * var(--screen-w)) solid #D9FF00;
    box-shadow: 0px calc(-4 / var(--figma-w) * var(--screen-w)) calc(24.8 / var(--figma-w) * var(--screen-w)) #D9FF00, 0px calc(4 / var(--figma-w) * var(--screen-w)) calc(8.2 / var(--figma-w) * var(--screen-w)) rgba(0, 0, 0, 0.25), inset 0px calc(4 / var(--figma-w) * var(--screen-w)) calc(67.8 / var(--figma-w) * var(--screen-w)) #D9FF00;
    border-radius: calc(55 / var(--figma-w) * var(--screen-w));
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: calc(80 / var(--figma-w) * var(--screen-w));
    padding-bottom: calc(80 / var(--figma-w) * var(--screen-w));
}

.modal-system-text-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
}

.modal-system-text {
    font-family: PTSans-Regular;
    font-size: calc(35 / var(--figma-w) * var(--screen-w));
    line-height: calc(45 / var(--figma-w) * var(--screen-w));
    color: #FFFFFF;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

.modal-system-btn-wrapper {
    width: calc(342 / var(--figma-w) * var(--screen-w));
}

.btn-system-large {
    border: none;
    outline: none;
    cursor: pointer;
    padding: calc(20 / var(--figma-w) * var(--screen-w));
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    background: #D9FF00;
    border-radius: calc(39 / var(--figma-w) * var(--screen-w));
    box-shadow: 0px calc(13 / var(--figma-w) * var(--screen-w)) calc(22 / var(--figma-w) * var(--screen-w)) rgba(0, 0, 0, 0.25);
    font-family: PTSans-Bold;
    font-weight: 700;
    font-size: calc(45 / var(--figma-w) * var(--screen-w));
    color: #2D323B;
    margin-top: calc(20 / var(--figma-w) * var(--screen-w));
}

    .btn-system-large:active {
        transform: scale(0.97);
        box-shadow: 0px calc(6 / var(--figma-w) * var(--screen-w)) calc(10 / var(--figma-w) * var(--screen-w)) rgba(0, 0, 0, 0.25);
    }
