@font-face {
    font-family: "against";
    font-display: swap;
    src: url("../assetsV2/fonts/against-regular.ttf");
}

.birthday_game {
    background-color: #f0d4ca;
}

.bday_section {
    --bday-gold: #a77431;
    --bday-gold-deep: #895527;
    --bday-ink: #333333;
    --bday-grey: #767676;
    --bday-cream: #f9f5ee;
    --bday-cream-line: #f2eadd;
    --bday-red: #d20404;
    --bday-s: 1;
    --bday-y: 0px;
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    color: var(--bday-ink);
    font-family: "Josefin Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
    background: url("../birthday-game/bday-desktop-bg.webp") center / cover no-repeat;
}

.bday_section [hidden] {
    display: none !important;
}

.bday_ic {
    display: block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bday_ic_flip {
    transform: scaleX(-1);
}

.bday_section button,
.bday_section a {
    cursor: pointer;
    font-family: "Josefin Sans", sans-serif;
}

.bday_canvas {
    position: absolute;
    z-index: 1;
    top: var(--bday-y);
    left: 50%;
    width: 1440px;
    height: 1024px;
    margin-left: -720px;
    transform: scale(var(--bday-s));
    transform-origin: 50% 0;
}

.bday_close {
    position: absolute;
    z-index: 30;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--bday-ink);
    font-size: 34px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 200ms ease;
}

.bday_close .bday_ic {
    stroke-width: 1.3;
}

.bday_close:hover {
    transform: scale(1.08);
}

.bday_yay,
.bday_sparkle,
.bday_hotspot_ring,
.bday_copy .bday_ic_copied,
.bday_track::-webkit-scrollbar,
.bday_copy.is_copied .bday_ic_copy,
.bday_section[data-step="result"] .bday_close {
    display: none;
}

.bday_num {
    font-family: "Inter", "Josefin Sans", sans-serif;
}

.bday_line {
    display: block;
    flex: 0 0 auto;
    width: 85px;
    height: 1px;
    background: linear-gradient(90deg, rgba(51, 51, 51, 0), var(--bday-ink));
}

.bday_line:last-child {
    background: linear-gradient(270deg, rgba(51, 51, 51, 0), var(--bday-ink));
}

.bday_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 58px;
    border-radius: 8px;
    background-color: var(--bday-ink);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    transition: background-color 200ms ease, transform 200ms ease;
}

.bday_btn:hover,
.bday_invite_row .bday_copy:hover,
.bday_invite_row .bday_copy.is_copied {
    background-color: #1c1c1c;
}

.bday_btn:active {
    transform: scale(0.99);
}

.bday_btn_ghost {
    background-color: #ffffff;
    border: 1px solid var(--bday-ink);
    color: var(--bday-ink);
}

.bday_btn_ghost:hover {
    background-color: #f6f2ec;
}

.bday_note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 12px;
    color: var(--bday-grey);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.286;
}

.bday_intro {
    position: absolute;
    top: 212px;
    left: 200px;
    width: 1040px;
    height: 600px;
    animation: bday_rise 600ms ease both;
}

.bday_intro_card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid #bf915b;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(218, 126, 21, 0.15);
    background: url('../birthday-game/step-1-bg.png') top left/cover no-repeat, #fffcf8;
}

.bday_intro_art {
    position: absolute;
    top: 155px;
    left: 72px;
    width: 424px;
    height: 282px;
}

.bday_intro_anime {
    width: 100%;
    height: 100%;
    animation: bday_float 5.5s ease-in-out infinite;
}

#bdayGiftBlast svg {
    transform: scale(1.5) !important;
}

#bdayGiftOffers svg,
.bday_intro_anime svg {
    transform: scale(1.2) !important;
}

.bday_intro_body {
    position: absolute;
    top: 155px;
    left: 536px;
    width: 432px;
    text-align: center;
}

.bday_kicker,
.bday_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bday_kicker {
    height: 34px;
}

.bday_kicker_text,
.bday_title_text {
    color: var(--bday-ink);
    font-size: 24px;
    font-weight: 300;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}

