/* =========================================================
   Trionova Festive Gift Reveal
   Gift box → cracker burst → greeting card with flip-clock
   ========================================================= */

@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,
.tn-card__cta: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 card
   Full-bleed festival photo + centered glass greeting panel
   ========================================================= */

/* Fireworks drop behind the card once it is revealed; the card mirrors them over its photo */
.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%;
}

.tn-card {
    --tn-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    position: relative;
    display: grid;
    place-items: center;
    width: min(1000px, 100%);
    min-height: 600px;
    padding: 64px 48px;
    border-radius: 30px;
    overflow: hidden;
    isolation: isolate;
    background: #050817;
    box-shadow:
        0 50px 120px -20px rgba(0, 0, 0, 0.9),
        0 0 120px -30px var(--tn-accent-glow);
    outline: none;
    transform-style: preserve-3d;
}

/* Photo */
.tn-card__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.tn-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    animation: tn-kenburns 18s ease-in-out infinite alternate;
}

@keyframes tn-kenburns {
    from {
        transform: scale(1.04) translate(0, 0);
    }

    to {
        transform: scale(1.14) translate(-1.5%, -1.5%);
    }
}

.tn-card__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 58% at 50% 50%, rgba(4, 6, 20, 0.6), transparent 78%),
        linear-gradient(0deg, rgba(4, 6, 20, 0.8) 0%, transparent 28%),
        linear-gradient(180deg, rgba(4, 6, 20, 0.55) 0%, transparent 22%);
}

.tn-card__sparks {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Rotating light beam around the border */
.tn-card__beam {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--tn-beam-angle), rgba(255, 255, 255, 0.1) 0deg 250deg, var(--tn-accent) 300deg, var(--tn-accent-light) 340deg, rgba(255, 255, 255, 0.1) 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: tn-beam 6s linear infinite;
}

@keyframes tn-beam {
    to {
        --tn-beam-angle: 360deg;
    }
}

/* Corner labels on the photo */
.tn-card__corner {
    position: absolute;
    left: 28px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.tn-card__corner--top {
    top: 24px;
}

.tn-card__corner--bottom {
    top: 24px;
    left: auto;
    right: 28px;
}

.tn-card__corner b {
    font-weight: 800;
    color: var(--tn-accent-light);
}

.tn-card__corner-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tn-accent);
    box-shadow: 0 0 10px var(--tn-accent);
}

.tn-card__corner-sep {
    color: var(--tn-accent);
}

/* ---------- Glass panel ---------- */
.tn-card__panel {
    position: relative;
    z-index: 2;
    width: min(540px, 100%);
    padding: 30px 40px 26px;
    text-align: center;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(10, 14, 38, 0.6) 0%, rgba(6, 9, 26, 0.74) 100%);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Gold hairline inner frame */
.tn-card__panel::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 20px;
    border: 1px solid var(--tn-accent-glow);
    pointer-events: none;
}

.tn-card__emblem {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    border-radius: 50%;
    border: 1px solid var(--tn-accent-glow);
    background: radial-gradient(circle, var(--tn-accent-glow), transparent 72%);
    font-size: 26px;
    line-height: 1;
}

.tn-card__emblem-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px dashed var(--tn-accent-light);
    opacity: 0.45;
    animation: tn-spin 18s linear infinite;
}

.tn-card__edition {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--tn-accent-light);
}

.tn-card__edition::before,
.tn-card__edition::after {
    content: "";
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tn-accent-light));
}

.tn-card__edition::after {
    transform: scaleX(-1);
}

.tn-card__title {
    margin: 0 0 12px;
    line-height: 1.05;
}

.tn-card__title-sub {
    display: block;
    margin-bottom: 4px;
    font-family: var(--tn-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(18px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.8);
}

.tn-card__title-main {
    position: relative;
    display: block;
    font-family: var(--tn-serif);
    font-weight: 700;
    font-size: clamp(40px, 5.2vw, 62px);
    letter-spacing: -0.01em;
    font-kerning: none;
    perspective: 600px;
}

.tn-card__title-main.is-long {
    font-size: clamp(32px, 3.9vw, 46px);
}

/* Gold sheen that sweeps across the letters */
.tn-card__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;
}

.tn-card__text {
    max-width: 400px;
    margin: 0 auto 18px;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Offer ribbon between the greeting and the countdown */
.tn-card__offer {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: -4px auto 16px;
    padding: 7px 18px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid var(--tn-accent-light);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), var(--tn-accent-glow), rgba(255, 255, 255, 0.03));
    box-shadow: 0 0 22px -6px var(--tn-accent-glow);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff6d8;
}

.tn-card__offer[hidden] {
    display: none;
}

.tn-card__offer-star {
    color: var(--tn-accent-light);
    font-size: 11px;
}

/* Light sweep across the ribbon */
.tn-card__offer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
    background-size: 300% 100%;
    background-position: 150% 0;
    pointer-events: none;
    animation: tn-sheen 5.5s ease-in-out 3.4s infinite;
}

