/* =========================================================
   Seasonal / upcoming-event gift-reveal popup (site-wide)
   Gift box → cracker burst → 10% offer → greeting card with flip-clock
   Markup: resources/views/partials/event-popup.blade.php
   Logic + GSAP motion: public/Assets/js/event-popup.js
   (Ported from the Trionova site; the announcement bar styles at the
   bottom are Vetora's own.)
   ========================================================= */

@property --tn-beam-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.tn-gift-popup {
    --tn-accent: #f59e0b;
    --tn-accent-light: #fde047;
    --tn-accent-dark: #b45309;
    --tn-accent-glow: rgba(245, 158, 11, 0.45);
    --tn-ribbon: #e11d48;
    --tn-ink: #050817;
    --tn-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --tn-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    position: fixed;
    inset: 0;
    z-index: 100005;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-secondary, 'Plus Jakarta Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    color: #ffffff;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.tn-gift-popup *,
.tn-gift-popup *::before,
.tn-gift-popup *::after {
    box-sizing: border-box;
}

.tn-gift-popup[hidden] {
    display: none;
}

.tn-gift-popup[data-stage="gift"] .tn-gift-popup__card-stage,
.tn-gift-popup[data-stage="card"] .tn-gift-popup__gift-stage {
    display: none;
}

html.vt-event-popup-open,
html.vt-event-popup-open body {
    overflow: hidden;
}

/* ---------- Night sky backdrop ---------- */
.tn-gift-popup__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 55% at 50% 110%, var(--tn-accent-glow), transparent 70%),
        radial-gradient(ellipse 60% 40% at 15% 0%, rgba(99, 102, 241, 0.18), transparent 70%),
        radial-gradient(ellipse 60% 40% at 85% 5%, rgba(236, 72, 153, 0.14), transparent 70%),
        rgba(4, 6, 20, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
}

.tn-gift-popup__stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent),
        radial-gradient(1px 1px at 28% 72%, #fff, transparent),
        radial-gradient(1.4px 1.4px at 44% 30%, #fff, transparent),
        radial-gradient(1px 1px at 63% 12%, #fff, transparent),
        radial-gradient(1.3px 1.3px at 78% 58%, #fff, transparent),
        radial-gradient(1px 1px at 90% 26%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 6% 64%, #fff, transparent),
        radial-gradient(1px 1px at 52% 86%, #fff, transparent),
        radial-gradient(1.1px 1.1px at 36% 8%, #fff, transparent),
        radial-gradient(1px 1px at 72% 82%, #fff, transparent);
    background-size: 420px 420px;
    opacity: 0.55;
    animation: tn-twinkle 4s ease-in-out infinite alternate;
}

@keyframes tn-twinkle {
    from {
        opacity: 0.25;
    }

    to {
        opacity: 0.7;
    }
}

/* ---------- Fireworks canvas + flash ---------- */
.tn-gift-popup__sky {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.tn-gift-popup__flash {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: radial-gradient(circle at var(--fx, 50%) var(--fy, 40%), rgba(255, 255, 255, 0.55), var(--tn-accent-glow) 25%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.tn-gift-popup__flash.is-on {
    opacity: var(--flash-strength, 0.35);
    transition: opacity 0.05s ease-in;
}

/* ---------- Corner controls ---------- */
.tn-gift-popup__controls {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.tn-gift-popup__icon-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: transform 0.3s var(--tn-ease-out), background 0.2s ease, color 0.2s ease;
}

.tn-gift-popup__icon-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: scale(1.08);
}

.tn-gift-popup__icon-btn[data-vt-event-close]:hover {
    transform: rotate(90deg) scale(1.08);
}

.tn-gift-popup__icon-btn:focus-visible,
.tn-gift:focus-visible,
.tn-card__burst-btn:focus-visible,
.vt-voucher__claim:focus-visible {
    outline: 2px solid var(--tn-accent-light);
    outline-offset: 3px;
}

#tnSoundBtn .tn-ico-off,
#tnSoundBtn[aria-pressed="false"] .tn-ico-on {
    display: none;
}

#tnSoundBtn[aria-pressed="false"] .tn-ico-off {
    display: block;
}

/* =========================================================
   Stage 1 — Gift
   ========================================================= */
.tn-gift-popup__gift-stage {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    outline: none;
}

.tn-gift-popup__gift-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--tn-accent-light);
}

.tn-gift-popup__gift-title {
    margin: 0 0 6px;
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif);
    font-size: clamp(26px, 4.2vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 0 40px var(--tn-accent-glow);
}

/* Gift button */
.tn-gift {
    --gw: 150px;
    position: relative;
    width: 260px;
    height: 260px;
    margin: 6px 0 4px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: 50%;
}

.tn-gift.is-idle {
    animation: tn-gift-bob 2.8s ease-in-out infinite;
}

@keyframes tn-gift-bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.tn-gift__rays {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, var(--tn-accent-glow) 0deg 6deg, transparent 6deg 22deg);
    -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%);
    mask: radial-gradient(circle, #000 18%, transparent 68%);
    opacity: 0.75;
    animation: tn-spin 22s linear infinite;
}

@keyframes tn-spin {
    to {
        transform: rotate(360deg);
    }
}

.tn-gift__halo {
    position: absolute;
    left: 50%;
    top: 55%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--tn-accent-glow), transparent 68%);
    animation: tn-breathe 2.4s ease-in-out infinite alternate;
}

@keyframes tn-breathe {
    from {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0.6;
    }

    to {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

.tn-gift__orbit {
    position: absolute;
    inset: 0;
    animation: tn-spin 9s linear infinite;
}

.tn-gift__orbit i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    margin: -4px;
    background: var(--tn-accent-light);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    filter: drop-shadow(0 0 6px var(--tn-accent));
    animation: tn-star-twinkle 1.6s ease-in-out infinite alternate;
}

.tn-gift__orbit i:nth-child(1) {
    transform: rotate(0deg) translateX(120px);
}

.tn-gift__orbit i:nth-child(2) {
    transform: rotate(60deg) translateX(112px) scale(0.7);
    animation-delay: 0.3s;
}

.tn-gift__orbit i:nth-child(3) {
    transform: rotate(120deg) translateX(124px) scale(1.2);
    animation-delay: 0.6s;
}

.tn-gift__orbit i:nth-child(4) {
    transform: rotate(180deg) translateX(116px) scale(0.8);
    animation-delay: 0.9s;
}

.tn-gift__orbit i:nth-child(5) {
    transform: rotate(240deg) translateX(122px);
    animation-delay: 1.2s;
}

.tn-gift__orbit i:nth-child(6) {
    transform: rotate(300deg) translateX(110px) scale(0.6);
    animation-delay: 1.5s;
}

@keyframes tn-star-twinkle {
    from {
        opacity: 0.35;
    }

    to {
        opacity: 1;
    }
}

.tn-gift__shadow {
    position: absolute;
    left: 50%;
    bottom: 34px;
    width: 170px;
    height: 18px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.6), transparent 70%);
}

.tn-gift__body {
    position: absolute;
    left: 50%;
    bottom: 42px;
    width: var(--gw);
    height: 112px;
    margin-left: calc(var(--gw) / -2);
    border-radius: 6px 6px 12px 12px;
    background: linear-gradient(145deg, var(--tn-accent-light) 0%, var(--tn-accent) 55%, var(--tn-accent-dark) 100%);
    box-shadow:
        inset 0 -14px 24px rgba(0, 0, 0, 0.25),
        inset 0 10px 18px rgba(255, 255, 255, 0.25),
        0 18px 40px -10px var(--tn-accent-glow);
    overflow: hidden;
}

.tn-gift__ribbon-v {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 26px;
    margin-left: -13px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.18)), var(--tn-ribbon);
}

.tn-gift__shine {
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-18deg);
    animation: tn-shine 3.2s ease-in-out infinite;
}

@keyframes tn-shine {

    0%,
    55% {
        left: -60%;
    }

    100% {
        left: 140%;
    }
}

.tn-gift__lid {
    position: absolute;
    left: 50%;
    bottom: 148px;
    width: calc(var(--gw) + 20px);
    height: 34px;
    margin-left: calc((var(--gw) + 20px) / -2);
    border-radius: 8px;
    background: linear-gradient(160deg, #ffffff -30%, var(--tn-accent-light) 15%, var(--tn-accent) 80%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), inset 0 4px 8px rgba(255, 255, 255, 0.35);
    transform-origin: 20% 100%;
    animation: tn-lid-peek 3.4s ease-in-out infinite;
}

@keyframes tn-lid-peek {

    0%,
    70%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    76% {
        transform: translateY(-10px) rotate(-6deg);
    }

    82% {
        transform: translateY(0) rotate(0deg);
    }

    87% {
        transform: translateY(-6px) rotate(4deg);
    }

    92% {
        transform: translateY(0) rotate(0deg);
    }
}

.tn-gift__bow {
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 0;
    height: 0;
}

.tn-gift__bow i {
    position: absolute;
    bottom: -4px;
    width: 46px;
    height: 30px;
    border: 7px solid var(--tn-ribbon);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3));
}

