/* The gift at the top of the «2026» page. Before the opening it only wobbles when tapped; from 00:10 on 1 January it
   is the way into the report, whose own intro asks whether every investment is in Finomo and unwraps the year.
   Drawn like the gift in the report intro, so the two read as the same present. */
.ac-gift { --g: 132px; position: relative; display: block; width: calc(var(--g) + 40px); height: calc(var(--g) * 1.22); margin: 0 auto; padding: 0; border: 0; background: none; color: inherit; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
/* On wide screens the gift stands left of the title and the countdown, so the page takes less height. */
@media (min-width: 768px) {
    .ac-gift { --g: 176px; flex: none; margin: 0; }
    .ac-hero { display: flex; align-items: center; gap: 48px; }
    .ac-hero__text { flex: 1; min-width: 0; }
}
.ac-gift__box { position: absolute; left: 50%; bottom: 14px; width: var(--g); height: calc(var(--g) * .92); transform: translateX(-50%); }
.ac-gift__body { position: absolute; left: 0; right: 0; bottom: 0; height: 76%; border-radius: 8px 8px 16px 16px; background:
    radial-gradient(circle at 22% 30%, rgba(252,211,77,.55) 0 2px, transparent 2.6px) 0 0 / 28px 28px,
    radial-gradient(circle at 70% 72%, rgba(255,255,255,.35) 0 1.4px, transparent 2px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(0,0,0,.18), transparent 22%, transparent 78%, rgba(0,0,0,.22)),
    linear-gradient(165deg, #818CF8 0%, #6366F1 38%, #4338CA 75%, #312E81 100%); box-shadow: inset 0 -8px 20px rgba(0,0,0,.25); }
.ac-gift__lid { position: absolute; top: 0; left: -8px; right: -8px; height: 27%; border-radius: 10px; background:
    radial-gradient(circle at 30% 40%, rgba(252,211,77,.5) 0 2px, transparent 2.6px) 0 0 / 28px 28px,
    linear-gradient(180deg, #A5B4FC 0%, #818CF8 45%, #6366F1 100%); box-shadow: 0 6px 0 -1px rgba(30,27,75,.45), 0 10px 20px rgba(0,0,0,.25); transform-origin: 18% 100%; }
.ac-gift__ribbon { position: absolute; left: 50%; top: 0; bottom: 0; width: calc(var(--g) * .17); transform: translateX(-50%); border-radius: 3px; background: linear-gradient(90deg, #D97706, #F59E0B 18%, #FCD34D 40%, #FEF3C7 50%, #FCD34D 60%, #F59E0B 82%, #D97706); box-shadow: 0 0 0 1px rgba(146,64,14,.25); }
.ac-gift__bow { position: absolute; left: 50%; top: 0; width: calc(var(--g) * .66); height: calc(var(--g) * .34); transform: translate(-50%, -80%); }
.ac-gift__bow i { position: absolute; bottom: 10%; width: 46%; height: 82%; border: calc(var(--g) * .05) solid #FCD34D; border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; box-shadow: inset 0 0 0 2px rgba(217,119,6,.35), 0 3px 8px rgba(0,0,0,.25); }
.ac-gift__bow i:first-child { left: 2%; transform: rotate(-26deg); transform-origin: 100% 100%; border-color: #FCD34D #F59E0B #F59E0B #FCD34D; }
.ac-gift__bow i:nth-child(2) { right: 2%; transform: rotate(26deg); transform-origin: 0 100%; border-color: #FCD34D #FCD34D #F59E0B #F59E0B; }
.ac-gift__bow b { position: absolute; left: 50%; bottom: 0; width: calc(var(--g) * .2); height: calc(var(--g) * .16); transform: translateX(-50%); border-radius: 7px; background: linear-gradient(90deg, #D97706, #FCD34D 45%, #FEF3C7 55%, #F59E0B); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
/* a paper tag with the opening date, hanging off the bow */
.ac-gift__tag { position: absolute; right: 2px; top: calc(100% - 14px - var(--g) * .92 + var(--g) * .1); padding: 4px 7px 4px 9px; border-radius: 4px 7px 7px 4px; background: #FEF3C7; color: #78350F; font: 700 11px/1.1 Inter, sans-serif; letter-spacing: .02em; white-space: nowrap; transform: rotate(9deg); box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.ac-gift__tag::before { content: ""; position: absolute; left: 3px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #B45309; }
.ac-gift__shadow { position: absolute; left: 50%; bottom: 2px; width: calc(var(--g) * .95); height: 20px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); z-index: -1; }
.ac-gift__glow { position: absolute; left: 50%; bottom: 30px; width: calc(var(--g) * 1.7); height: calc(var(--g) * 1.3); transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(252,211,77,.28), rgba(129,140,248,.14) 55%, transparent); z-index: -1; pointer-events: none; }

/* Before the opening: no hover lift, so it does not promise to open; a tap makes it wobble and says when. */
.ac-gift.is-locked { cursor: default; }
.ac-gift.is-locked .ac-gift__glow { opacity: .45; }
.ac-gift.is-wobble .ac-gift__box { animation: ac-wobble .6s cubic-bezier(.36,.07,.19,.97); }
.ac-gift-note { min-height: 1.25rem; transition: opacity .25s; }
.ac-gift-note[data-shown="false"] { opacity: 0; }

/* From the opening: the gift asks to be opened. */
.ac-gift.is-ready { cursor: pointer; }
.ac-gift.is-ready .ac-gift__lid { animation: ac-peek 2.8s ease-in-out infinite 1s; }
.ac-gift.is-ready .ac-gift__glow { animation: ac-glow 2.8s ease-in-out infinite; }
.ac-gift.is-ready:hover .ac-gift__box, .ac-gift.is-ready:focus-visible .ac-gift__box { transform: translateX(-50%) translateY(-4px); transition: transform .2s; }
.ac-gift:focus-visible { outline: 3px solid #93C5FD; outline-offset: 6px; border-radius: 16px; }

@keyframes ac-wobble { 15% { transform: translateX(-50%) rotate(-7deg); } 30% { transform: translateX(-50%) rotate(6deg); } 45% { transform: translateX(-50%) rotate(-4deg); } 60% { transform: translateX(-50%) rotate(2deg); } 75% { transform: translateX(-50%) rotate(-1deg); } }
@keyframes ac-peek { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-7px) rotate(-4deg); } 86% { transform: none; } 91% { transform: translateY(-3px) rotate(-1.5deg); } }
@keyframes ac-glow { 50% { opacity: .55; transform: translateX(-50%) scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
    .ac-gift.is-ready .ac-gift__lid, .ac-gift.is-ready .ac-gift__glow, .ac-gift.is-wobble .ac-gift__box { animation: none; }
}