/* ---------- 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);
}

/* ---------- Actions ---------- */
.tn-card__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.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);
    }
}

.tn-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 2px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: color 0.2s ease, background-size 0.35s var(--tn-ease-out);
}

.tn-card__cta:hover {
    color: #ffffff;
    background-size: 100% 1px;
}

.tn-card__cta svg {
    transition: transform 0.25s var(--tn-ease-out);
}

.tn-card__cta:hover svg {
    transform: translateX(4px);
}

.tn-card__signoff {
    margin: 0;
    font-family: var(--tn-serif);
    font-style: italic;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.tn-card__signoff span {
    color: var(--tn-accent-light);
}

/* ---------- 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) {
    .tn-card {
        padding: 52px 40px;
    }

    .tn-card__panel {
        padding: 24px 34px 20px;
    }

    .tn-card__emblem {
        width: 48px;
        height: 48px;
        margin-bottom: 8px;
        font-size: 22px;
    }

    .tn-card__title-main {
        font-size: clamp(36px, 4.6vw, 52px);
    }

    .tn-card__text {
        margin-bottom: 14px;
    }

    .tn-card__timer {
        margin-bottom: 16px;
    }
}

@media (max-width: 820px) {
    .tn-card {
        min-height: 0;
        padding: 64px 16px 56px;
    }

    .tn-card__panel {
        width: 100%;
    }

    .tn-card__corner {
        left: 20px;
        font-size: 10px;
    }

    .tn-card__corner--top {
        top: 22px;
    }

    .tn-card__corner--bottom {
        top: auto;
        bottom: 20px;
        left: 20px;
        right: auto;
    }
}

@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;
    }

    .tn-card {
        border-radius: 22px;
        padding: 56px 12px 48px;
    }

    .tn-card__panel {
        padding: 22px 18px 18px;
        border-radius: 20px;
    }

    .tn-card__panel::before {
        inset: 6px;
        border-radius: 15px;
    }

    .tn-card__title-main,
    .tn-card__title-main.is-long {
        font-size: 34px;
    }

    .tn-card__text {
        font-size: 13.5px;
    }

    .tn-card__offer {
        gap: 7px;
        padding: 6px 13px;
        font-size: 10.5px;
        letter-spacing: 0.08em;
    }

    .tn-flipclock {
        gap: 5px;
        padding: 6px 10px;
    }

    .tn-flip__card {
        --h: 34px;
        width: 34px;
        font-size: 18px;
    }

    .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;
}

/* Seal on the greeting panel */
/* Top-left of the panel: the top-right corner of the card holds the date / festival label */
.tn-card__seal {
    position: absolute;
    top: -18px;
    left: -18px;
    z-index: 3;
    display: grid;
    place-content: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff8d6 0%, var(--tn-accent-light) 35%, var(--tn-accent) 100%);
    box-shadow: 0 10px 28px -6px var(--tn-accent-glow), 0 0 0 4px rgba(5, 8, 23, 0.55);
    color: var(--tn-ink);
    text-align: center;
    line-height: 1;
    transform: rotate(-12deg);
}

.tn-card__seal[hidden] {
    display: none;
}

.tn-card__seal::before {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 1.5px dashed rgba(5, 8, 23, 0.35);
}

.tn-card__seal b {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 27px;
    font-weight: 700;
}

.tn-card__seal span {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-indent: 0.24em;
    text-transform: uppercase;
}

@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; }

    .tn-card__seal {
        top: -2px;
        left: -8px;
        width: 66px;
        height: 66px;
    }

    .tn-card__seal b { font-size: 21px; }
    .tn-card__seal span { font-size: 9.5px; }
}

/* =========================================================
   Header & Announcement Bar Integration
   Ensures seamless natural stacking without obscuring navbar
   ========================================================= */

header.main-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}

/* Announcement Bar: Trionova brand navy (#022279) into the indigo of the CTA gradient,
   with the purple → cyan CTA gradient as a hairline underneath */
