* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #141615;
    --text-white: #ffffff;
    --text-off-white: rgba(255, 255, 255, 0.9);
    --bg-text-color: #999999;
    --hero-bg: #d1c8b3;
    --font-hero: 4.5rem;
    --font-intro: 9.375rem;
    --font-body: 2.5rem;
    --font-bg-large: 11.25rem;
    --font-bg-small: 5rem;
}

html {
    font-size: 1.1112vw;
}

@media (max-width: 768px) {
    html {
        font-size: 1.25vw;
    }
}

@media (max-width: 575px) {
    html {
        font-size: 2.25vw;
    }
}

body {
    font-family: 'Bricolage Grotesque', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: fadeInBody 1s ease-in-out forwards;
}

@keyframes fadeInBody {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.main-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

body.scroll-locked {
    overflow-y: scroll !important;
    height: 100vh !important;
}

body.popup-zoomed {
    overflow: hidden !important;
}

body.scroll-locked .main-container {
    height: 100vh !important;
    overflow: hidden !important;
}

#black-screen {
    position: absolute;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: #000;
    z-index: 100;
    pointer-events: none;
}

.hero-intro-pin {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-section {
    position: absolute;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

.start-journey-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    pointer-events: none;
    z-index: 50;
    /* Above video, below unmute btn */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.start-journey-prompt p {
    font-size: 1.25rem;
    margin: 0;
    opacity: 0;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.scroll-line-container {
    width: 2px;
    height: 60px;
    opacity: 0;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00FF00;
    /* Flashing green line */
    transform-origin: top;
    animation: downwardSweep 2s ease-in-out infinite;
}

@keyframes downwardSweep {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    40% {
        transform: scaleY(1);
        transform-origin: top;
    }

    40.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    80% {
        transform: scaleY(0);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

.unmute-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 101;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: white;
    padding: 0;
    transition: background 0.3s, transform 0.2s;
}

.unmute-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.video-bg-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.desktop-hero-media {
    display: block;
}

.mobile-hero-media {
    display: none;
}

@media (max-width: 575px) {
    .desktop-hero-media {
        display: none;
    }

    .mobile-hero-media {
        display: block;
    }
}

.brand-logo {
    position: absolute;
    top: clamp(20px, 3.5vh, 40px);
    left: clamp(20px, 10vw, 154px);
    z-index: 10;
    width: clamp(120px, 13.8vw, 200px);
    height: auto;
    opacity: 1;
    visibility: hidden;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    max-width: 1440px;
    width: 100%;
    padding: 0 5vw;
}

.hero-title {
    font-size: var(--font-hero);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-white);
    text-shadow: 5px 5px 30px #4d4d3a;
    margin: 0;
    white-space: nowrap;
}

.typewriter-cursor {
    font-weight: 800;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.intro-section {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-color: transparent;
    z-index: 10;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    max-width: 1440px;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    will-change: transform, opacity;
}

.intro-fly-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    margin: 0;
    opacity: 0;
    font-size: 4rem;
    white-space: nowrap;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    text-align: center;
}

.doom-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(to bottom, #141615 0%, #242424 100%);
    margin-top: 0;
    z-index: 20;
}

.background-container {
    position: absolute;
    top: 0;
    height: 100vh;
    width: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.columns-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.doom-col {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.doom-col-content {
    font-size: var(--font-bg-small);
    line-height: 6.1875rem;
    font-weight: 800;
    color: rgba(102, 102, 102, 0.2);
    letter-spacing: 0.1875rem;
    white-space: pre;
    text-align: center;
    width: 100%;
    min-height: 2000vh;
    will-change: transform;
    filter: blur(0.35rem);
}

.large-blur {
    position: absolute;
    font-size: var(--font-bg-large);
    line-height: 1.1;
    font-weight: 800;
    color: rgba(102, 102, 102, 0.3);
    filter: blur(4px);
    letter-spacing: 0.1875rem;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.foreground-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

.text-block {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    max-width: 1440px;
    text-align: center;
}

.mb-larger {
    margin-bottom: 26.875rem;
}

.mb-large {
    margin-bottom: 15rem;
}

.mb-medium {
    margin-bottom: 4.6875rem;
}

.mb-small {
    margin-bottom: 3.75rem;
}

.final-text-block {
    margin-bottom: 0;
    gap: 0;
}

.doom-text {
    margin: 0;
    font-size: var(--font-body);
    font-weight: 700;
    line-height: 1.65;
    color: var(--text-white);
}

.stat-highlight {
    color: #01ff85;
    font-size: 1.25em;
    line-height: 1;
    display: inline-block;
    vertical-align: baseline;
}

.phone-block-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 5vh;
    pointer-events: auto;
    background: transparent;
}

.noise-overlay-bottom {
    position: absolute;
    inset: 0;
    background-image: url('../NOISE.svg');
    background-size: cover;
    background-repeat: repeat;
    z-index: 1;
    pointer-events: none;
}

.phone-ui {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, 4vh, 40px);
}

.phone-inner {
    position: relative;
    width: clamp(250px, 25vw, 419px);
    border-radius: 40px;
    overflow: hidden;
}

.stat-highlight {
    color: #01ff85;
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1;
}

.stats-block {
    margin-bottom: 50vh;
}

.open-field-section {
    position: relative;
    width: 100%;
    background-color: #242424;
    z-index: 50;
    overflow: hidden;
}

.open-door-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.open-door-img {
    width: 100%;
    height: auto;
    display: block;
}

.new-enter-btn {
    position: absolute;
    bottom: 5vw;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 10px 40px;
    color: #fff;
    font-size: 1.5rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.new-enter-btn:hover {
    background: #fff;
    color: #000;
}

.open-field-image-container {
    position: relative;
    width: 100vw;
    height: auto;
    overflow: hidden;
}

.only-girl-img {
    width: 100vw;
    height: auto;
    display: block;
    position: relative;
    z-index: 3;
}

.door-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: auto;
    display: block;
    z-index: 2;
    will-change: transform;
}

.phone-hand-img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.enter-btn {
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s;
    animation: pulseBrightness 1s infinite alternate;
}

.enter-btn-img {
    width: 13.75rem;
    height: auto;
    display: block;
}

@keyframes pulseBrightness {
    0% {
        filter: brightness(0.4);
    }

    100% {
        filter: brightness(1);
    }
}

.popups-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
}

.open-field-section {
    position: relative;
    width: 100%;
    background-color: #242424;
    z-index: 50;
    overflow: hidden;
}

.open-field-image-container {
    position: relative;
    width: 100%;
}

.open-field-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.character-grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-bottom: 10vw;
    z-index: 3;
}

.character-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(60px, 10vw, 150px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5vw;
}

@media (max-width: 768px) {
    .character-grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }
}

.character-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    will-change: transform, opacity;
}