.tn-gift__bow i:first-child {
    right: 2px;
    transform: rotate(-22deg);
    transform-origin: 100% 100%;
}

.tn-gift__bow i:nth-child(2) {
    left: 2px;
    transform: rotate(22deg);
    transform-origin: 0 100%;
}

.tn-gift__bow b {
    position: absolute;
    left: -10px;
    bottom: -6px;
    width: 20px;
    height: 16px;
    border-radius: 6px;
    background: var(--tn-ribbon);
    box-shadow: inset 0 -3px 4px rgba(0, 0, 0, 0.25);
}

.tn-gift:hover {
    animation-play-state: paused;
}

.tn-gift:hover .tn-gift__body,
.tn-gift:hover .tn-gift__lid {
    filter: brightness(1.08);
}

.tn-gift.is-opening .tn-gift__lid {
    animation: none;
}

.tn-gift-popup__gift-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
}

.tn-gift-popup__tap-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tn-accent-light);
}

.tn-gift-popup__tap-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--tn-accent-light);
    animation: tn-ping 1.4s ease-out infinite;
}

@keyframes tn-ping {
    from {
        transform: scale(1);
        opacity: 0.8;
    }

    to {
        transform: scale(3.2);
        opacity: 0;
    }
}

/* =========================================================
   Stage 2 — Greeting voucher
   Left: event photo strip, greeting, countdown, effects button.
   Perforated tear line. Right: the 10% offer stub + claim button.
   (Phones: the stub moves under the greeting and the tear turns horizontal.)
   ========================================================= */

/* The sky's effects drop behind the voucher once it is revealed; the voucher mirrors them */
.tn-gift-popup[data-stage="card"] .tn-gift-popup__sky {
    z-index: 1;
}

.tn-gift-popup__card-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 16px;
    perspective: 1600px;
    transform-origin: 50% 50%;
}

.vt-voucher {
    --tn-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --stub-w: 252px;
    --notch: 15px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 0 var(--stub-w);
    width: min(940px, 100%);
    border-radius: 24px;
    isolation: isolate;
    text-align: left;
    background:
        radial-gradient(ellipse 70% 60% at 0% 100%, var(--tn-accent-glow), transparent 70%),
        linear-gradient(160deg, #150c24 0%, #0b0716 60%, #08050f 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 50px 110px -24px rgba(0, 0, 0, 0.9),
        0 0 110px -36px var(--tn-accent-glow);
    outline: none;
    transform-style: preserve-3d;
}

.vt-voucher__sparks {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
}

/* ---------- Main (left) ---------- */
.vt-voucher__main {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vt-voucher__photo {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 24px 0 0 0;
}

.vt-voucher__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.vt-voucher__photo-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 5, 15, 0.55) 0%, transparent 38%, transparent 55%, #120a20 100%);
}

.vt-voucher__meta {
    position: absolute;
    top: 18px;
    left: 22px;
    right: 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.vt-voucher__meta b {
    color: var(--tn-accent-light);
}

.vt-voucher__brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.vt-voucher__brand-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tn-accent);
    box-shadow: 0 0 10px var(--tn-accent);
}

/* Postage-stamp emblem sitting on the photo's bottom edge */
.vt-voucher__stamp {
    position: absolute;
    left: 30px;
    bottom: -2px;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 14px;
    font-size: 28px;
    background: #120a20;
    border: 2px dashed var(--tn-accent);
    box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.7), 0 0 24px -6px var(--tn-accent-glow);
    transform: rotate(-8deg);
}

.vt-voucher__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 34px 28px;
}

.vt-voucher__edition {
    margin: 0 0 6px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--tn-accent-light);
}

.vt-voucher__title {
    margin: 0 0 10px;
    line-height: 1.02;
}

.vt-voucher__title-sub {
    display: block;
    margin-bottom: 2px;
    font-family: var(--tn-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.78);
}

.vt-voucher__title-main {
    position: relative;
    display: block;
    font-family: var(--tn-serif);
    font-weight: 700;
    font-size: clamp(38px, 4.6vw, 54px);
    letter-spacing: -0.01em;
    font-kerning: none;
    perspective: 600px;
}

.vt-voucher__title-main.is-long {
    font-size: clamp(32px, 3.8vw, 44px);
}

/* Sheen that sweeps across the letters */
.vt-voucher__title-main::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: transparent;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.95) 50%, transparent 62%);
    background-size: 300% 100%;
    background-position: 150% 0;
    -webkit-background-clip: text;
    background-clip: text;
    pointer-events: none;
    animation: tn-sheen 5.5s ease-in-out 2.6s infinite;
}

@keyframes tn-sheen {
    0% {
        background-position: 150% 0;
    }

    40%,
    100% {
        background-position: -50% 0;
    }
}