.bday_intro_title,
.bday_heading,
.bday_result_title,
.bday_popup_title {
    font-family: "against", serif;
    font-weight: 400;
    font-synthesis: none;
    font-kerning: none;
    font-feature-settings: "liga" 1, "clig" 1;
}

.bday_intro_title {
    margin-top: 20px;
    font-size: 36px;
    letter-spacing: -0.03em;
    line-height: 1.5;
}

.bday_intro_text {
    max-width: 348px;
    margin: 0 auto;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.5;
}

.bday_intro_body .bday_btn {
    margin-top: 25px;
}

.bday_note_intro {
    margin-top: 20px;
    color: var(--bday-ink);
}

.bday_note_intro .bday_ic {
    font-size: 18px;
}

.bday_game {
    position: absolute;
    inset: 0;
}

.bday_title {
    position: absolute;
    top: 72px;
    left: 495px;
    width: 449px;
    height: 50px;
    padding-inline: 0;
}

.bday_title_text {
    font-weight: 400;
}

.bday_head {
    position: absolute;
    top: 184px;
    left: 730px;
    width: 590px;
}

.bday_heading,
.bday_popup_title {
    font-size: 32px;
    letter-spacing: -0.03em;
    line-height: 1.5;
}

.bday_sub {
    margin-top: 12px;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.bday_stage {
    --stage-x: 246px;
    --stage-y: 161px;
    --stage-w: 468px;
    --stage-h: 798px;
    --arch-x: 75px;
    --arch-y: 0px;
    --arch-w: 318px;
    --arch-h: 757px;
    --ped-x: 0px;
    --ped-y: 624px;
    --ped-w: 468px;
    --ped-h: 174px;
    --model-x: 97px;
    --model-y: 71px;
    --model-w: 252px;
    --model-h: 650px;

    position: absolute;
    top: var(--stage-y);
    left: var(--stage-x);
    width: var(--stage-w);
    height: var(--stage-h);
    transition: top 700ms cubic-bezier(0.22, 0.7, 0.25, 1), left 700ms cubic-bezier(0.22, 0.7, 0.25, 1);
}

.bday_section[data-step="result"] .bday_stage {
    --stage-x: 282px;
    --stage-y: 158px;
    --stage-w: 423px;
    --stage-h: 733px;
    --arch-x: 68px;
    --arch-y: 13px;
    --arch-w: 287px;
    --arch-h: 683px;
    --ped-y: 576px;
    --ped-w: 423px;
    --ped-h: 157px;
    --model-x: 66px;
    --model-y: 12px;
}

.bday_arch,
.bday_pedestal,
.bday_model {
    position: absolute;
    transition: all 700ms cubic-bezier(0.22, 0.7, 0.25, 1);
}

.bday_arch {
    top: var(--arch-y);
    left: var(--arch-x);
    width: var(--arch-w);
    height: var(--arch-h);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
    background-color: #f0d4ca;
    box-shadow: 0 4px 19px rgba(255, 245, 234, 0.25);
}

.bday_pedestal {
    top: var(--ped-y);
    left: var(--ped-x);
    width: var(--ped-w);
    height: var(--ped-h);
    max-width: none;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

.bday_model {
    top: var(--model-y);
    left: var(--model-x);
    width: var(--model-w);
    height: var(--model-h);
}

.bday_layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: fill;
    opacity: 0;
    pointer-events: none;
    transition: opacity 350ms ease;
}

.bday_layer.is_on,
.bday_card img.is_loaded,
.bday_card.is_loading::before {
    opacity: 1;
}

.bday_hotspot {
    position: absolute;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    margin: -14.5px 0 0 -14.5px;
    border-radius: 50%;
    background-color: var(--bday-gold);
    color: #ffffff;
    font-size: 16px;
    box-shadow: 0 0 0 7px rgba(51, 51, 51, 0.42), 0 0 0 13px rgba(51, 51, 51, 0.22);
    animation: bday_pulse 2.2s ease-in-out infinite;
    transition: transform 200ms ease;
}

.bday_hotspot:hover {
    transform: scale(1.12);
}

.bday_actions {
    position: absolute;
    top: 720px;
    left: 100px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: bday_rise 600ms ease 300ms both;
}

.bday_round,
.bday_pill {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border-radius: 21px;
    background-color: #ffffff;
    color: var(--bday-ink);
    box-shadow: 0 2px 4px #f3e4db;
    transition: transform 200ms ease;
}

.bday_round {
    width: 42px;
    font-size: 22px;
}

.bday_pill {
    gap: 8px;
    padding-inline: 16px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.bday_pill .bday_ic {
    font-size: 22px;
}

.bday_round:hover,
.bday_pill:hover {
    transform: translateY(-2px);
}

.bday_panel {
    position: absolute;
    top: 305px;
    left: 730px;
    width: 590px;
    padding: 24px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 12px 32px rgba(120, 70, 50, 0.1);
}

.bday_tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    list-style: none;
}

.bday_tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border: 0.5px solid #f7e6d2;
    border-radius: 23px;
    background-color: #ffffff;
    color: var(--bday-grey);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}

