@charset "UTF-8";

/* =========================================================
   AIemoji - Playful, animated single-page template
   Color palette:
     - NVIDIA green:   #76B900 / #A8E063 (light)
     - Light pink:     #FFD6E7 / #FFB6D5
     - Light yellow:   #FFF7CC / #FFE680
     - Soft white card with glass / shadow accents
   ========================================================= */

:root {
    --c-green:        #76B900;
    --c-green-light:  #B6E36A;
    --c-green-soft:   #DCF5B0;
    --c-pink:         #FFB6D5;
    --c-pink-soft:    #FFE3F0;
    --c-yellow:       #FFE680;
    --c-yellow-soft:  #FFF7CC;
    --c-white:        #FFFFFF;
    --c-text:         #2E3A2A;
    --c-text-soft:    #5C6B57;
    --c-muted:        #8B9886;
    --c-link:         #4F8A10;
    --c-shadow:       rgba(118, 185, 0, 0.18);
    --c-shadow-pink:  rgba(255, 182, 213, 0.45);
    --radius-lg:      24px;
    --radius-md:      14px;
    --radius-sm:      10px;
    --font-sans:      "Poppins", "Segoe UI", "Helvetica Neue", Helvetica,
                      Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--c-text);
    min-height: 100vh;
    background-color: #F1FBE0;
    background-image:
        radial-gradient(circle at 15% 20%, #FFFBE0 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, #E6F7C8 0%, transparent 50%),
        radial-gradient(circle at 80% 85%, #FFF7CC 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, #DCF5B0 0%, transparent 45%),
        linear-gradient(160deg, #F6FCE6 0%, #FFFBE0 50%, #ECF8D2 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* ---------- Decorative floating emoji background ---------- */
body::before,
body::after {
    content: "😀  🥳  🐱  🦄  🌈  💖  ✨  🐶  🍓  🍋  🌸  ⭐  🎨  😺  💫  🍀";
    position: fixed;
    top: -10vh;
    left: -5vw;
    width: 110vw;
    height: 130vh;
    font-size: 38px;
    line-height: 4;
    color: rgba(0, 0, 0, 0.05);
    letter-spacing: 32px;
    pointer-events: none;
    z-index: 0;
    animation: floatEmojis 60s linear infinite;
    user-select: none;
    white-space: pre-wrap;
    word-spacing: 24px;
    transform: rotate(-8deg);
}
body::after {
    top: 30vh;
    font-size: 26px;
    color: rgba(118, 185, 0, 0.07);
    animation-duration: 80s;
    animation-direction: reverse;
    transform: rotate(6deg);
}

@keyframes floatEmojis {
    0%   { transform: rotate(-8deg) translateY(0); }
    50%  { transform: rotate(-8deg) translateY(-40px); }
    100% { transform: rotate(-8deg) translateY(0); }
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 16px 40px;
    background-color: transparent;
    height: auto;
    position: relative;
    z-index: 1;
}

/* ---------- Header / Brand ---------- */
header {
    width: 100%;
    height: auto;
    background: transparent;
    border-bottom: none;
    padding: 22px 6px 14px;
    display: flex;
    align-items: center;
}
header a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.logo {
    color: var(--c-green);
    font-weight: 800;
    text-align: left;
    width: auto;
    float: none;
    margin: 0;
    letter-spacing: 1.5px;
    font-size: 26px;
    background: linear-gradient(120deg, var(--c-green) 0%, #4F8A10 50%, #E91E63 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.logo::before {
    content: "🎨";
    -webkit-text-fill-color: initial;
    font-size: 28px;
    display: inline-block;
    animation: bounceLogo 2.4s ease-in-out infinite;
}
.logo::after {
    content: "✨";
    -webkit-text-fill-color: initial;
    font-size: 18px;
    margin-left: 4px;
    animation: sparkle 1.6s ease-in-out infinite;
}

@keyframes bounceLogo {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50%      { transform: translateY(-6px) rotate(6deg); }
}
@keyframes sparkle {
    0%, 100% { transform: scale(1)   rotate(0);    opacity: 1; }
    50%      { transform: scale(1.3) rotate(20deg); opacity: 0.7; }
}

/* ---------- Banner / Hero ---------- */
.banner {
    background-color: transparent;
    background-image: none;
    height: auto;
    background-attachment: scroll;
    background-size: auto;
    background-repeat: no-repeat;
    padding: 24px 16px 60px;
    position: relative;
}

.parallax {
    font-size: 56px;
    font-weight: 800;
    color: var(--c-text);
    text-align: left;
    padding-left: 4%;
    padding-top: 60px;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
    line-height: 1.1;
    background: linear-gradient(120deg, #4F8A10 0%, var(--c-green) 35%, #FF6FA8 75%, #E91E63 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hueShift 9s ease-in-out infinite;
}

@keyframes hueShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50%      { filter: hue-rotate(15deg); }
}

.parallax_description {
    font-size: 18px;
    color: var(--c-text-soft);
    text-align: left;
    padding-left: 4%;
    width: 92%;
    float: none;
    font-weight: 400;
    line-height: 1.7;
    margin: 0 0 16px;
    opacity: 1;
}

.flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 32px;
    padding: 24px 4% 0;
}
.flex-row > div {
    flex: 1 1 320px;
    min-width: 280px;
}

/* ---------- Glass card / login form ---------- */
.div_login_form,
.div_login_form_sigup,
.div_login_form_forgot,
.div_login_form_forgot_rst {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    box-shadow:
        0 18px 50px var(--c-shadow),
        0 6px 18px var(--c-shadow-pink),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    padding: 28px 24px 24px;
    width: 360px;
    max-width: 92vw;
    height: auto;
    position: relative;
    overflow: visible;
    animation: floatCard 6s ease-in-out infinite, popIn 0.6s ease-out both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.div_login_form_sigup { width: 460px; }
.div_login_form_forgot,
.div_login_form_forgot_rst { width: 360px; }

/* Decorative blob in upper-right corner of every card */
.div_login_form::after,
.div_login_form_sigup::after,
.div_login_form_forgot::after,
.div_login_form_forgot_rst::after {
    content: "";
    position: absolute;
    top: -36px;
    right: -28px;
    width: 110px;
    height: 110px;
    background: url("../images/blob_decoration.svg") center/contain no-repeat;
    pointer-events: none;
    opacity: 0.85;
    animation: floatCard 5s ease-in-out infinite;
    z-index: 2;
}

.div_login_form:hover,
.div_login_form_sigup:hover,
.div_login_form_forgot:hover,
.div_login_form_forgot_rst:hover {
    transform: translateY(-4px);
    box-shadow:
        0 28px 60px var(--c-shadow),
        0 10px 24px var(--c-shadow-pink);
}

.div_login_form::before,
.div_login_form_sigup::before,
.div_login_form_forgot::before,
.div_login_form_forgot_rst::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--c-green-light), var(--c-pink), var(--c-yellow));
    z-index: -1;
    filter: blur(14px);
    opacity: 0.55;
    animation: cardGlow 8s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@keyframes popIn {
    0%   { opacity: 0; transform: translateY(20px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes cardGlow {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 0.85; }
}

.form_login,
.form_login_sigup,
.form_login_forgot {
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding-top: 6px;
}

/* ---------- Inputs ---------- */
.form_blank {
    margin: 0 auto;
    width: 100%;
    height: 6px;
}

.form_username,
.form_password,
.form_textbox,
.form_tb_forgot {
    width: 100%;
    height: 44px;
    border: 1.5px solid rgba(118, 185, 0, 0.25);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--c-text);
    background: rgba(255, 255, 255, 0.85);
    outline: none;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.form_username::placeholder,
.form_password::placeholder,
.form_textbox::placeholder,
.form_tb_forgot::placeholder {
    color: var(--c-muted);
    font-weight: 400;
}
.form_username:focus,
.form_password:focus,
.form_textbox:focus,
.form_tb_forgot:focus {
    border-color: var(--c-green);
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(118, 185, 0, 0.15),
        0 4px 14px rgba(118, 185, 0, 0.18);
    transform: translateY(-1px);
}

/* ---------- Buttons ---------- */
.form_submit,
.form_submit_bn,
.form_submit_bn_create,
.form_submit_create,
button.form_submit_create {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    background: linear-gradient(135deg, var(--c-green) 0%, var(--c-green-light) 100%);
    box-shadow:
        0 8px 20px rgba(118, 185, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    font-family: inherit;
}
.form_submit_bn:hover,
.form_submit_bn_create:hover,
button.form_submit_create:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 14px 28px rgba(118, 185, 0, 0.45),
        0 0 0 3px rgba(255, 230, 128, 0.55);
    background: linear-gradient(135deg, #84CC10 0%, #B6E36A 100%);
}
.form_submit_bn:active,
.form_submit_bn_create:active,
button.form_submit_create:active {
    transform: translateY(0) scale(0.99);
}
.form_submit_bn::after,
.form_submit_bn_create::after,
button.form_submit_create::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.form_submit_bn:hover::after,
.form_submit_bn_create:hover::after,
button.form_submit_create:hover::after {
    left: 130%;
}

button[disabled],
button.form_submit_create[disabled] {
    background: linear-gradient(135deg, #D6DCD0 0%, #C7CFC1 100%) !important;
    color: #fff !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none !important;
}
button[disabled]::after { display: none; }

/* "Create new account" secondary button (pink) */
.form_submit_create {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 4px auto 0;
    width: 100%;
    height: auto;
}
.form_submit_create form { width: 100%; }
input.form_submit_bn_create {
    background: linear-gradient(135deg, #FF8FBF 0%, var(--c-pink) 60%, #FFE3F0 100%);
    color: #fff;
    box-shadow:
        0 8px 20px rgba(255, 143, 191, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: none;
    height: 46px;
    width: 100%;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
}
input.form_submit_bn_create:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 14px 28px rgba(255, 143, 191, 0.5),
        0 0 0 3px rgba(255, 230, 128, 0.55);
}

/* ---------- Forgot link ---------- */
.form_forgot {
    display: block;
    text-align: center;
    width: 100%;
    margin: 4px auto 8px;
    padding: 6px 0;
    color: var(--c-link);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}
.form_forgot:hover {
    color: #76B900;
    text-decoration: underline;
}

/* ---------- Divider line ---------- */
.form_line {
    align-items: center;
    border-bottom: 1px dashed rgba(118, 185, 0, 0.35);
    display: block;
    margin: 14px 4px;
    text-align: center;
    height: 0;
}

/* ---------- Items / form rows ---------- */
.div_items {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    min-height: 48px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 10px;
    align-items: center;
}
.div_items > div {
    margin-top: auto;
    margin-bottom: auto;
    vertical-align: middle;
    box-sizing: border-box;
    height: auto;
    min-height: 40px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    color: var(--c-text-soft);
    font-weight: 500;
}
/* Sigup row - inline label / input / hint */
.div_login_form_sigup .div_items > div:first-child {
    font-weight: 600;
    color: var(--c-text);
    flex-basis: 95px !important;
}
.div_login_form_sigup .div_items > div:nth-child(2) {
    flex: 1 1 180px !important;
    min-width: 160px;
}
.div_login_form_sigup .div_items > div:nth-child(3) {
    flex-basis: 100% !important;
    font-size: 12px;
    color: var(--c-muted);
    padding-left: 95px;
    margin-top: -2px;
}

/* ---------- Footer banner ---------- */
.footer_banner {
    background:
        url("../images/footer_emojis.svg") center/cover no-repeat,
        linear-gradient(120deg, var(--c-green-soft) 0%, var(--c-pink-soft) 50%, var(--c-yellow-soft) 100%);
    padding: 36px 20px;
    margin: 40px auto 0;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}
.footer_banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.55), rgba(255,255,255,0.25));
    pointer-events: none;
}
.footer_banner > * { position: relative; z-index: 1; }
.hero_header {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--c-text);
    text-transform: uppercase;
}
.hero_header::before { content: "✨ "; }
.hero_header::after  { content: " ✨"; }

footer {
    background-color: transparent;
    padding-bottom: 20px;
    display: block;
    text-align: center;
    color: var(--c-muted);
    font-size: 13px;
}

/* ---------- Sigup specific ---------- */
.parallax_sigup {
    font-size: 40px;
    font-weight: 800;
    color: var(--c-text);
    text-align: center;
    padding-top: 60px;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
    background: linear-gradient(120deg, #4F8A10 0%, var(--c-green) 50%, #E91E63 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.parallax_description_sigup {
    font-size: 17px;
    color: var(--c-text-soft);
    text-align: center;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 auto 28px;
    max-width: 600px;
    padding-bottom: 0;
}
.parallax_description_sigup::before { content: "🚀 "; }

/* ---------- Misc helpers ---------- */
.button {
    width: 220px;
    margin: 30px auto 10px;
    padding: 14px 18px;
    text-align: center;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, var(--c-green) 0%, var(--c-green-light) 100%);
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(118, 185, 0, 0.35);
    cursor: pointer;
    display: inline-block;
}
.button:hover {
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(135deg, #84CC10 0%, #B6E36A 100%);
    color: #fff;
}

.copyright {
    text-align: center;
    padding: 18px 10px;
    background: transparent;
    color: var(--c-muted);
    text-transform: none;
    font-weight: 400;
    letter-spacing: 1px;
    border-top: 1px dashed rgba(118, 185, 0, 0.25);
    margin-top: 10px;
}
.hidden { display: none; }

/* Image div used for register error / activation status */
#imgdiv,
#regimg {
    text-align: center;
    margin: 8px auto;
    color: #E91E63;
    font-size: 13px;
    font-weight: 600;
    min-height: 18px;
}

/* Hint divs in signup */
#firstname_div,
#lastname_div,
#username_div,
#password1_div,
#password2_div {
    color: var(--c-muted);
    font-style: italic;
}

/* ---------- Welcome / main page ---------- */
.welcome_card {
    max-width: 640px;
    margin: 60px auto;
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 50px var(--c-shadow);
    text-align: center;
    animation: popIn 0.6s ease-out both;
    position: relative;
    z-index: 1;
}
.welcome_card h1 {
    font-size: 32px;
    margin: 0 0 10px;
    background: linear-gradient(120deg, var(--c-green) 0%, #E91E63 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.welcome_card p {
    color: var(--c-text-soft);
    font-size: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .parallax        { font-size: 36px; padding-top: 6px; margin-top: 0; }
    .parallax_sigup  { font-size: 30px; padding-top: 30px; }
    .parallax_description { font-size: 16px; }
    .flex-row        { padding: 20px 0 0; gap: 24px; }
    .div_login_form_sigup { width: 360px; }
    .div_login_form_sigup .div_items > div:first-child { flex-basis: 100% !important; }
    .div_login_form_sigup .div_items > div:nth-child(2) { flex-basis: 100% !important; }
    .div_login_form_sigup .div_items > div:nth-child(3) { padding-left: 4px; }
    body::before, body::after { font-size: 22px; letter-spacing: 18px; }
}

/* =========================================================
   Index hero split layout (login + overlapping emoji cards)
   - Mobile (< 901px): stacked, login form unchanged, cards hidden
   - Desktop / tablet (>= 901px): left = login (~40%), right = cards (~60%)
   ========================================================= */
.banner-split {
    display: block;
    padding: 24px 16px 60px;
}
.hero-left { width: 100%; }
.login-wrap {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}
/* On mobile, hide the right-side decorative card stage entirely */
.hero-right { display: none; }

@media (min-width: 901px) {
    .container { max-width: 1320px; }

    .banner-split {
        display: grid;
        grid-template-columns: minmax(420px, 7fr) minmax(360px, 5fr);
        gap: 40px;
        align-items: center;
        padding: 24px 4% 80px;
    }
    /* Swap: cards on the left, login on the right */
    .hero-right { grid-column: 1; grid-row: 1; }
    .hero-left  { grid-column: 2; grid-row: 1; }

    .hero-left .parallax        { padding-left: 0; padding-top: 30px; font-size: 52px; }
    .hero-left .parallax_description { padding-left: 0; width: 100%; }

    .login-wrap {
        margin-top: 28px;
        justify-content: flex-start;
    }
    .login-wrap .div_login_form { margin: 0; }

    .hero-right {
        display: block;
        position: relative;
        min-height: 620px;
        height: 100%;
    }
    .emoji-card-stage {
        position: relative;
        width: 100%;
        height: 640px;
    }
}

@media (min-width: 1200px) {
    .emoji-card-stage { height: 720px; }
    .hero-right       { min-height: 720px; }
}

/* ---------- Overlapping emoji cards ---------- */
.emoji-card {
    position: absolute;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 18px 40px rgba(118, 185, 0, 0.18),
        0 6px 18px rgba(255, 182, 213, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(var(--rot, 0deg));
    transition: transform 0.4s cubic-bezier(.2,.9,.3,1.4),
                box-shadow 0.4s ease,
                z-index 0s;
    animation: cardFloat 7s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform;
}
.emoji-card img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 18px;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.emoji-card:hover {
    transform: rotate(0deg) translateY(-6px) scale(1.06);
    z-index: 999 !important;
    box-shadow:
        0 28px 60px rgba(118, 185, 0, 0.30),
        0 12px 28px rgba(255, 143, 191, 0.40);
}

/* Tonal background tints for cards (spring palette) */
.emoji-card.tone-pink {
    background: linear-gradient(160deg, #FFE3F0 0%, #FFFFFF 60%, #FFD6E7 100%);
}
.emoji-card.tone-yellow {
    background: linear-gradient(160deg, #FFF7CC 0%, #FFFFFF 60%, #FFE680 100%);
}
.emoji-card.tone-green {
    background: linear-gradient(160deg, #DCF5B0 0%, #FFFFFF 60%, #B6E36A 100%);
}
.emoji-card.tone-white {
    background: linear-gradient(160deg, #FFFFFF 0%, #F6FCE6 100%);
}

@keyframes cardFloat {
    0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
    50%      { transform: rotate(var(--rot, 0deg)) translateY(-10px); }
}

/* On smaller desktops scale the cards down a touch */
@media (min-width: 901px) and (max-width: 1199px) {
    .emoji-card { transform: rotate(var(--rot, 0deg)) scale(0.78); }
    @keyframes cardFloat {
        0%, 100% { transform: rotate(var(--rot, 0deg)) scale(0.78) translateY(0); }
        50%      { transform: rotate(var(--rot, 0deg)) scale(0.78) translateY(-8px); }
    }
}

/* ---------- Mobile-only floating emoji cards behind the description ---------- */
.hero-mobile-stage {
    position: relative;
}
.emoji-card-mobile {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.emoji-card-mobile .emoji-card { pointer-events: auto; }

/* Mini cards: square via aspect-ratio (width is %-based for safe fit) */
.emoji-card--mini {
    aspect-ratio: 1 / 1;
    height: auto !important;
    padding: 8px;
    border-radius: 22px;
}
.emoji-card--mini img { border-radius: 14px; }

/* On mobile: text first, then floating cards as a normal block below */
@media (max-width: 900px) {
    .hero-mobile-stage { padding-bottom: 8px; }

    .emoji-card-mobile {
        display: block;
        position: relative;       /* not overlapping the text any more */
        inset: auto;
        height: 240px;            /* room for the two-row card stack */
        margin-top: 12px;
    }

    .parallax_description {
        position: relative;
        z-index: 2;
        margin-bottom: 4px;
        text-shadow: none;
    }
    .desc-extra { display: none; }
}

/* Slightly taller card area on bigger phones for nicer overlap */
@media (max-width: 900px) and (min-width: 480px) {
    .emoji-card-mobile { height: 300px; }
}

/* Desktop / tablet: cards live in the right column instead */
@media (min-width: 901px) {
    .emoji-card-mobile { display: none !important; }
    .hero-mobile-stage { min-height: 0; }
}