.tn-letter {
    display: inline-block;
    color: transparent;
    background: linear-gradient(180deg, #fff6d8 0%, var(--tn-accent-light) 45%, var(--tn-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 2px 14px var(--tn-accent-glow));
    transform-origin: 50% 100%;
}

.tn-word {
    display: inline-block;
    white-space: nowrap;
}

.vt-voucher__text {
    max-width: 440px;
    margin: 0 0 18px;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.vt-voucher__timer {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.vt-voucher__timer-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.vt-voucher__timer-label[hidden] {
    display: none;
}

.vt-voucher__actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.vt-voucher__sign {
    margin: 0;
    font-family: var(--tn-serif);
    font-style: italic;
    font-size: 15px;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.6);
}

.vt-voucher__sign span {
    color: var(--tn-accent-light);
}

/* ---------- Tear line ---------- */
.vt-voucher__tear {
    position: relative;
    z-index: 3;
    width: 0;
    margin: 26px 0;
    border-left: 2px dashed rgba(255, 255, 255, 0.22);
}

/* Punched notches at both ends of the tear line */
.vt-voucher__tear::before,
.vt-voucher__tear::after {
    content: "";
    position: absolute;
    left: calc(var(--notch) * -1 - 1px);
    width: calc(var(--notch) * 2);
    height: calc(var(--notch) * 2);
    border-radius: 50%;
    background: #07030f;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.vt-voucher__tear::before {
    top: calc(-26px - var(--notch));
}

.vt-voucher__tear::after {
    bottom: calc(-26px - var(--notch));
}

/* ---------- Offer stub (right) ---------- */
.vt-voucher__stub {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 30px 22px;
    border-radius: 0 24px 24px 0;
    overflow: hidden;
    text-align: center;
    color: #1a0d03;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.45), transparent 60%),
        linear-gradient(165deg, var(--tn-accent-light) 0%, var(--tn-accent) 55%, var(--tn-accent-dark) 100%);
}

/* Diagonal light sweep across the stub */
.vt-voucher__stub::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: translateX(-160%) skewX(-16deg);
    animation: vt-stub-sweep 4.2s ease-in-out 2.2s infinite;
    pointer-events: none;
}

@keyframes vt-stub-sweep {
    0% { transform: translateX(-160%) skewX(-16deg); }
    45%, 100% { transform: translateX(330%) skewX(-16deg); }
}

.vt-voucher__offer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vt-voucher__offer[hidden] {
    display: none;
}

.vt-voucher__kicker {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: rgba(26, 13, 3, 0.12);
    border: 1px solid rgba(26, 13, 3, 0.2);
}

.vt-voucher__value {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0 2px;
    line-height: 0.9;
}

.vt-voucher__value b {
    display: block;
    font-family: var(--tn-serif);
    font-size: 84px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

.vt-voucher__value > span {
    margin-top: 4px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.42em;
    padding-left: 0.42em;
    text-transform: uppercase;
}

.vt-voucher__scope {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    opacity: 0.85;
}

.vt-voucher__scope[hidden] {
    display: none;
}

.vt-voucher__claim {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    background: #140a1f;
    box-shadow: 0 10px 22px -8px rgba(20, 10, 31, 0.8);
    /* translate/scale, not transform: GSAP owns transform for the entrance */
    transition: translate 0.25s var(--tn-ease-spring), scale 0.25s var(--tn-ease-spring), box-shadow 0.25s ease;
}

.vt-voucher__claim:hover,
.vt-voucher__claim:focus-visible {
    color: #ffffff;
    translate: 0 -2px;
    scale: 1.03;
    box-shadow: 0 16px 28px -10px rgba(20, 10, 31, 0.9);
}

.vt-voucher__claim svg {
    transition: transform 0.25s ease;
}

.vt-voucher__claim:hover svg {
    transform: translateX(3px);
}

/* ---------- Slim flip clock ---------- */
.tn-card__timer {
    margin-bottom: 20px;
}

.tn-flipclock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.tn-flipclock[hidden] {
    display: none;
}

.tn-flipclock__sep {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.tn-flip {
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.tn-flip__card {
    --h: 40px;
    position: relative;
    width: 40px;
    height: var(--h);
    perspective: 200px;
    font-family: var(--font-primary, 'Plus Jakarta Sans', sans-serif);
    font-size: 21px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
    border-radius: 7px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tn-flip__card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.55);
}

.tn-flip__half {
    position: absolute;
    left: 0;
    right: 0;
    height: 50%;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.tn-flip__half>span {
    display: block;
    height: var(--h);
    line-height: var(--h);
    text-align: center;
}

.tn-flip__top,
.tn-flip__flap-top {
    top: 0;
    border-radius: 7px 7px 0 0;
    background: linear-gradient(180deg, #232e66 0%, #1a2352 100%);
    transform-origin: 50% 100%;
}

.tn-flip__bottom,
.tn-flip__flap-bottom {
    bottom: 0;
    border-radius: 0 0 7px 7px;
    background: linear-gradient(180deg, #161e48 0%, #111839 100%);
    transform-origin: 50% 0;
}

.tn-flip__bottom>span,
.tn-flip__flap-bottom>span {
    margin-top: calc(var(--h) / -2);
}

.tn-flip__flap-top,
.tn-flip__flap-bottom {
    z-index: 2;
}

.tn-flip__flap-bottom {
    transform: rotateX(90deg);
}

.tn-flip.is-flipping .tn-flip__flap-top {
    animation: tn-flip-top 0.28s ease-in forwards;
}

.tn-flip.is-flipping .tn-flip__flap-bottom {
    animation: tn-flip-bottom 0.28s 0.28s ease-out forwards;
}

@keyframes tn-flip-top {
    from {
        transform: rotateX(0deg);
        filter: brightness(1);
    }

    to {
        transform: rotateX(-90deg);
        filter: brightness(0.6);
    }
}

@keyframes tn-flip-bottom {
    from {
        transform: rotateX(90deg);
        filter: brightness(1.4);
    }

    to {
        transform: rotateX(0deg);
        filter: brightness(1);
    }
}

.tn-flip__label {
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 700;
    color: var(--tn-accent-light);
}

.tn-card__today {
    margin: 0;
    font-family: var(--tn-serif);
    font-style: italic;
    font-size: 22px;
    color: var(--tn-accent-light);
    text-shadow: 0 0 20px var(--tn-accent-glow);
}


/* ---------- Effects button (fireworks / spooky) ---------- */
.tn-card__burst-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 30px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tn-accent) 0%, var(--tn-accent-light) 100%);
    box-shadow: 0 12px 30px -6px var(--tn-accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    color: var(--tn-ink);
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.3s var(--tn-ease-spring), box-shadow 0.3s ease;
}

.tn-card__burst-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    animation: tn-btn-pulse 2.2s ease-out infinite;
}

@keyframes tn-btn-pulse {
    0% {
        box-shadow: 0 0 0 0 var(--tn-accent-glow);
    }

    100% {
        box-shadow: 0 0 0 16px transparent;
    }
}

.tn-card__burst-btn::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    animation: tn-shine 3s ease-in-out infinite;
}

.tn-card__burst-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 16px 36px -6px var(--tn-accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.tn-card__burst-btn:active {
    transform: scale(0.96);
}

.tn-card__burst-icon {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
}

.tn-card__burst-btn.is-popped .tn-card__burst-icon {
    animation: tn-icon-pop 0.6s var(--tn-ease-spring);
}

@keyframes tn-icon-pop {
    0% {
        transform: scale(1) rotate(0);
    }

    40% {
        transform: scale(1.7) rotate(-15deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

/* ---------- Upcoming festivals strip ---------- */
.tn-gift-popup__strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.tn-gift-popup__strip-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tn-accent-light);
}

.tn-gift-popup__strip-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tn-gift-popup__strip-list li {
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.tn-gift-popup__strip-list b {
    margin-right: 5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.tn-gift-popup__strip-hint {
    color: rgba(255, 255, 255, 0.4);
}

.tn-gift-popup__strip-hint::before {
    content: "·";
    margin-right: 10px;
}


/* ---------- Responsive ---------- */
@media (max-height: 820px) {
    .vt-voucher__photo {
        height: 160px;
    }

    .vt-voucher__title-main {
        font-size: clamp(34px, 4vw, 46px);
    }

    .vt-voucher__text {
        margin-bottom: 14px;
    }

    .vt-voucher__timer {
        margin-bottom: 16px;
    }
}

/* Phones / narrow tablets: stub moves under the greeting, tear line turns horizontal */
@media (max-width: 720px) {
    .vt-voucher {
        grid-template-columns: minmax(0, 1fr);
        width: min(460px, 100%);
    }

    .vt-voucher__photo {
        height: 150px;
        border-radius: 22px 22px 0 0;
    }

    .vt-voucher__body {
        padding: 16px 22px 20px;
    }

    .vt-voucher__tear {
        width: auto;
        height: 0;
        margin: 0 22px;
        border-left: 0;
        border-top: 2px dashed rgba(255, 255, 255, 0.22);
    }

    .vt-voucher__tear::before,
    .vt-voucher__tear::after {
        top: calc(var(--notch) * -1 - 1px);
        bottom: auto;
    }

    .vt-voucher__tear::before {
        left: calc(-22px - var(--notch));
    }

    .vt-voucher__tear::after {
        left: auto;
        right: calc(-22px - var(--notch));
    }

    .vt-voucher__stub {
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 20px;
        border-radius: 0 0 22px 22px;
        text-align: left;
    }

    .vt-voucher__offer {
        align-items: flex-start;
    }

    .vt-voucher__kicker {
        display: none;
    }

    .vt-voucher__value {
        flex-direction: row;
        align-items: baseline;
        gap: 6px;
        margin: 0;
    }

    .vt-voucher__value b {
        font-size: 46px;
    }

    .vt-voucher__value > span {
        font-size: 18px;
        letter-spacing: 0.2em;
        padding-left: 0;
    }

    .vt-voucher__scope {
        margin-top: 2px;
        font-size: 12px;
    }

    .vt-voucher__claim {
        flex-shrink: 0;
        padding: 11px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tn-gift-popup__controls {
        top: 12px;
        right: 12px;
    }

    .tn-gift {
        --gw: 128px;
        width: 220px;
        height: 230px;
    }

    .tn-gift__body {
        height: 96px;
    }

    .tn-gift__lid {
        bottom: 132px;
    }

    .tn-gift-popup__card-stage {
        padding: 10px;
        gap: 10px;
    }

    .vt-voucher__photo {
        height: 120px;
    }

    .vt-voucher__meta {
        top: 14px;
        left: 16px;
        right: 16px;
        font-size: 9.5px;
        letter-spacing: 0.14em;
    }

    .vt-voucher__meta > span:last-child {
        text-align: right;
    }

    .vt-voucher__stamp {
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .vt-voucher__title-sub {
        font-size: 17px;
    }

    .vt-voucher__title-main,
    .vt-voucher__title-main.is-long {
        font-size: 32px;
    }

    .vt-voucher__text {
        font-size: 13.5px;
    }

    .vt-voucher__timer {
        gap: 8px;
    }

    .tn-flipclock {
        gap: 5px;
        padding: 6px 10px;
    }

    .tn-flip__card {
        --h: 34px;
        width: 34px;
        font-size: 18px;
    }

    .vt-voucher__actions {
        gap: 14px;
    }

    .vt-voucher__sign br {
        display: none;
    }

    .tn-gift-popup__strip-hint {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tn-gift-popup *,
    .tn-gift-popup *::before,
    .tn-gift-popup *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   Festival offer — bursts out of the gift, then lives on the card as a seal
   ========================================================= */
.tn-offer-burst {
    position: absolute;
    left: var(--ox, 50%);
    top: var(--oy, 50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translate(-50%, -50%);
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
}

.tn-offer-burst.is-on {
    visibility: visible;
}

/* Glow + spinning rays behind the number */
.tn-offer-burst::before,
.tn-offer-burst::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 42%;
    z-index: -1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.tn-offer-burst::before {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35), var(--tn-accent-glow) 30%, transparent 68%);
}

.tn-offer-burst::after {
    width: 520px;
    height: 520px;
    background: repeating-conic-gradient(from 0deg, var(--tn-accent-glow) 0deg 5deg, transparent 5deg 18deg);
    -webkit-mask: radial-gradient(circle, #000 20%, transparent 66%);
    mask: radial-gradient(circle, #000 20%, transparent 66%);
    animation: tn-offer-rays 10s linear infinite;
}

@keyframes tn-offer-rays {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.tn-offer-burst__value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(96px, 15vw, 168px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: transparent;
    background: linear-gradient(180deg, #ffffff 0%, var(--tn-accent-light) 40%, var(--tn-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 6px 30px var(--tn-accent-glow)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}

.tn-offer-burst__label {
    margin-top: 2px;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: 0.42em;
    text-indent: 0.42em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 20px var(--tn-accent-glow);
}

.tn-offer-burst__sub {
    margin-top: 12px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(5, 8, 23, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .tn-offer-burst::before { width: 300px; height: 300px; }
    .tn-offer-burst::after { width: 360px; height: 360px; }
    .tn-offer-burst__sub { font-size: 12px; }
}

/* =========================================================
   Halloween theme  ([data-theme="halloween"], set by the JS)
   Gift → glowing jack-o'-lantern whose stalk cap pops off;
   moonlit, foggy night instead of the festive sky. The bats,
   ghosts, embers and lightning are drawn by createSpookySky().
   ========================================================= */

/* Moon + fog layers are only used by this theme */
.tn-gift-popup__moon,
.tn-gift-popup__fog {
    display: none;
}

.tn-gift-popup[data-theme="halloween"] .tn-gift-popup__backdrop {
    background:
        radial-gradient(ellipse 80% 55% at 50% 112%, rgba(255, 122, 26, 0.32), transparent 70%),
        radial-gradient(ellipse 60% 45% at 12% 0%, rgba(124, 58, 237, 0.24), transparent 70%),
        radial-gradient(ellipse 50% 40% at 90% 100%, rgba(132, 204, 22, 0.08), transparent 70%),
        rgba(7, 3, 15, 0.97);
}

.tn-gift-popup[data-theme="halloween"] .tn-gift-popup__moon {
    display: block;
    position: absolute;
    top: 7%;
    right: 9%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 30%, rgba(0, 0, 0, 0.06) 0 9%, transparent 10%),
        radial-gradient(circle at 62% 58%, rgba(0, 0, 0, 0.07) 0 13%, transparent 14%),
        radial-gradient(circle at 40% 72%, rgba(0, 0, 0, 0.05) 0 7%, transparent 8%),
        radial-gradient(circle at 40% 38%, #fff8e1, #ffe4a8 55%, #f5c26b);
    box-shadow:
        0 0 40px 8px rgba(255, 214, 140, 0.45),
        0 0 140px 50px rgba(255, 170, 70, 0.16);
    animation: tn-moon-glow 5s ease-in-out infinite alternate;
}

@keyframes tn-moon-glow {
    from { opacity: 0.85; }
    to { opacity: 1; }
}

/* The greeting card's own photo takes over; the moon would only clip its corner */
.tn-gift-popup[data-theme="halloween"][data-stage="card"] .tn-gift-popup__moon {
    display: none;
}

.tn-gift-popup[data-theme="halloween"] .tn-gift-popup__fog {
    display: block;
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: -4%;
    height: 42%;
    background:
        radial-gradient(ellipse 30% 55% at 15% 100%, rgba(196, 181, 253, 0.16), transparent 70%),
        radial-gradient(ellipse 28% 50% at 45% 100%, rgba(196, 181, 253, 0.12), transparent 70%),
        radial-gradient(ellipse 32% 60% at 75% 100%, rgba(196, 181, 253, 0.15), transparent 70%),
        radial-gradient(ellipse 25% 45% at 98% 100%, rgba(196, 181, 253, 0.11), transparent 70%);
    animation: tn-fog-drift 16s ease-in-out infinite alternate;
}

@keyframes tn-fog-drift {
    from { transform: translateX(-6%); }
    to { transform: translateX(6%); }
}

/* ---------- Jack-o'-lantern ---------- */
.tn-gift__face {
    display: none;
}

.tn-gift-popup[data-theme="halloween"] .tn-gift__rays {
    background: repeating-conic-gradient(from 0deg, rgba(255, 138, 42, 0.32) 0deg 5deg, transparent 5deg 18deg, rgba(168, 85, 247, 0.22) 18deg 22deg, transparent 22deg 34deg);
}

.tn-gift-popup[data-theme="halloween"] .tn-gift__ribbon-v {
    display: none;
}

.tn-gift-popup[data-theme="halloween"] .tn-gift__body {
    --pw: 176px;
    width: var(--pw);
    height: 132px;
    margin-left: calc(var(--pw) / -2);
    bottom: 40px;
    border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%;
    background:
        /* ridges */
        linear-gradient(90deg,
            rgba(90, 30, 0, 0.35) 0%, transparent 10%,
            transparent 20%, rgba(90, 30, 0, 0.22) 30%, transparent 37%,
            transparent 63%, rgba(90, 30, 0, 0.22) 70%, transparent 80%,
            transparent 90%, rgba(90, 30, 0, 0.35) 100%),
        radial-gradient(circle at 36% 28%, #ffc477 0%, #ff8a2a 38%, #e3610f 70%, #9a3a07 100%);
    box-shadow:
        inset 0 -16px 26px rgba(70, 20, 0, 0.45),
        inset 0 10px 18px rgba(255, 220, 160, 0.3),
        0 18px 50px -8px rgba(255, 122, 26, 0.6);
}

.tn-gift-popup[data-theme="halloween"] .tn-gift__shine {
    opacity: 0.35;
}

/* Carved face lit by a flickering candle */
.tn-gift-popup[data-theme="halloween"] .tn-gift__face {
    display: block;
    position: absolute;
    inset: 0;
    animation: tn-candle 1.6s steps(1, end) infinite;
}

.tn-gift-popup[data-theme="halloween"] .tn-gift__face i,
.tn-gift-popup[data-theme="halloween"] .tn-gift__face b {
    position: absolute;
    background: radial-gradient(circle at 50% 70%, #fff7c2, #ffd23f 45%, #ff9d00 100%);
    box-shadow: 0 0 14px 4px rgba(255, 200, 60, 0.55);
}

.tn-gift-popup[data-theme="halloween"] .tn-gift__face i {
    top: 32px;
    width: 34px;
    height: 28px;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.tn-gift-popup[data-theme="halloween"] .tn-gift__face i:first-child { left: 34px; }
.tn-gift-popup[data-theme="halloween"] .tn-gift__face i:nth-child(2) { right: 34px; }

.tn-gift-popup[data-theme="halloween"] .tn-gift__face b {
    left: 50%;
    top: 74px;
    width: 104px;
    height: 34px;
    margin-left: -52px;
    clip-path: polygon(0 0, 14% 22%, 26% 0, 38% 26%, 50% 0, 62% 26%, 74% 0, 86% 22%, 100% 0,
        92% 60%, 78% 100%, 66% 72%, 50% 100%, 34% 72%, 22% 100%, 8% 60%);
}

@keyframes tn-candle {
    0% { opacity: 1; }
    18% { opacity: 0.78; }
    26% { opacity: 1; }
    52% { opacity: 0.88; }
    61% { opacity: 1; }
    83% { opacity: 0.7; }
    90% { opacity: 0.95; }
}

/* The lid becomes the cut-out top with its stalk; it still pops off when tapped */
.tn-gift-popup[data-theme="halloween"] .tn-gift__lid {
    width: 74px;
    height: 24px;
    margin-left: -37px;
    bottom: 160px;
    border-radius: 50% 50% 38% 38% / 70% 70% 30% 30%;
    background: radial-gradient(circle at 40% 30%, #ffb35c, #ef6f14 60%, #a3410a);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35), inset 0 3px 6px rgba(255, 220, 160, 0.3);
    transform-origin: 50% 100%;
}

.tn-gift-popup[data-theme="halloween"] .tn-gift__bow i:nth-child(2) {
    display: none;
}

/* Stalk */
.tn-gift-popup[data-theme="halloween"] .tn-gift__bow b {
    left: -6px;
    bottom: -8px;
    width: 13px;
    height: 26px;
    border-radius: 5px 7px 2px 2px;
    background: linear-gradient(90deg, #3f2a12, #6b4a1f 50%, #3f2a12);
    box-shadow: none;
    transform: rotate(10deg);
}

/* Leaf */
.tn-gift-popup[data-theme="halloween"] .tn-gift__bow i:first-child {
    right: auto;
    left: 4px;
    bottom: 0;
    width: 28px;
    height: 15px;
    border: 0;
    border-radius: 0 100% 0 100%;
    background: linear-gradient(135deg, #84cc16, #3f6212);
    transform: rotate(-18deg);
    filter: none;
}

/* Little bats orbit the pumpkin instead of sparkles */
.tn-gift-popup[data-theme="halloween"] .tn-gift__orbit i {
    width: 24px;
    height: 12px;
    margin: -6px -12px;
    background: #1b0d27;
    clip-path: polygon(50% 34%, 58% 14%, 62% 36%, 78% 16%, 100% 30%, 88% 50%, 74% 44%, 62% 72%, 50% 58%,
        38% 72%, 26% 44%, 12% 50%, 0 30%, 22% 16%, 38% 36%, 42% 14%);
    filter: drop-shadow(0 0 4px rgba(255, 138, 42, 0.9));
    animation: tn-bat-flap 0.5s ease-in-out infinite alternate;
}

@keyframes tn-bat-flap {
    from { opacity: 0.75; }
    to { opacity: 1; }
}

@media (max-width: 575px) {
    .tn-gift-popup[data-theme="halloween"] .tn-gift-popup__moon {
        width: 76px;
        height: 76px;
        top: 9%;
        right: 7%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tn-gift-popup[data-theme="halloween"] .tn-gift-popup__moon,
    .tn-gift-popup[data-theme="halloween"] .tn-gift-popup__fog,
    .tn-gift-popup[data-theme="halloween"] .tn-gift__face,
    .tn-gift-popup[data-theme="halloween"] .tn-gift__orbit i {
        animation: none;
    }
}

/* =========================================================
   Thanksgiving theme  ([data-theme="harvest"])
   Gift → a lattice-top pie whose crust lifts off, steam rising,
   maple leaves orbiting; warm dusk sky. Falling leaves and golden
   sparks are drawn by createThemedSky(..., 'harvest').
   ========================================================= */

.tn-gift-popup[data-theme="harvest"] .tn-gift-popup__backdrop {
    background:
        radial-gradient(ellipse 80% 55% at 50% 112%, rgba(232, 89, 12, 0.38), transparent 70%),
        radial-gradient(ellipse 55% 40% at 10% 0%, rgba(250, 176, 5, 0.16), transparent 70%),
        radial-gradient(ellipse 50% 40% at 92% 6%, rgba(201, 42, 42, 0.16), transparent 70%),
        rgba(18, 8, 3, 0.97);
}

/* Warm haze along the ground instead of Halloween's fog */
.tn-gift-popup[data-theme="harvest"] .tn-gift-popup__fog {
    display: block;
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: -4%;
    height: 38%;
    background:
        radial-gradient(ellipse 30% 55% at 20% 100%, rgba(250, 176, 5, 0.14), transparent 70%),
        radial-gradient(ellipse 34% 60% at 55% 100%, rgba(232, 89, 12, 0.16), transparent 70%),
        radial-gradient(ellipse 28% 50% at 88% 100%, rgba(201, 42, 42, 0.12), transparent 70%);
    animation: tn-fog-drift 18s ease-in-out infinite alternate;
}

/* =========================================================
   Black Friday theme  ([data-theme="sale"])
   Gift → a black-and-gold shopping bag with a SALE ribbon, rope
   handles and a "%" mark; spotlit black stage with a giant outlined
   marquee. Confetti cannons, coins and price tags are drawn by
   createThemedSky(..., 'sale').
   ========================================================= */

.tn-gift-popup[data-theme="sale"] .tn-gift-popup__backdrop {
    background:
        radial-gradient(ellipse 45% 60% at 12% -10%, rgba(239, 68, 68, 0.22), transparent 70%),
        radial-gradient(ellipse 45% 60% at 88% -10%, rgba(245, 196, 81, 0.2), transparent 70%),
        radial-gradient(ellipse 80% 50% at 50% 115%, rgba(245, 196, 81, 0.24), transparent 70%),
        rgba(5, 5, 6, 0.98);
}

.tn-gift-popup[data-theme="sale"] .tn-gift-popup__stars {
    display: none;
}

/* Giant outlined marquee drifting along the bottom of the stage */
.tn-gift-popup[data-theme="sale"] .tn-gift-popup__fog {
    display: block;
    position: absolute;
    left: 0;
    bottom: 4%;
    white-space: nowrap;
    font-family: 'Lexend', 'Livvic', sans-serif;
    font-weight: 900;
    font-size: clamp(64px, 12vw, 170px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(245, 196, 81, 0.2);
    animation: tn-marquee 38s linear infinite;
    will-change: transform;
}

.tn-gift-popup[data-theme="sale"] .tn-gift-popup__fog::before {
    content: "BLACK FRIDAY \2022  15% OFF \2022  BLACK FRIDAY \2022  15% OFF \2022  ";
}

@keyframes tn-marquee {
    to { transform: translateX(-50%); }
}

.tn-gift-popup[data-theme="sale"][data-stage="card"] .tn-gift-popup__fog {
    opacity: 0.5;
}

/* =========================================================
   Cyber Monday theme  ([data-theme="cyber"])
   Black night over a moving perspective grid with faint scanlines;
   one electric-blue accent with white text. Pixel bursts, binary rain and glitch bars are
   drawn by createThemedSky(..., 'cyber').
   ========================================================= */

.tn-gift-popup[data-theme="cyber"] .tn-gift-popup__backdrop {
    background:
        radial-gradient(ellipse 60% 50% at 15% 0%, rgba(59, 130, 246, 0.18), transparent 70%),
        radial-gradient(ellipse 55% 45% at 88% 4%, rgba(37, 99, 235, 0.22), transparent 70%),
        radial-gradient(ellipse 80% 50% at 50% 112%, rgba(59, 130, 246, 0.22), transparent 70%),
        rgba(0, 0, 0, 0.98);
}

/* Perspective grid floor; moved with transform only (no repaint) */
.tn-gift-popup[data-theme="cyber"] .tn-gift-popup__fog {
    display: block;
    position: absolute;
    left: -50%;
    right: -50%;
    bottom: 0;
    height: 62%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.32) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.32) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
    mask-image: linear-gradient(to top, #000 10%, transparent 85%);
    transform: perspective(480px) rotateX(64deg) translateY(0);
    transform-origin: 50% 100%;
    animation: tn-grid-run 1.8s linear infinite;
    will-change: transform;
}

@keyframes tn-grid-run {
    to { transform: perspective(480px) rotateX(64deg) translateY(48px); }
}

/* Faint scanlines over the whole stage */
.tn-gift-popup[data-theme="cyber"] .tn-gift-popup__moon {
    display: block;
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px);
    pointer-events: none;
}

/* =========================================================
   Intro screens used by Thanksgiving / Black Friday / Cyber Monday
   (EVENTS[].intro in the JS; the gift box stays the default)
   ========================================================= */

@keyframes tn-cursor {
    50% { opacity: 0; }
}

.vt-env,
.vt-shop,
.vt-dec__btn {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
}

.vt-env:focus-visible,
.vt-shop:focus-visible,
.vt-dec__btn:focus-visible {
    outline: 2px solid var(--tn-accent-light);
    outline-offset: 6px;
}

/* ---------- Envelope (Thanksgiving) ---------- */
.vt-env-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0;
}

.vt-env {
    position: relative;
    width: 380px;
    height: 244px;
    margin: 26px 0 30px;
    perspective: 900px;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}

.vt-env.is-idle {
    animation: tn-gift-bob 3.2s ease-in-out infinite;
}

.vt-env__back {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: linear-gradient(180deg, #e4cda2, #d8bd8c);
}

/* The letter waiting inside; slides up when the seal breaks */
.vt-env__letter {
    position: absolute;
    left: 22px;
    right: 22px;
    top: 14px;
    z-index: 1;
    height: 210px;
    padding: 20px 24px;
    border-radius: 3px;
    text-align: left;
    background:
        repeating-linear-gradient(180deg, transparent 0 21px, rgba(120, 53, 15, 0.1) 21px 22px) 0 48px / 100% calc(100% - 48px) no-repeat,
        #fdf8ee;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.vt-env__letter b {
    display: block;
    margin-bottom: 14px;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    color: #7c2d12;
}

.vt-env__letter i {
    display: block;
    height: 6px;
    margin-bottom: 14px;
    border-radius: 3px;
    background: rgba(124, 45, 18, 0.16);
}

.vt-env__letter i:nth-child(3) { width: 82%; }
.vt-env__letter i:nth-child(4) { width: 64%; }

/* Front pocket: the V-shaped folds that hold the letter in */
.vt-env__pocket {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 6px;
    /* Solid front with a V cut at the top (the flap covers it); faint fold lines from the bottom corners */
    clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
    background:
        linear-gradient(to top right, transparent calc(50% - 1px), rgba(120, 53, 15, 0.14) 50%, transparent calc(50% + 1px)) left bottom / 50% 100% no-repeat,
        linear-gradient(to top left, transparent calc(50% - 1px), rgba(120, 53, 15, 0.14) 50%, transparent calc(50% + 1px)) right bottom / 50% 100% no-repeat,
        linear-gradient(180deg, #f6e8cb, #f1dfba);
}

.vt-env__address {
    position: absolute;
    left: 30px;
    bottom: 26px;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 17px;
    line-height: 1.3;
    text-align: left;
    color: #7c2d12;
}

.vt-env__address em {
    display: block;
    font-size: 14px;
    color: #9a3412;
}

.vt-env__stamp {
    position: absolute;
    right: 24px;
    bottom: 22px;
    display: grid;
    place-items: center;
    width: 50px;
    height: 58px;
    font-size: 26px;
    background: #fff8ec;
    border: 2px dashed #c2410c;
    transform: rotate(6deg);
}

/* Top flap; folds back (rotateX) when the seal breaks */
.vt-env__flap {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 3;
    height: 62%;
    background: linear-gradient(180deg, #ead3a8, #dcc193);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: 50% 0;
    backface-visibility: visible;
}

.vt-env__seal {
    position: absolute;
    left: 50%;
    top: 62%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: -31px 0 0 -31px;
    border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
    background: radial-gradient(circle at 35% 30%, #e8590c, #a3230b 58%, #6b1206);
    box-shadow:
        inset 0 0 0 5px rgba(0, 0, 0, 0.12),
        inset 0 0 0 7px rgba(255, 200, 170, 0.22),
        0 6px 14px rgba(120, 20, 0, 0.5);
    animation: vt-seal-glow 2.2s ease-in-out infinite alternate;
}

.vt-env__seal b {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    color: #ffe2c6;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
}

@keyframes vt-seal-glow {
    from { box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.12), inset 0 0 0 7px rgba(255, 200, 170, 0.22), 0 6px 14px rgba(120, 20, 0, 0.5); }
    to { box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.12), inset 0 0 0 7px rgba(255, 200, 170, 0.22), 0 6px 14px rgba(120, 20, 0, 0.5), 0 0 26px 6px rgba(255, 150, 60, 0.45); }
}

.vt-env:hover .vt-env__seal {
    scale: 1.06;
}

/* ---------- Shopfront with a roller shutter (Black Friday) ---------- */
.vt-shop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 400px;
    margin: 22px 0 26px;
}

/* Neon sign: flickers until the doors open, then stays lit */
.vt-shop__sign {
    position: relative;
    z-index: 2;
    margin-bottom: -6px;
    padding: 8px 22px;
    border-radius: 10px;
    border: 2px solid rgba(245, 196, 81, 0.6);
    background: #0b0b0c;
    font-family: 'Lexend', 'Livvic', sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fde68a;
    text-shadow: 0 0 6px #f5c451, 0 0 18px rgba(239, 68, 68, 0.8);
    box-shadow: 0 0 22px -4px rgba(245, 196, 81, 0.7);
    animation: vt-neon 3.4s steps(1, end) infinite;
}

.vt-shop.is-open .vt-shop__sign {
    animation: none;
}

@keyframes vt-neon {
    0%, 18%, 22%, 60%, 64%, 100% { opacity: 1; }
    20%, 62% { opacity: 0.35; }
}

/* Striped awning with a scalloped edge */
.vt-shop__awning {
    position: relative;
    width: 100%;
    height: 44px;
    border-radius: 8px 8px 0 0;
    background: repeating-linear-gradient(90deg, #111113 0 32px, #f5c451 32px 64px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.5);
}

.vt-shop__awning::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -14px;
    height: 14px;
    background:
        radial-gradient(circle at 16px 0, #111113 15px, transparent 16px) 0 0 / 64px 14px repeat-x,
        radial-gradient(circle at 48px 0, #f5c451 15px, transparent 16px) 0 0 / 64px 14px repeat-x;
}

.vt-shop__front {
    position: relative;
    width: 92%;
    height: 210px;
    overflow: hidden;
    border: 10px solid #1c1c1f;
    border-top-width: 16px;
    background: #050505;
}

/* Lit interior behind the shutter */
.vt-shop__inside {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0.25;
    background: radial-gradient(ellipse at 50% 30%, #fff1c2 0%, #f5c451 35%, #92400e 100%);
}

.vt-shop__deal {
    font-family: 'Lexend', 'Livvic', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #111111;
}

.vt-shop__deal b {
    font-size: 54px;
    letter-spacing: -0.02em;
}

.vt-shop__shelf {
    display: flex;
    gap: 14px;
}

.vt-shop__shelf i {
    width: 34px;
    height: 40px;
    border-radius: 4px 4px 8px 8px;
    background: #111111;
    box-shadow: inset 0 0 0 2px rgba(245, 196, 81, 0.7);
}

.vt-shop__shelf i:nth-child(even) {
    background: #dc2626;
}

/* Metal roller shutter */
.vt-shop__shutter {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%, rgba(0, 0, 0, 0.35)),
        repeating-linear-gradient(180deg, #6b6b74 0 2px, #4a4a52 2px 11px, #2f2f35 11px 13px);
    box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.5);
}

.vt-shop__notice {
    padding: 12px 20px;
    font-family: 'Lexend', 'Livvic', sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111111;
    background: #fff8e1;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45);
    transform: rotate(-4deg);
}

.vt-shop__handle {
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 64px;
    height: 10px;
    margin-left: -32px;
    border-radius: 5px;
    background: linear-gradient(180deg, #9ca3af, #4b5563);
}

.vt-shop__step {
    width: 100%;
    height: 12px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(180deg, #2a2a2e, #141416);
}

.vt-shop:hover .vt-shop__shutter {
    translate: 0 -4%;
}

/* ---------- Encrypted deal panel (Cyber Monday) ---------- */
.vt-dec {
    position: relative;
    width: min(520px, 100%);
    padding: 0 30px 30px;
    overflow: hidden;
    border-radius: 14px;
    text-align: left;
    font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Courier New', monospace;
    color: #d4d4d8;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
        rgba(8, 8, 10, 0.96);
    border: 1px solid rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 40px 90px -24px rgba(0, 0, 0, 0.9), 0 0 80px -24px rgba(59, 130, 246, 0.6);
}

.vt-dec__bar {
    display: flex;
    justify-content: space-between;
    margin: 0 -30px 22px;
    padding: 10px 18px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #71717a;
    background: #0f0f12;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.vt-dec__bar i {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #f43f5e;
    box-shadow: 0 0 8px #f43f5e;
    animation: tn-cursor 1.2s steps(1, end) infinite;
}

.vt-dec.is-decrypted .vt-dec__bar i {
    background: #86efac;
    box-shadow: 0 0 8px #86efac;
    animation: none;
}

.vt-dec__eyebrow {
    margin-bottom: 6px;
}

.vt-dec__title {
    margin-bottom: 18px;
    font-family: 'Lexend', 'Livvic', sans-serif;
    font-size: clamp(24px, 3.4vw, 32px);
}

.vt-dec__cipher {
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: 8px;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.8);
    border: 1px dashed rgba(255, 255, 255, 0.35);
}

.vt-dec.is-decrypted .vt-dec__cipher {
    color: #86efac;
    text-shadow: 0 0 14px rgba(134, 239, 172, 0.7);
    border-color: rgba(134, 239, 172, 0.5);
}

.vt-dec__key {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    font-size: 13px;
}

.vt-dec__key span:first-child {
    color: #3b82f6;
}

.vt-dec__dots {
    letter-spacing: 0.2em;
    color: #a1a1aa;
}

.vt-dec__progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 12px;
    color: #ffffff;
}

.vt-dec__track {
    position: relative;
    flex: 1;
    height: 8px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.12);
}

.vt-dec__track i {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

/* The Decrypt button replaces the shared "tap" pill on this intro */
.vt-dec__btn.tn-gift-popup__gift-cta {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #60a5fa, #3b82f6 45%, #2563eb);
    border: 0;
    box-shadow: 0 0 26px -6px rgba(59, 130, 246, 0.9);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: vt-dec-pulse 1.8s ease-in-out infinite;
}

.vt-dec__btn:hover {
    filter: brightness(1.1);
}

@keyframes vt-dec-pulse {
    50% { box-shadow: 0 0 40px -2px rgba(59, 130, 246, 0.9); }
}

.vt-dec.is-opening .vt-dec__btn {
    animation: none;
    opacity: 0.5;
    pointer-events: none;
}

/* ---------- Phones ---------- */
@media (max-width: 575px) {
    .vt-env {
        width: 300px;
        height: 194px;
    }

    .vt-env__letter {
        height: 166px;
        padding: 14px 18px;
    }

    .vt-env__address {
        left: 20px;
        bottom: 18px;
        font-size: 14px;
    }

    .vt-env__address em {
        font-size: 12px;
    }

    .vt-env__stamp {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 46px;
        font-size: 20px;
    }

    .vt-shop {
        width: 310px;
    }

    .vt-shop__sign {
        font-size: 18px;
    }

    .vt-shop__front {
        height: 180px;
    }

    .vt-shop__deal b {
        font-size: 42px;
    }

    .vt-dec {
        padding: 0 18px 20px;
    }

    .vt-dec__bar {
        margin: 0 -18px 18px;
    }
}
/* =========================================================
   Card layouts used by Thanksgiving / Black Friday / Cyber Monday
   (EVENTS[].layout in the JS; the voucher above stays the default)
   ========================================================= */

.vt-letter,
.vt-receipt,
.vt-bento {
    position: relative;
    isolation: isolate;
    text-align: left;
    outline: none;
}

.vt-letter .tn-letter,
.vt-receipt .tn-letter {
    background: none;
    filter: none;
}

/* Shared plain-text countdown */
.vt-count {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.vt-count[hidden] {
    display: none;
}

/* ---------- Letter (Thanksgiving) ---------- */
.vt-letter {
    width: min(740px, 100%);
    padding: 46px 54px 34px;
    border-radius: 6px;
    color: #3b2314;
    background:
        linear-gradient(90deg, transparent 34px, rgba(201, 42, 42, 0.22) 34px 35px, transparent 35px),
        repeating-linear-gradient(180deg, transparent 0 31px, rgba(120, 53, 15, 0.08) 31px 32px),
        radial-gradient(ellipse at 50% 40%, #fdf8ee 0%, #f8eedb 70%, #efdcbc 100%);
    box-shadow:
        0 0 0 1px rgba(120, 53, 15, 0.14),
        inset 0 0 70px rgba(180, 120, 60, 0.2),
        0 44px 100px -24px rgba(0, 0, 0, 0.85);
}

/* The sky stays above the card; no mirrored copy on paper */
.vt-letter__sparks,
.vt-receipt__sparks {
    display: none;
}

.vt-letter__polaroid {
    position: absolute;
    top: -30px;
    right: -22px;
    z-index: 3;
    width: 226px;
    margin: 0;
    padding: 10px 10px 12px;
    background: #ffffff;
    box-shadow: 0 22px 40px -12px rgba(0, 0, 0, 0.6);
    transform: rotate(5deg);
}

.vt-letter__polaroid img {
    display: block;
    width: 100%;
    height: 176px;
    object-fit: cover;
}

.vt-letter__polaroid figcaption {
    margin-top: 9px;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 13px;
    color: #5b3a22;
    text-align: center;
}

.vt-letter__tape {
    position: absolute;
    top: -12px;
    left: 50%;
    width: 92px;
    height: 24px;
    margin-left: -46px;
    background: rgba(255, 236, 190, 0.78);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transform: rotate(-4deg);
}

.vt-letter__body {
    position: relative;
    z-index: 2;
    max-width: calc(100% - 222px);
}

.vt-letter__date {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #b45309;
}

.vt-letter__title {
    margin: 0 0 12px;
    line-height: 1.02;
}

.vt-letter__salutation {
    display: block;
    margin-bottom: 4px;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 22px;
    color: #7c2d12;
}

.vt-letter__title-main {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(38px, 4.8vw, 54px);
    letter-spacing: -0.01em;
    perspective: 600px;
}

.vt-letter .tn-letter {
    color: #9a3412;
}

.vt-letter__text {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #4a2e1a;
}

.vt-letter__count {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7c2d12;
}

.vt-letter__count .vt-count {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
}

.vt-letter__count .vt-count b {
    font-size: 22px;
    font-weight: 700;
    color: #c2410c;
}

.vt-letter__foot {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "sign actions seal";
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed rgba(120, 53, 15, 0.32);
}

.vt-letter__sign {
    grid-area: sign;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 15px;
    color: #5b3a22;
}

.vt-letter__sign b {
    display: block;
    font-size: 22px;
    color: #7c2d12;
}

/* Wax seal carrying the offer */
.vt-letter__seal {
    grid-area: seal;
    display: grid;
    place-items: center;
    align-content: center;
    width: 96px;
    height: 96px;
    border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
    color: #ffe8d2;
    background: radial-gradient(circle at 35% 30%, #e8590c, #a3230b 58%, #6b1206);
    box-shadow:
        inset 0 0 0 6px rgba(0, 0, 0, 0.12),
        inset 0 0 0 8px rgba(255, 200, 170, 0.22),
        0 8px 16px rgba(120, 20, 0, 0.45);
    transform: rotate(-8deg);
}

.vt-letter__seal[hidden] {
    display: none;
}

.vt-letter__seal b {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    line-height: 1;
}

.vt-letter__seal span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.vt-letter__actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.vt-letter__claim,
.vt-letter__burst {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.vt-letter__claim {
    color: #ffffff;
    background: #7c2d12;
}

.vt-letter__claim:hover,
.vt-letter__claim:focus-visible {
    color: #ffffff;
    background: #9a3412;
}

.vt-letter__burst {
    border: 1.5px solid rgba(124, 45, 18, 0.4);
    color: #7c2d12;
    background: transparent;
}

.vt-letter__burst:hover,
.vt-letter__burst:focus-visible {
    background: rgba(124, 45, 18, 0.08);
}

/* ---------- Receipt (Black Friday) ---------- */
.vt-receipt {
    width: min(430px, 100%);
    filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.7));
}

.vt-receipt__paper {
    position: relative;
    padding: 30px 30px 26px;
    color: #111111;
    font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Courier New', monospace;
    background: #f7f5ef;
}

/* Torn zig-zag edges, top and bottom */
.vt-receipt__paper::before,
.vt-receipt__paper::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 12px;
    background:
        linear-gradient(135deg, #f7f5ef 33.33%, transparent 33.33%) 0 0 / 16px 12px,
        linear-gradient(225deg, #f7f5ef 33.33%, transparent 33.33%) 0 0 / 16px 12px;
}

.vt-receipt__paper::before {
    top: -12px;
    transform: rotate(180deg);
}

.vt-receipt__paper::after {
    bottom: -12px;
}

.vt-receipt__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding-bottom: 14px;
    border-bottom: 1.5px dashed #9a9a9a;
    text-align: center;
}

.vt-receipt__store {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.vt-receipt__addr {
    font-size: 11px;
    color: #555555;
}

.vt-receipt__title {
    margin: 16px 0 4px;
    text-align: center;
    line-height: 1;
}

.vt-receipt__kicker {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #dc2626;
}

.vt-receipt__title-main {
    display: block;
    margin: 0 -30px;
    padding: 10px 12px 12px;
    font-family: 'Lexend', 'Livvic', sans-serif;
    font-weight: 900;
    font-size: 40px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: #0a0a0a;
}

.vt-receipt .tn-letter {
    color: #f5c451;
}

.vt-receipt__meta {
    margin: 10px 0 0;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: #555555;
}

.vt-receipt__items {
    margin: 14px 0 0;
    padding: 12px 0 0;
    list-style: none;
    border-top: 1.5px dashed #9a9a9a;
}

.vt-receipt__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    line-height: 1.9;
}

.vt-receipt__row i {
    flex: 1;
    border-bottom: 1.5px dotted #a8a8a8;
}

.vt-receipt__row b {
    color: #dc2626;
}

.vt-receipt__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 12px;
    padding: 10px 0;
    border-top: 2px solid #111111;
    border-bottom: 2px solid #111111;
}

.vt-receipt__total[hidden] {
    display: none;
}

.vt-receipt__total > span {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vt-receipt__total b {
    font-family: 'Lexend', 'Livvic', sans-serif;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
}

.vt-receipt__valid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vt-receipt__valid .vt-count {
    letter-spacing: 0.04em;
    text-transform: none;
}

.vt-receipt__valid .vt-count b {
    font-size: 14px;
    font-weight: 800;
}

.vt-receipt__note {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
    color: #444444;
}

.vt-receipt__barcode {
    margin: 16px 0 0;
    text-align: center;
}

.vt-receipt__barcode span {
    display: block;
    height: 44px;
    background: repeating-linear-gradient(90deg,
        #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px,
        #111 8px 11px, transparent 11px 12px, #111 12px 13px, transparent 13px 16px,
        #111 16px 17px, transparent 17px 19px, #111 19px 22px, transparent 22px 24px);
}

.vt-receipt__barcode small {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: 0.3em;
    color: #444444;
}

.vt-receipt__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.vt-receipt__claim,
.vt-receipt__burst {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 6px;
    font-family: 'Lexend', 'Livvic', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.vt-receipt__claim {
    color: #f5c451;
    background: #0a0a0a;
}

.vt-receipt__claim:hover,
.vt-receipt__claim:focus-visible {
    color: #fde68a;
    background: #262626;
}

.vt-receipt__burst {
    border: 1.5px solid #111111;
    color: #111111;
    background: transparent;
}

.vt-receipt__burst:hover,
.vt-receipt__burst:focus-visible {
    background: rgba(0, 0, 0, 0.06);
}

.vt-receipt__thanks {
    margin: 14px 0 0;
    font-size: 11px;
    text-align: center;
    color: #666666;
}

/* ---------- Bento grid (Cyber Monday) ---------- */
.vt-bento {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-areas:
        "hero hero photo"
        "offer timer timer"
        "services services cta";
    gap: 12px;
    width: min(940px, 100%);
    padding: 12px;
    border-radius: 26px;
    color: #ffffff;
    font-family: 'Lexend', 'Livvic', sans-serif;
    background: rgba(8, 8, 10, 0.92);
    border: 1px solid rgba(59, 130, 246, 0.28);
    box-shadow: 0 44px 100px -24px rgba(0, 0, 0, 0.9), 0 0 120px -40px rgba(59, 130, 246, 0.6);
}

.vt-bento__sparks {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
}

.vt-bento__tile {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(160deg, #131317 0%, #0a0a0c 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: border-color 0.3s;
}

.vt-bento__tile:hover {
    border-color: rgba(59, 130, 246, 0.45);
}

.vt-bento__tile[hidden] {
    display: none;
}

.vt-bento__label {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #60a5fa;
}

/* Title tile */
.vt-bento__hero {
    grid-area: hero;
    padding: 26px 28px;
    background:
        radial-gradient(ellipse 70% 80% at 0% 0%, rgba(59, 130, 246, 0.16), transparent 70%),
        linear-gradient(160deg, #131317 0%, #0a0a0c 100%);
}

.vt-bento__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #a1a1aa;
}

.vt-bento__live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.vt-bento__live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    animation: vt-live 1.6s ease-out infinite;
}

@keyframes vt-live {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    100% { box-shadow: 0 0 0 9px rgba(59, 130, 246, 0); }
}

.vt-bento__title {
    margin: 0 0 12px;
    line-height: 1;
}

.vt-bento__sub {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #60a5fa;
}

.vt-bento__title-main {
    display: block;
    font-size: clamp(40px, 4.8vw, 60px);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.vt-bento .tn-letter {
    background: linear-gradient(180deg, #ffffff 0%, #dbeafe 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(59, 130, 246, 0.45));
}

.vt-bento__text {
    max-width: 440px;
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #a1a1aa;
}

/* Photo tile */
.vt-bento__photo {
    grid-area: photo;
    min-height: 230px;
    padding: 0;
}

.vt-bento__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vt-bento__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.75) 100%), linear-gradient(160deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.25));
}

.vt-bento__edition {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Offer tile (10%/15% OFF) */
.vt-bento__offer {
    grid-area: offer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 25% 15%, rgba(147, 197, 253, 0.5), transparent 55%),
        linear-gradient(150deg, #2563eb 0%, #1d4ed8 45%, #0b1b4d 100%);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 20px 50px -20px rgba(37, 99, 235, 0.9);
}

.vt-bento__kicker {
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.25);
}

.vt-bento__offer b {
    font-size: 76px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.vt-bento__off {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

.vt-bento__offer small {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.vt-bento__offer small[hidden] {
    display: none;
}

/* Countdown tile */
.vt-bento__timer {
    grid-area: timer;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vt-bento__count {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    perspective: 600px;
}

.vt-bento__count[hidden] {
    display: none;
}

.vt-bento__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 6px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vt-bento__unit b {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.vt-bento__unit small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #71717a;
}

.vt-bento__today {
    font-size: 15px;
    color: #d4d4d8;
}

/* Services tile */
.vt-bento__services {
    grid-area: services;
}

.vt-bento__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vt-bento__chips li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.vt-bento__chips li::before {
    content: "\2713";
    font-weight: 800;
    color: #60a5fa;
}

/* Actions tile */
.vt-bento__cta {
    grid-area: cta;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.vt-bento__claim,
.vt-bento__burst {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14.5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.vt-bento__claim {
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    box-shadow: 0 12px 30px -10px rgba(37, 99, 235, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.vt-bento__claim:hover,
.vt-bento__claim:focus-visible {
    color: #ffffff;
    box-shadow: 0 16px 40px -8px rgba(37, 99, 235, 1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.vt-bento__burst {
    font-weight: 600;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.vt-bento__burst:hover,
.vt-bento__burst:focus-visible {
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.1);
}

/* ---------- Phones ---------- */
@media (max-width: 720px) {
    .vt-letter {
        padding: 26px 22px 24px;
    }

    .vt-letter__polaroid {
        position: relative;
        top: auto;
        right: auto;
        width: 200px;
        margin: -6px auto 16px;
    }

    .vt-letter__polaroid img {
        height: 120px;
    }

    .vt-letter__body {
        max-width: none;
    }

    .vt-letter__text {
        font-size: 14px;
        line-height: 1.6;
    }

    .vt-letter__foot {
        grid-template-columns: 1fr auto;
        grid-template-areas: "sign seal" "actions actions";
        gap: 14px;
    }

    .vt-letter__seal {
        width: 78px;
        height: 78px;
    }

    .vt-letter__seal b {
        font-size: 22px;
    }

    .vt-receipt__paper {
        padding: 24px 20px 22px;
    }

    .vt-receipt__title-main {
        margin: 0 -20px;
        font-size: 34px;
    }

    .vt-receipt__claim,
    .vt-receipt__burst {
        gap: 4px;
        padding: 0 6px;
        font-size: 12.5px;
        white-space: nowrap;
    }

    /* Keep the sound / close buttons clear of the card on phones */
    .tn-gift-popup[data-layout="letter"] .tn-gift-popup__card-stage,
    .tn-gift-popup[data-layout="receipt"] .tn-gift-popup__card-stage,
    .tn-gift-popup[data-layout="bento"] .tn-gift-popup__card-stage {
        padding-top: 64px;
    }

    .vt-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "hero hero"
            "photo offer"
            "timer timer"
            "services services"
            "cta cta";
        gap: 10px;
        padding: 10px;
    }

    .vt-bento__hero {
        padding: 20px;
    }

    .vt-bento__title-main {
        font-size: 38px;
    }

    .vt-bento__text {
        font-size: 13px;
    }

    .vt-bento__photo {
        min-height: 140px;
    }

    .vt-bento__offer {
        padding: 16px;
    }

    .vt-bento__offer b {
        font-size: 52px;
    }

    .vt-bento__tile {
        padding: 16px;
    }

    .vt-bento__unit b {
        font-size: 28px;
    }

    .vt-bento__cta {
        flex-direction: row;
    }

    .vt-bento__claim,
    .vt-bento__burst {
        flex: 1;
        padding: 0 10px;
        font-size: 13.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tn-gift-popup[data-theme="harvest"] .tn-gift-popup__fog,
    .tn-gift-popup[data-theme="sale"] .tn-gift-popup__fog,
    .tn-gift-popup[data-theme="cyber"] .tn-gift-popup__fog,
    .vt-bento__live i,
    .vt-env.is-idle,
    .vt-env__seal,
    .vt-shop__sign,
    .vt-dec__bar i,
    .vt-dec__btn {
        animation: none;
    }
}

/* =========================================================
   Rotating announcement bar (header #announcementBar)
   JS wraps the original .announcement-content as the first slide and adds
   event slides; the bar's base look stays in resources.css.
   ========================================================= */

.vt-ann-host {
    --vt-ann-accent: #ffffff;
    overflow: hidden;
}

.vt-ann {
    flex: 1;
    min-width: 0;
    padding: 0 40px;
}

.vt-ann__track {
    position: relative;
    height: 24px;
    overflow: hidden;
}

.vt-ann__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(110%);
    pointer-events: none;
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.vt-ann__slide.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.vt-ann__slide.is-leaving {
    opacity: 0;
    transform: translateY(-110%);
}

/* Pieces of the incoming slide arrive one after another. */
.vt-ann__slide > * {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.vt-ann__slide.is-active > * {
    opacity: 1;
    transform: none;
}

.vt-ann__slide.is-active > :nth-child(2) {
    transition-delay: 0.08s;
}

.vt-ann__slide.is-active > :nth-child(3) {
    transition-delay: 0.16s;
}

.vt-ann__slide.is-active > :nth-child(4) {
    transition-delay: 0.24s;
}

/* The original message keeps one line inside the fixed-height track. */
.vt-ann__slide .announcement-content {
    flex-wrap: nowrap;
    min-width: 0;
}

.vt-ann__slide .announcement-text,
.vt-ann__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vt-ann__badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 2px 10px 2px 8px;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Light sweep across the badge. */
.vt-ann__badge::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: translateX(-120%) skewX(-20deg);
    animation: vt-ann-shine 3.2s ease-in-out 0.8s infinite;
}

@keyframes vt-ann-shine {
    0% {
        transform: translateX(-120%) skewX(-20deg);
    }

    40%,
    100% {
        transform: translateX(320%) skewX(-20deg);
    }
}

.vt-ann__pulse {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--vt-ann-accent);
    box-shadow: 0 0 8px var(--vt-ann-accent);
}

.vt-ann__pulse::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid var(--vt-ann-accent);
    animation: vt-ep-pulse 1.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.vt-ann__text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 500;
}

.vt-ann__count {
    flex-shrink: 0;
    padding: 1px 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    background: rgba(10, 5, 25, 0.22);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.vt-ann__count[hidden] {
    display: none;
}

.vt-ann__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    text-underline-offset: 2px;
    cursor: pointer;
}

.vt-ann__link i {
    font-size: 12px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.vt-ann__link:hover {
    text-decoration-color: #fff;
}

.vt-ann__link:hover i {
    transform: translateX(3px);
}

.vt-ann__link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Timer line along the bottom edge, tinted with the current event's colour.
   Its animationend advances the slide, so pausing it pauses the rotation. */
.vt-ann__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), var(--vt-ann-accent));
    box-shadow: 0 0 10px var(--vt-ann-accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}

.vt-ann__progress.is-running {
    animation: vt-ann-progress var(--vt-ann-interval, 6500ms) linear forwards;
}

@keyframes vt-ann-progress {
    to {
        transform: scaleX(1);
    }
}

.vt-ann-host:hover .vt-ann__progress,
.vt-ann-host:focus-within .vt-ann__progress {
    animation-play-state: paused;
}

@media (max-width: 991.98px) {
    .vt-ann__count {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vt-ann__slide,
    .vt-ann__slide > * {
        transition: none;
    }

    .vt-ann__badge::after,
    .vt-ann__pulse::after {
        animation: none;
    }

    .vt-ann__progress {
        opacity: 0;
    }
}