.bday_tab {
    position: relative;
    cursor: pointer;
}

.bday_tab.is_done {
    border-color: var(--bday-gold);
    color: var(--bday-ink);
}

.bday_tab_done {
    display: none;
    font-size: 21px;
    color: var(--bday-ink);
}

.bday_tab.is_done .bday_tab_done,
.bday_copy.is_copied .bday_ic_copied {
    display: block;
}

.bday_tab.is_active {
    border-color: var(--bday-gold);
    background-color: var(--bday-gold);
    color: #ffffff;
}

.bday_strips,
.bday_offers,
.bday_shop {
    margin-top: 24px;
}

.bday_strip {
    position: relative;
}

.bday_track {
    display: flex;
    gap: 16px;
    margin-inline: -24px;
    padding-left: 24px;
    scroll-padding-inline: 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.bday_track::after {
    content: "";
    flex: 0 0 8px;
}

.bday_card {
    position: relative;
    display: block;
    flex: 0 0 152px;
    width: 152px;
    height: 200px;
    overflow: hidden;
    border: 1px solid rgba(167, 116, 49, 0.1);
    border-radius: 14.18px;
    background-color: var(--bday-cream);
    scroll-snap-align: start;
    transition: background-color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.bday_card img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    opacity: 0;
    transition: opacity 300ms ease;
}

.bday_card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.75) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: bday_shimmer 1.3s linear infinite;
    opacity: 0;
    pointer-events: none;
}

.bday_card:hover {
    border-color: rgba(167, 116, 49, 0.35);
}

.bday_card.is_selected {
    border-color: var(--bday-gold);
    background-color: #ffffff;
    box-shadow: inset 0 0 0 1px var(--bday-gold);
}

.bday_card_tick {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--bday-gold);
    color: #ffffff;
    font-size: 14px;
}

.bday_card_tick .bday_ic {
    stroke-width: 2.4;
    width: 100%;
    height: 100%;
}

.bday_card.is_selected .bday_card_tick {
    display: flex;
    animation: bday_pop 300ms ease both;
}

.bday_arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border: 0.53px solid var(--bday-ink);
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--bday-ink);
    font-size: 18px;
    transition: transform 200ms ease;
}

.bday_arrow .bday_ic {
    stroke-width: 2;
    width: 100%;
    height: 100%;
}

.bday_arrow:hover {
    transform: scale(1.1);
}

.bday_arrow_next {
    right: -20px;
}

.bday_arrow_prev {
    left: -20px;
}

.bday_error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--bday-red);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.bday_error.is_shake {
    animation: bday_shake 400ms ease;
}

.bday_error .bday_ic {
    font-size: 16px;
}

.bday_selected {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 118px;
    margin-top: 16px;
    padding: 0 16px;
    border: 1px solid rgba(167, 116, 49, 0.1);
    border-radius: 12px;
    background-color: #fcfbf7;
    animation: bday_rise 350ms ease both;
}