.announcement-bar {
    background:
        radial-gradient(ellipse 40% 140% at 50% 50%, rgba(91, 66, 243, 0.45), transparent 70%),
        linear-gradient(90deg, #022279 0%, #26178f 50%, #022279 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 -1px 0 rgba(0, 221, 235, 0.15);
    position: relative;
    z-index: 1002;
    width: 100%;
    padding: 7px 0;
    min-height: 38px;
    font-family: var(--font-secondary, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    line-height: 1.4;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Push navbar cleanly into normal flow right below the announcement bar */
header.main-header .navbar:not(.affix) {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    z-index: 1000 !important;
}

/* ---------- Glass header: bar + navbar sit over the hero ----------
   .tn-site-header--dark  : dark hero  -> white menu, glass announcement bar
   .tn-site-header--light : light hero -> navy menu, solid brand bar
   The navbar is not sticky: it scrolls away with the page */
header.tn-site-header .navbar:not(.affix) {
    background: transparent !important;
    box-shadow: none !important;
}

header.tn-site-header .navbar .main-menu > li > a.nav-link {
    transition: color 0.25s ease, opacity 0.25s ease;
}

/* Dark hero: a soft shade behind the header keeps white text readable on bright photos */
header.tn-site-header--dark::before {
    content: "";
    position: absolute;
    inset: 0 0 -70px;
    z-index: -1;
    background: linear-gradient(180deg, rgba(3, 8, 30, 0.6) 0%, rgba(3, 8, 30, 0.28) 60%, transparent 100%);
    pointer-events: none;
}

header.tn-site-header--dark .announcement-bar {
    background: rgba(6, 12, 40, 0.42);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

header.tn-site-header--dark .navbar:not(.affix) .main-menu > li > a.nav-link,
header.tn-site-header--dark .navbar:not(.affix) .navbar-toggler i::before {
    color: #ffffff !important;
}

header.tn-site-header--dark .navbar:not(.affix) .main-menu > li > a.nav-link:hover {
    color: #c4b5fd !important;
}

header.tn-site-header--light .navbar:not(.affix) .main-menu > li > a.nav-link,
header.tn-site-header--light .navbar:not(.affix) .navbar-toggler i::before {
    color: #0b1b4f !important;
}

header.tn-site-header--light .navbar:not(.affix) .main-menu > li > a.nav-link:hover {
    color: #5b42f3 !important;
}

/* Below the desktop menu breakpoint the theme pushes the first section down by the navbar height
   (inline margin-top), which left a blank strip behind the see-through header. Let the hero run
   up behind the header instead and pad its content clear of it. */
@media (max-width: 1199.98px) {
    body:has(header.tn-site-header) .main-content > section.ipad-top-space-margin:first-of-type {
        margin-top: 0 !important;
        padding-top: var(--tn-header-h, 140px) !important;
    }

    /* Scriberry's hero has no top spacing of its own on smaller screens */
    body:has(header.tn-site-header) .main-content > .hero-banner.style-1 {
        padding-top: calc(var(--tn-header-h, 140px) + 16px) !important;
    }
}

/* Data Science starts with a plain breadcrumb, which the opaque navbar used to hide the top of */
body:has(header.tn-site-header) .main-content > .brodcrum-section {
    margin-top: var(--tn-header-h, 120px) !important;
}

/* Sticky Header on scroll */
header.main-header.affix .navbar,
header.main-header .navbar.affix {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
}

/* Case study top gradient adjustment */
header.main-header.case-study-header::before {
    height: 120px !important;
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 24px;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.announcement-badge {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.announcement-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12.5px;
    font-weight: 500;
}

.announcement-text a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.announcement-text a:hover {
    text-decoration-color: #fff;
}

.announcement-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 7px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 6px;
    z-index: 3;
}

.announcement-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.06);
}

.vt-ann-host {
    --vt-ann-accent: #38bdf8;
    overflow: hidden;
}

.vt-ann {
    flex: 1;
    min-width: 0;
    padding: 0 40px;
}

.vt-ann__track {
    position: relative;
    height: 24px;
    overflow: hidden;
    overflow: clip; /* clip can't be scrolled by focus, hidden is the fallback */
}

.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%);
}

.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;
}

.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: linear-gradient(135deg, rgba(175, 64, 255, 0.55), rgba(91, 66, 243, 0.55));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.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;
}

@keyframes vt-ep-pulse {
    0% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}

.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.2);
    border-radius: 6px;
    background: rgba(2, 10, 60, 0.45);
    color: #fff;
    font-size: 11.5px;
    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: 12.5px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    text-underline-offset: 2px;
    cursor: pointer;
}

.vt-ann__link svg {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.vt-ann__link:hover {
    text-decoration-color: #fff;
}

.vt-ann__link:hover svg {
    transform: translateX(3px);
}

.vt-ann__link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 3px;
}

.vt-ann__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #af40ff, #5b42f3 50%, #00ddeb);
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.6);
    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); }
}

/* Pause only while the message itself is hovered or keyboard-focused. Hovering the whole bar
   (e.g. the cursor left there after clicking the popup's ✕) or a mouse-focused button must not freeze it. */
.vt-ann-host:has(.vt-ann__track:hover) .vt-ann__progress,
.vt-ann-host:has(:focus-visible) .vt-ann__progress {
    animation-play-state: paused;
}

@media (max-width: 991.98px) {
    .vt-ann__count {
        display: none;
    }
    .vt-ann {
        padding: 0 32px 0 10px;
    }
}

@media (max-width: 575.98px) {
    .announcement-bar {
        padding: 5px 0;
        min-height: 34px;
    }
    .vt-ann {
        padding: 0 28px 0 6px;
    }
    .vt-ann__track {
        height: 22px;
    }
    .vt-ann__badge,
    .announcement-badge {
        font-size: 9.5px;
        padding: 1px 7px;
    }
    .vt-ann__text,
    .announcement-text {
        font-size: 11.5px;
    }
    .vt-ann__link {
        font-size: 11px;
    }
    .announcement-close {
        right: 8px;
        padding: 3px 5px;
        font-size: 10px;
    }
}

@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;
    }
}