.char-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.char-title::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: -5%;
    width: 110%;
    height: 24px;
    z-index: -1;
}

.magpie .char-title::after {
    background-color: #374c4e;
}

.guardian .char-title::after {
    background-color: #8a5e88;
}

.secret-romantic .char-title::after {
    background-color: #d46930;
}

.burning-bright .char-title::after {
    background-color: #a73352;
}

.char-box {
    background-color: #dcf0f2;
    border-radius: 10px;
    padding: clamp(20px, 3vh, 30px);
    width: clamp(250px, 30vw, 340px);
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.char-box p {
    font-size: 1.625rem;
    font-weight: 500;
    line-height: 1.3;
    color: #000;
    margin: 0;
}

.final-experience-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: var(--bg-color);
    display: none;
    opacity: 0;
    z-index: 10;
    overflow-y: auto;
    overflow-x: hidden;
}

.final-content-wrapper {
    position: relative;
    width: 100%;
    height: auto;
}

.final-bg-img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
}

.final-cloud-text {
    position: absolute;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 42.1875rem;
    height: auto;
    z-index: 2;
    opacity: 0;
    clip-path: inset(0% 0% 100% 0%);
    will-change: opacity, transform, clip-path;
}

.avatars-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.avatar-wrapper {
    position: absolute;
    opacity: 0;
    will-change: transform, opacity;
    pointer-events: auto;
}

@media (min-width: 767px) {
    .avatar-wrapper {
        position: static;
    }

    .final-bg-img {
        height: 100%;
    }

    .avatars-container {
        position: relative;
        min-height: 100dvh;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        justify-items: center;
        align-items: center;
    }

    .final-cloud-text {
        width: auto;
        max-width: initial;
        height: 100dvh;
        position: static;
        transform: translateX(0);
    }
}


/* .avatar-burning-bright {
    left: 11.3125rem;
    bottom: 46.4375rem;
    max-width: 30.1875rem;
}

.avatar-magpie {
    right: 10.5625rem;
    bottom: 47.125rem;
    max-width: 31.75rem;
}

.avatar-secret-romantic {
    left: 9.75rem;
    bottom: 8.125rem;
    max-width: 33.6875rem;
}

.avatar-guardian {
    right: 9.8125rem;
    bottom: 10.625rem;
    max-width: 34.3125rem;
} */

