/* HushDay Festivities – storefront */
.hdf-root, .hdf-root *, .hdf-banner, .hdf-banner *, .hdf-music, .hdf-music-next, .hdf-music-toast { box-sizing: border-box; }
.hdf-root { position: fixed; inset: 0; pointer-events: none; z-index: 9000; }
.hdf-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* ---------- Christmas garland ---------- */
.hdf-lights { position: fixed; left: 0; width: 100%; height: 185px; z-index: 3; pointer-events: none; overflow: hidden; }
.hdf-lights svg { display: block; overflow: visible; }
.hdf-garland__branch { fill: none; stroke: #2B4A2F; stroke-width: 3; stroke-linecap: round; }
.hdf-garland__needles { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.hdf-garland__needles--back { stroke: #173826; stroke-width: 1.8; }
.hdf-garland__needles--0 { stroke: #2D6A4F; }
.hdf-garland__needles--1 { stroke: #3F8A5F; }
.hdf-garland__needles--2 { stroke: #25573F; }
.hdf-lights svg { filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .18)); }
.hdf-bow__loop, .hdf-bow__tail { fill: #B3122E; stroke: #7A0A1C; stroke-width: .8; stroke-linejoin: round; }
.hdf-bow__fold { fill: none; stroke: #E04A5C; stroke-width: 1.1; stroke-linecap: round; opacity: .8; }
.hdf-bow__knot { fill: #C8102E; stroke: #7A0A1C; stroke-width: .8; }
.hdf-orn__string { stroke: #C9A227; stroke-width: .9; }
.hdf-orn__ring { fill: none; stroke: #C9A227; stroke-width: 1.1; }
.hdf-orn__cap { fill: #D4B254; stroke: #8C6E1E; stroke-width: .6; }
.hdf-orn__body { stroke: rgba(0, 0, 0, .18); stroke-width: .6; }
.hdf-orn__deco { opacity: .92; }
.hdf-orn__shine { fill: #fff; opacity: .55; }
.hdf-fairy__core { fill: #FFF6D6; }
.hdf-fairy { animation: hdf-twinkle 2.6s ease-in-out infinite; }
.hdf-fairy--1 { animation-delay: -.65s; }
.hdf-fairy--2 { animation-delay: -1.3s; }
.hdf-fairy--3 { animation-delay: -1.95s; }
@keyframes hdf-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Halloween flashlight ---------- */
.hdf-spotlight {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(circle at var(--x) var(--y), rgba(8, 4, 16, 0) 0, rgba(8, 4, 16, 0) 110px, rgba(8, 4, 16, .8) 250px);
    animation: hdf-fade-in .8s ease both; transition: opacity 1.4s ease;
}
.hdf-spotlight.is-out { opacity: 0; }
@keyframes hdf-fade-in { from { opacity: 0; } }

/* ---------- UAE flag stripe ---------- */
.hdf-flag-stripe {
    position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 100000; pointer-events: none; overflow: hidden;
    background: linear-gradient(90deg, #EF3340 0 25%, #00843D 25% 50%, #ffffff 50% 75%, #000000 75%);
}
.hdf-flag-stripe::after {
    content: ""; position: absolute; inset: 0; width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
    animation: hdf-shimmer 4.5s ease-in-out infinite;
}
@keyframes hdf-shimmer { from { transform: translateX(-100%); } to { transform: translateX(440%); } }

/* ---------- Banner ---------- */
.hdf-banner {
    --hdf-bg: linear-gradient(120deg, #6A0D98, #3c0757);
    --hdf-fg: #fff;
    --hdf-accent: #fff;
    --hdf-cta-bg: #fff;
    --hdf-cta-fg: #6A0D98;
    position: fixed; z-index: 9001;
    display: flex; align-items: center; gap: 14px;
    background: var(--hdf-bg); color: var(--hdf-fg);
    font-family: Karla, system-ui, sans-serif; line-height: 1.25;
    box-shadow: 0 18px 50px rgba(20, 5, 35, .35);
    transition: transform .7s cubic-bezier(.2, 1.3, .4, 1), opacity .5s ease;
    opacity: 0;
}
.hdf-banner--bottom {
    left: 50%; bottom: 18px; width: min(780px, calc(100% - 32px));
    padding: 12px 18px 12px 14px; border-radius: 18px;
    transform: translate(-50%, 140%);
}
.hdf-banner--bottom.is-in { transform: translate(-50%, 0); opacity: 1; }
.hdf-banner--top {
    left: 0; right: 0; justify-content: center; padding: 6px 48px 6px 16px; border-radius: 0;
    transform: translateY(-110%); box-shadow: 0 6px 18px rgba(20, 5, 35, .2);
}
.hdf-banner--top.is-in { transform: none; opacity: 1; }
.hdf-banner.is-leaving { opacity: 0; transition: opacity .35s ease, transform .35s ease; }
.hdf-banner--bottom.is-leaving { transform: translate(-50%, 30%); }

.hdf-banner__deco { flex: none; width: 56px; height: 52px; display: flex; align-items: center; justify-content: center; position: relative; }
.hdf-banner--top .hdf-banner__deco { width: 34px; height: 32px; }
.hdf-banner__deco svg { width: 100%; height: 100%; overflow: visible; }
.hdf-banner__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hdf-banner--top .hdf-banner__text { flex: 0 1 auto; flex-direction: row; align-items: baseline; gap: 10px; }
.hdf-banner__title { font-family: Oswald, system-ui, sans-serif; font-weight: 600; font-size: 18px; letter-spacing: .03em; text-transform: uppercase; color: var(--hdf-accent); }
.hdf-banner--top .hdf-banner__title { font-size: 15px; }
.hdf-banner__subtitle { font-size: 14px; opacity: .9; }

.hdf-banner__countdown { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hdf-banner__countdown small { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.hdf-cd { display: flex; gap: 4px; }
.hdf-cd__cell { display: flex; align-items: baseline; gap: 1px; background: rgba(255, 255, 255, .12); border-radius: 6px; padding: 3px 5px; }
.hdf-cd__cell b { font-family: Oswald, system-ui, sans-serif; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hdf-cd__cell i { font-style: normal; font-size: 10px; opacity: .7; }
.hdf-banner--top .hdf-banner__countdown { flex-direction: row; gap: 8px; }
.hdf-banner--top .hdf-cd__cell b { font-size: 14px; }

.hdf-banner__cta {
    flex: none; background: var(--hdf-cta-bg); color: var(--hdf-cta-fg) !important; text-decoration: none !important;
    font-family: Oswald, system-ui, sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
    padding: 10px 16px; border-radius: 99px; transition: transform .2s ease, box-shadow .2s ease; white-space: nowrap;
}
.hdf-banner__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.hdf-banner--top .hdf-banner__cta { padding: 6px 12px; font-size: 12px; }

.hdf-banner__close {
    position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%;
    border: 0; background: #fff; color: #333; font-size: 18px; line-height: 28px; text-align: center; padding: 0;
    cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}
.hdf-banner--top .hdf-banner__close { top: 50%; right: 12px; transform: translateY(-50%); background: transparent; color: inherit; box-shadow: none; }

.hdf-banner__timer {
    position: absolute; top: 0; left: 14px; right: 14px; height: 3px; border-radius: 0 0 3px 3px;
    background: var(--hdf-accent); opacity: .7; transform-origin: 0 50%;
    animation: hdf-drain linear forwards;
}
.hdf-banner__timer.is-paused { animation-play-state: paused; }
.hdf-banner--uae .hdf-banner__timer { background: #EF3340; }
@keyframes hdf-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Christmas */
.hdf-banner--christmas {
    --hdf-bg: radial-gradient(circle at 15% 0, #1f6b3a, #0d3320 70%);
    --hdf-accent: #F6E3A1; --hdf-cta-bg: linear-gradient(120deg, #E8C468, #C9A227); --hdf-cta-fg: #0d3320;
    border: 1px solid rgba(232, 196, 104, .45);
}
.hdf-bauble { transform-origin: 50% 0; animation: hdf-swing 3.2s ease-in-out infinite; }
@keyframes hdf-swing { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }

/* Halloween */
.hdf-banner--halloween {
    --hdf-bg: radial-gradient(circle at 10% 50%, #3a1d4f, #120a1c 65%);
    --hdf-accent: #ff9a3c; --hdf-cta-bg: #ff7518; --hdf-cta-fg: #120a1c;
    border: 1px solid rgba(255, 117, 24, .45);
}
.hdf-pumpkin { animation: hdf-bob 2.6s ease-in-out infinite; }
.hdf-pumpkin__face { fill: #ffd23f; animation: hdf-flicker 2.2s infinite; filter: drop-shadow(0 0 4px #ffb020); }
@keyframes hdf-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-3px) rotate(3deg); } }
@keyframes hdf-flicker { 0%, 100% { opacity: 1; } 8% { opacity: .55; } 12% { opacity: .95; } 46% { opacity: .8; } 50% { opacity: 1; } 71% { opacity: .5; } 74% { opacity: 1; } }

/* Minimal sparkle */
.hdf-sparkle { animation: hdf-spin 9s linear infinite; }
@keyframes hdf-spin { to { transform: rotate(360deg); } }

/* UAE – the banner itself echoes the flag: red hoist + green/white/black stripes */
.hdf-banner--uae {
    --hdf-bg: #ffffff; --hdf-fg: #1b1b1b; --hdf-accent: #000; --hdf-cta-bg: #00843D; --hdf-cta-fg: #fff;
    border-left: 8px solid #EF3340; overflow: visible;
}
.hdf-banner--uae::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-radius: 0 0 18px 0;
    background: linear-gradient(90deg, #00843D 0 33.3%, #e9e9e9 33.3% 66.6%, #000 66.6%);
}
.hdf-banner--uae.hdf-banner--top { border-left-width: 0; }
.hdf-banner--uae.hdf-banner--top::after { border-radius: 0; height: 3px; }
.hdf-banner--uae .hdf-cd__cell { background: #f2f2f2; }
.hdf-banner--uae.hdf-banner--bottom { border-radius: 10px 18px 18px 10px; }

.hdf-flag-pole { position: absolute; left: 4px; top: 2px; bottom: 0; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #9a9a9a, #e5e5e5, #8a8a8a); }
.hdf-flag-pole::before { content: ""; position: absolute; top: -3px; left: -2px; width: 7px; height: 7px; border-radius: 50%; background: #C9A227; }
.hdf-flag { position: absolute; left: 7px; top: 4px; display: flex; width: 72px; height: 36px; transform-origin: 0 50%; transform: scale(.62); filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35)); }
.hdf-banner--bottom .hdf-banner__deco { width: 58px; }
.hdf-banner--top .hdf-flag { transform: scale(.42); top: 6px; }
.hdf-flag span {
    --amp: calc(.4px + var(--i) * .16px);
    flex: none; width: 3px; height: 100%;
    background-image: linear-gradient(90deg, #EF3340 0 25%, transparent 25%), linear-gradient(180deg, #00843D 0 33.34%, #fff 33.34% 66.67%, #000 66.67%);
    background-size: 72px 36px;
    background-position: calc(var(--i) * -3px) 0;
    animation: hdf-wave 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * -.07s);
}
@keyframes hdf-wave {
    0%, 100% { transform: translateY(calc(var(--amp) * -1)); filter: brightness(1.08); }
    50% { transform: translateY(var(--amp)); filter: brightness(.86); }
}

/* ---------- Music ---------- */
.hdf-music, .hdf-music-next {
    position: fixed; z-index: 9002; bottom: 18px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(28, 12, 40, .86); color: #fff; cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(20, 5, 35, .35); transition: transform .2s ease, opacity .25s ease, background .2s ease;
}
.hdf-music { width: 50px; height: 50px; animation: hdf-pop .6s 1.2s cubic-bezier(.2, 1.4, .4, 1) backwards; }
.hdf-music:hover, .hdf-music-next:hover { transform: scale(1.08); background: rgba(106, 13, 152, .95); }
.hdf-music--left { left: 18px; }
.hdf-music--right { right: 18px; }
.hdf-music-next { width: 32px; height: 32px; bottom: 27px; font-size: 13px; opacity: 0; pointer-events: none; }
.hdf-music-next.hdf-music--left { left: 76px; }
.hdf-music-next.hdf-music--right { right: 76px; }
.hdf-music-next.is-visible { opacity: 1; pointer-events: auto; }
.hdf-music::after {
    content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid rgba(232, 196, 104, .8);
    animation: hdf-ring 2.2s 2s ease-out 3; opacity: 0;
}
.hdf-music.is-playing::after { animation: none; }
.hdf-music.is-waiting::after { animation: hdf-ring 2.2s .5s ease-out infinite; }
.hdf-music__note { font-size: 22px; line-height: 1; }
.hdf-music__eq { display: none; align-items: flex-end; gap: 3px; height: 18px; }
.hdf-music__eq i { width: 3px; height: 100%; background: #E8C468; border-radius: 2px; transform-origin: bottom; animation: hdf-eq .9s ease-in-out infinite; }
.hdf-music__eq i:nth-child(2) { animation-delay: -.3s; animation-duration: .7s; }
.hdf-music__eq i:nth-child(3) { animation-delay: -.5s; animation-duration: 1.1s; }
.hdf-music__eq i:nth-child(4) { animation-delay: -.15s; animation-duration: .8s; }
.hdf-music.is-playing .hdf-music__note { display: none; }
.hdf-music.is-playing .hdf-music__eq { display: flex; }
@keyframes hdf-eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes hdf-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes hdf-pop { from { transform: scale(0); } }

.hdf-music-toast {
    position: fixed; z-index: 9002; bottom: 78px; max-width: min(320px, calc(100% - 36px));
    background: rgba(28, 12, 40, .9); color: #fff; font: 13px/1.3 Karla, system-ui, sans-serif;
    padding: 8px 14px; border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.hdf-music-toast.hdf-music--left { left: 18px; }
.hdf-music-toast.hdf-music--right { right: 18px; }
.hdf-music-toast.is-in { opacity: 1; transform: none; }

/* Keep the music button clear of a bottom banner on narrower screens */
@media (max-width: 1100px) {
    .hdf-music { bottom: calc(var(--hdf-banner-h, 0px) + 30px); }
    .hdf-music-next { bottom: calc(var(--hdf-banner-h, 0px) + 39px); }
    .hdf-music-toast { bottom: calc(var(--hdf-banner-h, 0px) + 90px); }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
    .hdf-banner--bottom {
        left: 0; bottom: 0; width: 100%; border-radius: 18px 18px 0 0; flex-wrap: wrap; gap: 8px 12px;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
        transform: translateY(110%);
    }
    .hdf-banner--bottom.is-in { transform: none; }
    .hdf-banner--bottom.is-leaving { transform: translateY(40%); }
    .hdf-banner--uae.hdf-banner--bottom { border-left-width: 0; border-top: 5px solid #EF3340; border-radius: 0; }
    .hdf-banner--bottom .hdf-banner__deco { width: 40px; height: 40px; }
    .hdf-banner--uae.hdf-banner--bottom .hdf-banner__deco { width: 50px; }
    .hdf-banner--bottom .hdf-banner__text { flex: 1 1 calc(100% - 66px); }
    .hdf-banner--bottom .hdf-banner__countdown { align-items: flex-start; }
    .hdf-banner--bottom .hdf-banner__countdown { order: 4; }
    .hdf-banner--bottom .hdf-banner__cta { order: 5; margin-left: auto; }
    .hdf-banner--bottom .hdf-banner__close { top: 8px; right: 8px; background: transparent; color: inherit; box-shadow: none; }
    .hdf-banner__title { font-size: 16px; padding-right: 22px; }
    .hdf-banner__subtitle { font-size: 13px; }
    .hdf-banner--top .hdf-banner__text { flex-direction: column; gap: 0; }
    .hdf-banner--top .hdf-banner__subtitle, .hdf-banner--top .hdf-banner__countdown { display: none; }
    .hdf-music { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .hdf-banner, .hdf-banner *, .hdf-music, .hdf-music *, .hdf-flag-stripe::after, .hdf-fairy {
        animation: none !important; transition: none !important;
    }
}