.bday_selected_thumb {
    display: block;
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--bday-cream);
}

.bday_selected_thumb img {
    width: 110%;
    height: 110%;
    margin: -5%;
    max-width: none;
    object-fit: contain;
}

.bday_selected_text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    max-width: 366px;
}

.bday_selected_label {
    color: var(--bday-grey);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: uppercase;
}

.bday_selected_name {
    overflow: hidden;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bday_cta {
    margin-top: 32px;
}

.bday_result {
    position: absolute;
    top: 170px;
    left: 730px;
    width: 590px;
    padding: 24px;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 12px 32px rgba(120, 70, 50, 0.1);
    animation: bday_rise 700ms ease 250ms both;
}

.bday_result_head {
    text-align: center;
}

.bday_gift_stack {
    position: relative;
    width: 206px;
    height: 210px;
    margin: 0 auto;
    animation: bday_float 3.6s ease-in-out infinite;
}

.bday_gift {
    position: absolute;
    inset: 0;
    z-index: 2;
}

#bdayGiftBlast {
    z-index: 1;
}

.bday_result_pre {
    margin-top: 24px;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
}

.bday_result_title {
    margin-top: 2px;
    color: #c56c1d;
    font-size: 32px;
    line-height: 44px;
    text-transform: uppercase;
}

.bday_result_sub {
    margin-top: 2px;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
}

.bday_offer {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 68px;
    margin-bottom: 12px;
    padding: 0 10px;
    border: 1px solid #f9f3ed;
    border-radius: 8px;
    background-color: #ffffff;
}

.bday_offer_icon {
    flex: 0 0 38px;
    width: 38px;
    aspect-ratio: 1;
}

.bday_offer_body {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 8px;
}

.bday_offer_row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bday_offer_code {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.bday_offer_code .bday_num {
    line-height: 1.2;
}

.bday_offer_off {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #f3fef0;
    color: #388e3c;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

.bday_offer_off .bday_num {
    font-weight: 500;
    line-height: 1.2;
}

.bday_offer_meta {
    margin-top: 4px;
    color: var(--bday-grey);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}

.bday_copy {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #fff8ee;
    color: var(--bday-gold-deep);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    transition: background-color 200ms ease;
}

.bday_copy .bday_ic {
    font-size: 18px;
}

.bday_copy:hover,
.bday_copy.is_copied {
    background-color: #fdeedb;
}

.bday_terms {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--bday-grey);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.3;
}

.bday_terms .bday_ic {
    font-size: 16px;
    stroke-width: 1.3;
}

.bday_popup {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.5);
    animation: bday_fade 250ms ease both;
}

.bday_popup_box {
    position: relative;
    width: 520px;
    max-width: 100%;
    border-radius: 16px;
    background: #fcf8f5 url("popup-bg.png") center / cover no-repeat;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: bday_rise 300ms ease-out both;
}

.bday_popup_abandon,
.bday_popup_invite {
    padding: 32px 24px;
}

.bday_popup_x {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--bday-ink);
    font-size: 24px;
}

.bday_popup_x .bday_ic {
    stroke-width: 1.05;
}

.bday_popup_x:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.bday_popup_abandon .bday_popup_title {
    max-width: 346px;
    margin-inline: auto;
}

.bday_popup_text {
    max-width: 472px;
    margin: 12px auto 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4;
}

.bday_popup_invite .bday_popup_text {
    margin-top: 20px;
}

.bday_popup_hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #fcedde;
    color: #88470d;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.bday_popup_hint .bday_ic {
    font-size: 20px;
    color: var(--bday-gold);
}

.bday_popup_actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.bday_popup_actions .bday_btn {
    height: 48px;
    border-radius: 6px;
}

.bday_popup_actions .bday_btn_ghost {
    border-width: 0.5px;
}

.bday_invite_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 400px;
    height: 48px;
    margin: 20px auto 0;
    padding-left: 10px;
    border-radius: 6px;
    background-color: #f1e4d7;
    text-align: left;
}

.bday_invite_link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #88470d;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.bday_invite_link .bday_ic {
    font-size: 24px;
    stroke-width: 2;
    color: #88470d;
}