@media (min-width: 768px) {
    .avatar-burning-bright {
        /* left: clamp(20px, 35vw, 20rem); */
        /* bottom: clamp(20px, 55vh, 50rem); */
        width: clamp(150px, min(25vw, 39vh), 30.1875rem);
    }

    .avatar-magpie {
        /* right: clamp(20px, 35vw, 20rem); */
        /* bottom: clamp(20px, 56vh, 50rem); */
        width: clamp(150px, min(25vw, 40vh), 31.75rem);
    }

    .avatar-secret-romantic {
        /* left: clamp(20px, 35vw, 20rem); */
        /* bottom: clamp(20px, 8vh, 10rem); */
        width: clamp(150px, min(25vw, 40vh), 33.6875rem);
    }

    .avatar-guardian {
        /* right: clamp(20px, 35vw, 20rem); */
        /* bottom: clamp(20px, 8vh, 10.625rem); */
        width: clamp(150px, min(25vw, 43vh), 34.3125rem);
    }
}

.avatar-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s;
}

.avatar-img:hover {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0px 20px 30px rgba(0, 0, 0, 0.5)) brightness(1.05);
}

.character-form-popup {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 2000;
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.character-form-popup.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.form-overlay-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    z-index: 1;
    pointer-events: none;
}

.form-container {
    position: relative;
    z-index: 2;
    width: 36.5625rem;
    padding: 2rem 2.5625rem 2rem 2.875rem;
    margin: 5vh auto;
    background-color: rgba(255, 255, 255, 0.15);
    background-size: cover;
    border-radius: 0.625rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    will-change: transform;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.character-form-popup.active .form-container {
    transform: translateY(0);
}

.form-close-btn {
    position: absolute;
    top: 1.6875rem;
    right: 2.5625rem;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.form-banners {
    position: relative;
    width: 27.22rem;
    height: 7.19rem;
    margin: 0 auto;
    margin-bottom: 1rem;
    z-index: 10;
    pointer-events: none;
}

.banner {
    background-color: #01ff85;
    color: #242424;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 1.875rem;
    border-radius: 0.625rem;
    white-space: nowrap;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    line-height: 1;
}

.banner-top {
    top: 0;
    left: 0;
    transform: rotate(-3.38deg);
    z-index: 2;
}

.banner-bottom {
    bottom: 0;
    right: 0;
    transform: rotate(2.14deg);
    z-index: 1;
}

.character-form {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
    width: 100%;
    margin: 0;
}

.form-input,
.character-form input[type="text"],
.character-form input[type="email"] {
    width: 100%;
    background-color: rgba(55, 76, 78, 0.4);
    border: 1px solid transparent;
    border-radius: 0.625rem;
    padding: 0.75rem 1.0625rem;
    color: #fff;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
    outline: none;
    transition: border-color 0.2s;
}

.form-input::placeholder,
.character-form input[type="text"]::placeholder,
.character-form input[type="email"]::placeholder {
    color: #fff;
    opacity: 1;
}

.form-input:focus,
.character-form input[type="text"]:focus {
    border-color: #01ff85;
}

.form-input:-webkit-autofill,
.character-form input[type="text"]:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.character-form input[type="text"]:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.character-form input[type="text"]:-webkit-autofill:focus,
.form-input:-webkit-autofill:active,
.character-form input[type="text"]:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s, border-color 0.2s;
}

.form-submit-btn,
.character-form button.hsfc-Button {
    width: 100%;
    background-color: #01ff85;
    border: none;
    border-radius: 0.625rem;
    color: #141615;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 0;
    padding-block: 12px;
    line-height: 1.5;
    transition: transform 0.2s, background-color 0.2s;
}

.form-submit-btn:hover,
.character-form button.hsfc-Button:hover {
    transform: scale(1.02);
    color: #141615 !important;
    background-color: #00e075 !important;
}

.form-step {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-back-btn {
    position: absolute;
    top: 1.6875rem;
    right: 2.5625rem;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.success-blocks-wrapper {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 36.8125rem;
    pointer-events: none;
}

.success-block {
    grid-area: 1 / 1;
    background-color: #01ff85;
    color: #242424;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    border-radius: 0.625rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    line-height: 3rem;
}

.block-enter {
    font-size: 3.75rem;
    padding: 1.4375rem 2.5rem 1.4375rem 1.4375rem;
    transform: translate(-7.875rem, -11rem) rotate(-10.62deg);
    z-index: 1;
}

.block-the {
    font-size: 3.75rem;
    padding: 1.25rem 1.6875rem 1.5rem 1.375rem;
    transform: translate(4.4rem, -8.7rem) rotate(3.82deg);
    z-index: 2;
}

.block-open {
    font-size: 4.25rem;
    padding: 1.0625rem 0.9375rem 1.75rem 1.6875rem;
    transform: translate(-4.46rem, -1.9rem) rotate(-8.04deg);
    z-index: 3;
}

.block-field {
    font-size: 5rem;
    padding: 1.3125rem 2.3125rem 1.5rem 3.125rem;
    transform: translate(6.2rem, 4.8rem) rotate(7.47deg);
    z-index: 4;
}

.block-download {
    padding: 1.5rem 2.5rem;
    border: none;
    cursor: pointer;
    transform: translate(-1.54rem, 13.19rem) rotate(-8.92deg);
    z-index: 5;
    transition: transform 0.2s, background-color 0.2s;
}

.block-download svg {
    width: 4.5rem;
    height: auto;
    transform: rotate(7deg);
}

.block-download:hover {
    transform: translate(-1.54rem, 13.19rem) rotate(-8.92deg) scale(1.05);
    background-color: #00e075;
}

.form-step-3 {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100dvh;
}

.step-3-logo {
    max-width: 35.6875rem;
    height: auto;
    margin-bottom: 3rem;
}

.step-3-contact-btn {
    background-color: #01ff85;
    color: #141615;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-size: 1.875rem;
    padding: 1.5rem 3rem;
    border-radius: 0.625rem;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
    line-height: 1.08;
}

.step-3-contact-btn:hover {
    transform: scale(1.05);
    background-color: #00e075;
}

@media (max-width: 768px) {
    .hero-intro-pin {
        height: auto;
        overflow: visible;
    }

    .hero-section {
        position: relative;
        height: 100dvh;
    }

    .intro-fly-text,
    .text-block {
        white-space: normal;
        width: 70%;
        text-align: center;
    }

    .intro-fly-text br,
    .doom-text br {
        display: none;
        /* Hide manual line breaks so text wraps naturally and centers perfectly on narrow screens */
    }

    .intro-fly-text {
        font-size: 2rem !important;
        /* Scale down intro text */
    }

    .doom-text {
        font-size: 2rem !important;
        /* Scale down manifesto text */
    }

    .character-form-popup .form-container {
        width: 90vw !important;
        max-width: 400px !important;
        padding: 30px 20px !important;
    }

    .character-form-popup .form-close-btn {
        font-size: 24px !important;
        top: 15px !important;
        right: 20px !important;
    }

    .character-form-popup .form-banners {
        width: 320px !important;
        height: 75px !important;
        margin-bottom: 25px !important;
        margin-left: 0;
    }

    .character-form-popup .banner {
        font-size: 18px !important;
        padding: 8px 15px !important;
    }

    .character-form-popup .character-form {
        gap: 15px !important;
    }

    .character-form-popup .form-input,
    .character-form input[type="text"],
    .character-form input[type="email"] {
        font-size: 16px !important;
        padding: 12px 15px !important;
        border-radius: 8px !important;
    }

    .character-form-popup .form-submit-btn {
        font-size: 18px !important;
        padding-block: 12px !important;
        border-radius: 8px !important;
    }

    .open-field-image-container {
        height: 100dvh;
    }

    .only-girl-img,
    .door-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center bottom;
    }

    .avatars-container {
        top: 120vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        padding-bottom: 5rem;
        z-index: 3;
        height: auto;
    }

    .avatar-wrapper {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 80% !important;
    }

    .final-bg-img {
        aspect-ratio: 1 / 5;
    }

    .final-cloud-text {
        top: 10px;
        max-width: 90%;
    }

    .doom-col-content {
        font-size: 2.1rem;
        line-height: 1.1;
        filter: blur(0.2rem);
    }

    .columns-wrapper {
        gap: 1rem;
    }

    .doom-col {
        width: calc(50% - 0.5rem);
    }
}

[data-hsfc-id=Renderer] .hsfc-Step .hsfc-Step__Content {
    padding: 0 !important;
}

.hsfc-Step__Banner {
    height: 0 !important;
}

.hsfc-ErrorAlert {
    background: #850000;
    color: #ffffff !important;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 1rem !important;
}

@media (max-width: 767px) {
    .hsfc-ErrorAlert {
        font-size: 1.25rem !important;
    }

    .mb-larger {
        margin-bottom: 26.875rem;
    }

    .mb-large {
        margin-bottom: 15rem;
    }

    .mb-medium {
        margin-bottom: 4.6875rem;
    }

    .mb-small {
        margin-bottom: 3.75rem;
    }
}

@media (max-width: 500px) {
    .intro-fly-text {
        font-size: 3rem;
    }
}

@media (max-width: 400px) {
    .character-form-popup .form-banners {
        width: 100% !important;
    }
}

@media (min-width: 767px) {
    .final-bg-picture {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .bg-image {
        min-height: 100dvh;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}