.promo-bubble-zone {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25%;         /* Adjust if you want bigger area */
    pointer-events: none;
    overflow: hidden;    /* Keeps bubbles inside */
}
.promo-img-wrap {
    position: relative;
    overflow: hidden;
}

/* Shared bubble fixed to prevent overflow */
.promo-bubble {
    position: absolute;

    /* FIXED bubble size — stable + easy to read */
    width: 200px; 
    padding: 7px 10px;

    /* CLOUD SHAPE — round puffy multi-lobe */
    background: #ffffffee;
    border-radius: 15px;
    box-shadow: 
        0 2px 5px rgba(0,0,0,0.22),
        0 0 6px rgba(255,255,255,0.95),
        0 0 5px rgba(255,255,255,0.6),
        inset 0 0 5px rgba(255,255,255,0.8);

    /* TEXT — LEFT aligned, wraps 2–3 lines cleanly */
    white-space: normal;
    word-break: break-word;
    line-height: 1.28;
    color: #222;
    font-size: 15px;
    font-weight: 700;
    text-align: center;

    /* Cloud hover feeling */
    backdrop-filter: blur(3px);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    animation-play-state: paused;
}


/* animation zones now 28%–72% = full safe */
.bubble-cn {
    animation: bubbleFloatCN 15s infinite alternate ease-in-out;
}
.bubble-en {
    animation: bubbleFloatEN 23s infinite alternate ease-in-out;
}

/* MOVEMENT CENTER LOCKED — SAFE MARGINS */
@keyframes bubbleFloatCN {
    0%   { top: 30%; left: 30%; }
    25%  { top: 42%; left: 68%; }
    50%  { top: 58%; left: 50%; }
    75%  { top: 68%; left: 32%; }
    100% { top: 38%; left: 72%; }
}

@keyframes bubbleFloatEN {
    0%   { top: 66%; left: 35%; }
    25%  { top: 48%; left: 65%; }
    50%  { top: 26%; left: 48%; }
    75%  { top: 60%; left: 25%; }
    100% { top: 35%; left: 70%; }
}

	/* Snow container */
#snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 999;
}

/* General snowflake */
.snowflake {
  position: absolute;
  top: -10px;
  color: #cccccc;         /* Light grey for visible on dark */
  font-size: 12px;
  animation: fall 10s linear infinite;
  opacity: 0.8;
}

/* ❄ Snow color for LIGHT theme */
body:not(.dark) .snowflake {
  color: #b3d0ff;       /* bluish-grey so it's visible on white */
  opacity: 0.9;
}

/* ❄ Snow color for DARK theme */
body.dark .snowflake {
  color: #ffffff;       /* pure white on dark bg */
  opacity: 0.85;
}

@keyframes fall {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(50px) translateY(100vh); }
}


@keyframes snow {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100vh);
    }
}

/* ========================= */
/* Floating Promo Button     */
/* ========================= */
#promo-btn {
    position: fixed !important;
    bottom: 10px !important;

    /* True center relative to browser window */
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: fit-content !important;

    background: linear-gradient(135deg, #d92525, #ff5e5e);
    color: #fff;
    padding: 6px 22px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 50px;
    white-space: nowrap;
    cursor: pointer;
    z-index: 9999999 !important;

    box-shadow: 
        0 0 10px rgba(255, 0, 0, 0.7),
        0 0 15px rgba(0, 255, 100, 0.6);
    animation: flash 1.3s infinite alternate ease-in-out;
}




@keyframes flash {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(255,0,0,0.7); }
    100% { transform: scale(1.08); box-shadow: 0 0 18px rgba(255,0,0,1), 0 0 25px rgba(0,255,100,0.9); }
}

/* ========================= */
/* Modal Overlay             */
/* ========================= */
/* Wrapper that holds the image AND fills the empty area */
/* Full Height Mode */
#promo-img.full-height {
    height: 95vh;
    width: auto;
    object-fit: contain;
}

/* Cover Mode */
#promo-img.full-cover {
    width: 100%;
    height: 95vh;
    object-fit: cover;
}
/* Full Height Mode */
#promo-img.full-height {
    height: 95vh;
    width: auto;
    object-fit: contain;
}

/* Cover Mode */
#promo-img.full-cover {
    width: 100%;
    height: 95vh;
    object-fit: cover;
}
#promoImage {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;   /* keeps empty areas transparent */
  background: transparent;
}
.promo-img-wrapper {
  max-height: 90vh;
  max-width: 90vw;
  display: flex;
  justify-content: center;
  align-items: center;
}



#promo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#promo-modal.hidden {
    display: none;
}

/* ========================= */
/* Modal Content Box         */
/* ========================= */
.promo-modal-content {
    position: relative;
    background: transparent;
    border-radius: 12px;
    padding: 0;
    width: 95vw;             /* responsive width */
    max-width: 95vw;
    height: auto;
    max-height: 95vh;        /* responsive height */
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    animation: popup 0.25s ease;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes popup {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ========================= */
/* Top Buttons (Mode + Close) */
/* ========================= */
.promo-top-buttons {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

#promo-mode-btn {
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
}

.promo-close {
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 6px 11px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

/* ========================= */
/* Responsive Image Modes    */
/* ========================= */

/* Default Image Styling */
.promo-modal-content img {
    display: block;
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
	    position: relative;
    z-index: 2;
}
.promo-modal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5); /* opacity .8 */
    z-index: 1;
}


/* Mode 1: Full Height (no crop) */
#promo-img.full-height {
    height: 95vh;
    max-height: 95vh;
    width: auto;
    object-fit: contain;
}

/* Mode 2: Cover Mode (center crop) */
#promo-img.full-cover {
    width: 100%;
    height: 95vh;
    max-height: 95vh;
    object-fit: cover;
}

/* ========================= */
/* Mobile-specific tweaks    */
/* ========================= */
@media (max-width: 480px) {
    #promo-btn {
        padding: 10px 15px;
        font-size: 14px;
        bottom: 15px;
        right: 15px;
    }

    #promo-mode-btn {
        font-size: 11px;
        padding: 5px 8px;
    }

    .promo-close {
        font-size: 18px;
        padding: 5px 10px;
    }

    .promo-modal-content {
        width: 98vw;
        max-width: 98vw;
        border-radius: 10px;
    }
}