.bday_invite_link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bday_invite_row .bday_copy {
    flex: 0 0 100px;
    width: 100px;
    height: 48px;
    justify-content: center;
    gap: 4px;
    padding: 0 8px 0 5px;
    border-radius: 0 6px 6px 0;
    background-color: var(--bday-ink);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.bday_section .prod_listing_container {
    position: static;
    width: 0;
    height: 0;
}

.bday_head.is_enter,
.bday_strip.is_enter,
.bday_panel.is_enter {
    animation: bday_rise 450ms ease both;
}

.bday_section [tabindex="-1"]:focus {
    outline: none;
}

body.bday_lock {
    overflow: hidden;
}

@keyframes bday_rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes bday_sheet {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes bday_fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bday_float {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-10px) rotate(1.5deg);
    }
}

@keyframes bday_pulse {

    0%,
    100% {
        box-shadow: 0 0 0 7px rgba(51, 51, 51, 0.42), 0 0 0 13px rgba(51, 51, 51, 0.22);
    }

    50% {
        box-shadow: 0 0 0 9px rgba(51, 51, 51, 0.34), 0 0 0 19px rgba(51, 51, 51, 0.12);
    }
}

@keyframes bday_shimmer {
    to {
        transform: translateX(100%);
    }
}

@keyframes bday_pop {
    0% {
        transform: scale(0.4);
    }

    70% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bday_shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .bday_section *,
    .bday_section *::before {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 899px),
(max-height: 480px) {
    .bday_section {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
        background-image: url('../birthday-game/bday-mobile-bg.webp');
    }

    .bday_close {
        position: fixed;
        top: 8px;
        right: 12px;
        width: 24px;
        height: 24px;
        font-size: 16px;
        box-shadow: none;
    }

    .bday_canvas {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0;
        transform: none;
    }

    .bday_intro {
        position: relative;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 24px 20px;
    }

    .bday_intro_card {
        width: 100%;
        max-width: 420px;
        height: 520px;
        border-radius: 16px;
    }

    .bday_intro_art {
        top: 73px;
        left: 50%;
        width: 230px;
        height: 153px;
        margin-left: -115px;
    }

    .bday_intro_body {
        top: 238px;
        left: 0;
        width: 100%;
        padding-inline: 0;
    }

    .bday_kicker {
        width: 100%;
        height: 34px;
        padding-inline: 20px;
    }

    .bday_line {
        width: 50px;
    }

    .bday_kicker_text,
    .bday_title_text,
    .bday_offer_code,
    .bday_invite_link {
        font-size: 12px;
        line-height: 1.3;
    }

    .bday_intro_title {
        margin-top: 12px;
        font-size: 24px;
    }

    .bday_intro_text {
        max-width: 269px;
        margin-top: 6px;
        font-size: 14px;
        letter-spacing: 0;
        line-height: 1.3;
    }

    .bday_btn {
        border-radius: 6px;
        font-size: 14px;
        line-height: 1.3;
    }

    .bday_intro_body .bday_btn {
        width: calc(100% - 40px);
        height: 40px;
        margin: 20px 20px 0;
    }

    .bday_note_intro,
    .bday_note {
        margin-top: 8px;
        font-size: 10px;
    }

    .bday_note_intro .bday_ic {
        font-size: 16px;
    }

    .bday_selected_label {
        font-size: 12px;
    }

    .bday_game {
        position: relative;
        inset: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 424px;
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0 auto;
        padding: 20px 16px;
    }

    .bday_title {
        position: static;
        width: 100%;
        max-width: 328px;
        height: 24px;
        justify-content: center;
        gap: 16px;
        order: 1;
    }

    .bday_head {
        position: static;
        width: 100%;
        margin-top: 16px;
        order: 2;
        text-align: center;
    }

    .bday_heading,
    .bday_popup_hint .bday_ic {
        font-size: 18px;
    }

    .bday_sub {
        margin-top: 4px;
        font-size: 12px;
        letter-spacing: 0;
        line-height: 1.3;
    }

    .bday_stage {
        --stage-w: 213px;
        --stage-h: 322px;
        --arch-x: 19px;
        --arch-y: 7px;
        --arch-w: 175px;
        --arch-h: 305px;
        --ped-y: 255px;
        --ped-w: 213px;
        --ped-h: 79px;
        --model-x: 35px;
        --model-y: 0px;
        --model-w: 114px;
        --model-h: 295px;
        position: relative;
        top: 0;
        left: 0;
        flex: 0 0 auto;
        margin-top: 16px;
        order: 3;
    }

    .bday_section[data-step="result"] .bday_stage {
        --stage-x: 0px;
        --stage-y: 0px;
        --stage-w: 213px;
        --stage-h: 322px;
        --arch-x: 19px;
        --arch-y: 7px;
        --arch-w: 175px;
        --arch-h: 305px;
        --ped-y: 255px;
        --ped-w: 213px;
        --ped-h: 79px;
        --model-x: 35px;
        --model-y: 0px;
    }

    .bday_hotspot {
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        font-size: 11px;
        box-shadow: 0 0 0 4px rgba(51, 51, 51, 0.42), 0 0 0 8px rgba(51, 51, 51, 0.22);
    }

    @keyframes bday_pulse {

        0%,
        100% {
            box-shadow: 0 0 0 4px rgba(51, 51, 51, 0.42), 0 0 0 8px rgba(51, 51, 51, 0.22);
        }

        50% {
            box-shadow: 0 0 0 6px rgba(51, 51, 51, 0.34), 0 0 0 12px rgba(51, 51, 51, 0.12);
        }
    }

    .bday_tab::after {
        content: "";
        position: absolute;
        inset: -8px 0;
    }

    .bday_hotspot::after,
    .bday_close::after {
        content: "";
        position: absolute;
        inset: -12px;
        border-radius: 50%;
    }

    .bday_actions {
        top: 330px;
        left: 23px;
        gap: 8px;
    }

    .bday_round,
    .bday_pill {
        height: 30px;
        border-radius: 24px;
    }

    .bday_round {
        width: 30px;
        font-size: 16px;
    }

    .bday_pill {
        gap: 8px;
        padding-inline: 16px;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.3;
    }

    .bday_pill .bday_ic,
    .bday_offer .bday_copy .bday_ic {
        font-size: 16px;
    }

    .bday_section[data-step="result"] .bday_stage {
        margin-bottom: 49px;
    }

    .bday_arrow,
    .bday_track::after,
    .bday_section[data-step="result"] .bday_title {
        display: none;
    }

    .bday_panel {
        position: static;
        width: 100%;
        margin-top: 12px;
        padding: 10px;
        border-radius: 12px;
        order: 4;
    }

    .bday_tabs {
        gap: 4px;
    }

    .bday_tab {
        height: 28px;
        border-radius: 14px;
        gap: 4px;
        font-size: 12px;
        line-height: 1.3;
    }

    .bday_tab_done,
    .bday_selected_name {
        font-size: 14px;
    }

    .bday_strips {
        margin-top: 10px;
    }

    .bday_track {
        gap: 8px;
        margin-inline: 0;
        padding-inline: 0;
        scroll-padding-inline: 0;
    }

    .bday_card {
        flex-basis: 83px;
        width: 83px;
        height: 105px;
        border-width: 0.86px;
        border-radius: 6.85px;
    }

    .bday_card img {
        width: 86%;
        height: 90%;
        margin: 5% auto 0;
    }

    .bday_card_tick {
        top: 4px;
        right: 4px;
        width: 14px;
        height: 14px;
        font-size: 9px;
    }

    .bday_error {
        margin-top: 8px;
        font-size: 10px;
        letter-spacing: 0;
        line-height: 1.3;
    }

    .bday_error .bday_ic {
        font-size: 13px;
    }

    .bday_selected {
        gap: 16px;
        height: 60px;
        margin-top: 10px;
        padding: 0 12px;
        border-radius: 8px;
    }

    .bday_selected_thumb {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .bday_selected_text {
        gap: 8px;
    }

    .bday_cta {
        height: 40px;
        margin-top: 12px;
    }

    .bday_result {
        display: contents;
        animation: none;
    }

    .bday_result_head {
        position: relative;
        width: 100%;
        margin-top: 0;
        order: 2;
    }

    .bday_gift_stack {
        width: 80px;
        height: 82px;
    }

    .bday_sparkle {
        position: absolute;
        top: 75px;
        left: calc(50% - 73px);
        display: block;
        width: 12px;
        height: 13px;
        color: #e69a4d;
        opacity: 0.5;
    }

    .bday_sparkle .bday_ic {
        width: 100%;
        height: 100%;
        fill: currentColor;
        stroke: none;
    }

    .bday_result_pre {
        margin-top: 8px;
        font-size: 12px;
        line-height: 1.3;
    }

    .bday_yay {
        display: inline;
    }

    .bday_result_title {
        color: var(--bday-ink);
        font-size: 18px;
        line-height: 25px;
    }

    .bday_result_sub {
        font-size: 14px;
        line-height: 1.3;
    }

    .bday_offers {
        width: 100%;
        margin-top: 0;
        padding: 16px 8px;
        border: 1px solid #fce5c8;
        border-radius: 12px;
        background-color: #ffffff;
        order: 4;
    }

    .bday_offer {
        gap: 8px;
        height: 52px;
        margin-bottom: 6px;
        padding: 0 8px;
        border-radius: 8px;
    }

    .bday_offer_icon {
        flex-basis: 32px;
        width: 32px;
    }

    .bday_offer_body {
        padding-top: 0;
    }

    .bday_offer_off {
        padding: 2px 4px;
        font-size: 10px;
    }

    .bday_offer_off .bday_num {
        line-height: 1.1;
    }

    .bday_offer_meta {
        margin-top: 2px;
        font-size: 10px;
        white-space: nowrap;
    }

    .bday_offer .bday_copy {
        width: 28px;
        height: 28px;
        justify-content: center;
        padding: 0;
        border-radius: 6px;
    }

    .bday_offer .bday_copy span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .bday_terms {
        margin-top: 10px;
        font-size: 10px;
    }

    .bday_terms .bday_ic {
        font-size: 11px;
    }

    .bday_shop {
        height: 40px;
        margin-top: 12px;
        font-size: 14px;
        order: 5;
    }

    .bday_popup {
        align-items: flex-end;
        padding: 0;
    }

    .bday_popup_box {
        width: 100%;
        max-width: 420px;
        border-radius: 16px 16px 0 0;
        animation: bday_sheet 300ms ease-out both;
    }

    .bday_popup_abandon,
    .bday_popup_invite {
        padding: 16px 16px max(16px, env(safe-area-inset-bottom));
    }

    .bday_popup_x {
        top: 6px;
        right: 6px;
    }

    .bday_popup_title,
    .bday_invite_link .bday_ic {
        font-size: 20px;
    }

    .bday_popup_abandon .bday_popup_title {
        max-width: 220px;
    }

    .bday_popup_text,
    .bday_popup_invite .bday_popup_text {
        margin-top: 8px;
        font-size: 14px;
        line-height: 1.3;
    }

    .bday_popup_hint {
        margin-top: 16px;
        padding: 6px 12px;
        font-size: 14px;
        line-height: 1.3;
    }

    .bday_popup_actions {
        gap: 8px;
        margin-top: 16px;
    }

    .bday_popup_actions .bday_btn {
        height: 40px;
    }

    .bday_invite_row {
        max-width: none;
        height: 40px;
        margin-top: 16px;
    }

    .bday_invite_row .bday_copy {
        flex-basis: 82px;
        width: 82px;
        height: 40px;
        padding: 0 8px;
        font-size: 14px;
        line-height: 1.3;
    }
}

@media (max-width: 340px) {
    .bday_offer {
        height: auto;
        min-height: 52px;
        padding-block: 8px;
    }

    .bday_offer_meta {
        white-space: normal;
    }
}