/* Advent Calendar v5 (public-site/card-advent.js). Prefix .avc-*.
   Owner 11/29 rounds: v1 flat squares "too basic", v2/v3 the photo cut into doors "basic", v4 "opening animation is kind of basic
   ... gift boxes that u shake to open" + "Whys it got like such a white haze over everything?". v5 = a pile of 25 real gift boxes
   (one real photographed box, recoloured into 6 wraps, assets/advent/gift-*.webp) in front of the black-and-gold tree; tap
   today's box, shake it 3 times, the lid pops off along its real lid line and the gifts rise out in their rarity colour.
   The reveal sits on a plain dark backdrop (no white haze). Only transform / opacity animate (owner 11/29 "so laggy"). */

/* ── tile on Home (right under the banner) ── */
.avc-home-slot { width: 100%; max-width: 1380px; margin: -12px auto 26px; }
.avc-home-slot:empty { display: none; }
.avc-tile { position: relative; display: flex; align-items: center; gap: 20px; min-height: 132px; padding: 18px 22px 18px 18px; border-radius: 18px; overflow: hidden; isolation: isolate; cursor: pointer;
    background: #0b0a08; border: 1px solid rgba(201,162,74,.45); box-shadow: 0 12px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); font-family: "Barlow Condensed", system-ui, sans-serif; color: #fff; text-align: left; }
.avc-tile::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/assets/advent/tree-wide-sm.webp?v=1") right 0 top 42% / cover no-repeat; }
.avc-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0b0a08 0%, rgba(11,10,8,.96) 34%, rgba(11,10,8,.55) 62%, rgba(11,10,8,.2) 100%), linear-gradient(0deg, rgba(0,0,0,.35), transparent 40%); }
.avc-tile:hover { border-color: rgba(240,205,124,.75); }
.avc-tile:focus-visible { outline: 2px solid #f0cd7c; outline-offset: 2px; }
.avc-tgift { position: relative; flex: 0 0 auto; width: 112px; z-index: 1; }
.avc-tgift img { display: block; width: 100%; filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); }
.avc-tile.ready .avc-tgift img { animation: avcIdle 4s ease-in-out infinite; transform-origin: 50% 100%; }
.avc-tgift .avc-tag { position: absolute; right: 6%; bottom: 10%; }
.avc-ttxt { display: grid; gap: 3px; flex: 1; min-width: 0; position: relative; z-index: 1; }
.avc-ttxt em { font: 700 12px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .26em; text-transform: uppercase; color: #d9b45e; }
.avc-ttxt > b { font: 800 30px/1 "Barlow Condensed", sans-serif; letter-spacing: .05em; text-transform: uppercase;
    background: linear-gradient(180deg, #fff8e2, #f0cd7c 50%, #c08f2c 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.avc-ttxt > b b { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.avc-ttxt small { font: 500 16px/1.2 "Barlow Condensed", sans-serif; color: #c3c0b8; }
.avc-ttxt small b { font-weight: 700; color: #f0cd7c; }
.avc-tpips { display: grid; grid-template-columns: repeat(13, 9px); gap: 5px; flex: 0 0 auto; position: relative; z-index: 1; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.45); }
.avc-tpips i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.2px rgba(255,255,255,.22); }
.avc-tpips i.open { background: radial-gradient(circle at 35% 30%, #fff5d0, #f0cd7c 35%, #b07d1a 75%, #6b4a0c); box-shadow: 0 0 6px rgba(240,205,124,.45); }
.avc-tpips i.today { box-shadow: inset 0 0 0 1.5px #f0cd7c, 0 0 8px rgba(240,205,124,.6); }
.avc-tpips i.missed { background: rgba(255,255,255,.08); box-shadow: none; }
.avc-tile .avc-tbtn { flex: 0 0 auto; height: 48px; padding: 0 28px !important; font-size: 20px; position: relative; z-index: 1; }
@media (max-width: 860px) { .avc-tpips { display: none; } }
@media (max-width: 560px) {
    .avc-tile { gap: 12px; min-height: 108px; padding: 12px 12px 12px 10px; }
    .avc-tgift { width: 84px; }
    .avc-ttxt em { font-size: 11px; letter-spacing: .2em; }
    .avc-ttxt > b { font-size: 23px; } .avc-ttxt small { font-size: 14px; }
    .avc-tile .avc-tbtn { height: 42px; padding: 0 16px !important; font-size: 17px; }
}

/* the gift tag: a cream card tag with a gold edge (also on the tile box) */
.avc-tag, .avc-gb-tag { display: grid; place-items: center; min-width: 2.1em; padding: .18em .42em .12em .62em; font: 800 22px/1 "Barlow Condensed", sans-serif; color: #2b1d08; letter-spacing: .02em;
    background: linear-gradient(180deg, #fffaf0, #f3e6c6); border: 1.5px solid #c8952e; border-radius: 3px 6px 6px 3px; box-shadow: 0 3px 8px rgba(0,0,0,.55);
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%, 0 50%); transform: rotate(-8deg); }
.avc-tag::before, .avc-gb-tag::before { content: ""; position: absolute; left: 8%; top: 50%; width: .22em; height: .22em; margin-top: -.11em; border-radius: 50%; background: #3a2a10; }

/* ── the calendar (full screen) ── */
html.avc-lock, html.avc-lock body { overflow: hidden; }
.avc-ov { position: fixed; inset: 0; z-index: 1250; display: grid; overflow-y: auto; padding: calc(10px + var(--safe-top, 0px)) 10px 10px;
    background: #050403; opacity: 0; transition: opacity .3s ease; font-family: "Barlow Condensed", system-ui, sans-serif; }
.avc-ov.open { opacity: 1; }
.avc-box { position: relative; margin: auto; width: min(1340px, 100%); padding: 22px 26px 14px; border-radius: 22px; color: #fff; overflow: hidden; isolation: isolate;
    background: linear-gradient(180deg, #12100c, #080706 80%); border: 1px solid rgba(240,205,124,.3); box-shadow: 0 40px 120px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.07);
    transform: translateY(16px) scale(.985); transition: transform .4s cubic-bezier(.2,.9,.3,1); }
.avc-ov.open .avc-box { transform: none; }
.avc-x { position: absolute; top: 16px; right: 16px; z-index: 9; width: 40px; height: 40px; padding: 0 !important; border-radius: 50%; border: 1px solid rgba(240,205,124,.35); background: rgba(10,9,7,.8); color: #e8dcc0; font-size: 15px; cursor: pointer; display: grid; place-items: center; }
.avc-x:hover { color: #fff; border-color: rgba(240,205,124,.7); }
.avc-head { position: relative; z-index: 4; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 56px 14px 2px; text-align: left; }
.avc-htxt { display: grid; gap: 4px; min-width: 0; }
.avc-head em { font: 700 13px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .34em; text-transform: uppercase; color: #d9b45e; }
.avc-head h3 { margin: 0; font: 800 clamp(38px, 5vw, 64px)/0.92 "Barlow Condensed", sans-serif; letter-spacing: .05em; text-transform: uppercase;
    background: linear-gradient(180deg, #fffaf0 0%, #f6dc93 36%, #c8952e 70%, #f3d98c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0,0,0,.55)); }
.avc-status { margin: 2px 0 0; font: 500 18px/1.3 "Barlow Condensed", sans-serif; color: #d4ccba; }
.avc-hchips { display: flex; gap: 10px; flex: 0 0 auto; }
.avc-chip { display: grid; justify-items: center; gap: 3px; min-width: 104px; padding: 10px 14px 9px; border-radius: 14px; border: 1px solid rgba(240,205,124,.35); background: linear-gradient(180deg, rgba(240,205,124,.12), rgba(240,205,124,.03)); }
.avc-chip[hidden] { display: none; }
.avc-chip b { font: 800 28px/1 "Barlow Condensed", sans-serif; color: #f6dc93; }
.avc-chip small { font: 700 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #a89b80; }
.avc-foot { position: relative; z-index: 4; margin: 12px auto 0; font: 500 14px/1.35 "Barlow Condensed", sans-serif; color: #8d877b; max-width: 760px; text-align: center; }

/* the room: the tree photo (darkened + softened once, in the file), warm light from the tree, a dark floor in front */
.avc-room { position: relative; width: 100%; height: clamp(420px, calc(100vh - 230px), 54vw); border-radius: 16px; overflow: hidden; isolation: isolate;
    background: url("/assets/advent/room.webp?v=1") 70% 46% / cover no-repeat #0b0a08; box-shadow: 0 0 0 1px rgba(240,205,124,.3), 0 24px 50px rgba(0,0,0,.6); }
.avc-room::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(60% 55% at 62% 40%, rgba(255,200,120,.16), transparent 70%), linear-gradient(180deg, rgba(8,7,5,.35), transparent 30%, rgba(8,7,5,.2) 62%, rgba(8,7,5,.85)); }
.avc-snow { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
/* the calendar cabinet (owner 11/29 "It can still be like a calender, just gift boxes"): black lacquer + gold trim, 25 cubbies */
.avc-pile { position: absolute; inset: 2.4% 2%; z-index: 2; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 12px; border-radius: 14px;
    background: linear-gradient(180deg, #17120c, #0b0806 60%, #120d08); border: 1px solid rgba(240,205,124,.55);
    box-shadow: 0 0 0 4px #0a0806, 0 0 0 5px rgba(240,205,124,.3), 0 30px 60px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,236,190,.18); }
.avc-cub { position: relative; min-width: 0; min-height: 0; border-radius: 6px; isolation: isolate;
    background: radial-gradient(70% 55% at 50% 0%, rgba(255,214,150,.22), transparent 70%), linear-gradient(180deg, #2a1f14, #120d08 70%);
    box-shadow: inset 0 10px 18px rgba(0,0,0,.7), inset 0 -2px 0 rgba(0,0,0,.6), inset 6px 0 12px rgba(0,0,0,.5), inset -6px 0 12px rgba(0,0,0,.5), 0 0 0 1px rgba(240,205,124,.22); }
/* the shelf the box stands on */
.avc-cub::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 11%; border-radius: 0 0 6px 6px; z-index: 0;
    background: linear-gradient(180deg, #3a2b1a, #1a120a); box-shadow: inset 0 1px 0 rgba(255,220,160,.25), 0 -6px 10px rgba(0,0,0,.35); }
.avc-cub-light { position: absolute; left: 20%; right: 20%; top: 0; height: 70%; z-index: 0; pointer-events: none; background: radial-gradient(50% 100% at 50% 0%, rgba(255,226,170,.18), transparent 75%); }
/* owner 11/29 "needs more vibrancy": velvet linings (crimson / emerald), a bright warm spot from the top of each cubby, the box
   colours pushed a little, and Christmas lights round the frame */
/* owner 11/29 round 2: "I like it, just … too much red & green" → the velvet is a deep, dark tint now; the gifts carry the colour */
.avc-cub.v-r { background: radial-gradient(75% 60% at 50% 0%, rgba(255,215,170,.2), transparent 72%), radial-gradient(120% 90% at 50% 40%, #3c0b10, #22060a 62%, #0e0304); }
.avc-cub.v-g { background: radial-gradient(75% 60% at 50% 0%, rgba(255,225,180,.18), transparent 72%), radial-gradient(120% 90% at 50% 40%, #0d3320, #071d12 62%, #030c07); }
.avc-cub.v-r, .avc-cub.v-g { box-shadow: inset 0 10px 18px rgba(0,0,0,.55), inset 0 -2px 0 rgba(0,0,0,.5), inset 6px 0 12px rgba(0,0,0,.4), inset -6px 0 12px rgba(0,0,0,.4), 0 0 0 1px rgba(240,205,124,.45); }
.avc-cub.v-r .avc-cub-light, .avc-cub.v-g .avc-cub-light { left: 12%; right: 12%; height: 85%; background: radial-gradient(50% 100% at 50% 0%, rgba(255,240,205,.34), rgba(255,230,190,.08) 55%, transparent 78%); }
.avc-cub.v-r::after, .avc-cub.v-g::after { background: linear-gradient(180deg, #e9c46a, #a8772a 18%, #5a3c12); box-shadow: inset 0 1px 0 rgba(255,245,210,.7), 0 -6px 10px rgba(0,0,0,.3); }
.avc-cub.big.v-r { background: radial-gradient(70% 55% at 50% 0%, rgba(255,210,150,.28), transparent 72%), radial-gradient(120% 90% at 50% 45%, #48101a, #26070b 60%, #0e0304); }
.avc-cub .avc-gb-in { filter: brightness(calc(var(--lum, 1) * 1.15)) saturate(1.5) contrast(1.06); }
.avc-cub.s-missed .avc-gb-in { filter: grayscale(.9) brightness(.4); }
.avc-cub.s-missed.v-r, .avc-cub.s-missed.v-g { filter: saturate(.35) brightness(.7); }
.avc-pile { border-color: rgba(240,205,124,.8); }
.avc-lights { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.avc-lights i { position: absolute; width: 10px; height: 15px; margin: -3px 0 0 -5px; transform: rotate(var(--r)); transform-origin: 50% 0;
    border-radius: 45% 45% 50% 50% / 35% 35% 65% 65%; background: radial-gradient(circle at 40% 35%, #fff 0 16%, var(--bc) 52%, color-mix(in srgb, var(--bc) 55%, #000));
    box-shadow: 0 0 10px 3px color-mix(in srgb, var(--bc) 70%, transparent), 0 0 22px 6px color-mix(in srgb, var(--bc) 30%, transparent);
}
.avc-lights i:nth-child(3n+1) { animation: avcTw 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.23s); will-change: opacity; } /* every third twinkles: cheap */
.avc-lights i::before { content: ""; position: absolute; left: 2.5px; right: 2.5px; top: -4px; height: 5px; border-radius: 1px; background: linear-gradient(90deg, #0b130d, #2c4a33, #0b130d); }
.avc-lights i.b0 { --bc: #ff3b30; } .avc-lights i.b1 { --bc: #ffb21e; } .avc-lights i.b2 { --bc: #2bd46a; } .avc-lights i.b3 { --bc: #3a8bff; } .avc-lights i.b4 { --bc: #fff0cf; }
@media (max-width: 760px) { .avc-lights i { width: 7px; height: 11px; margin: -2px 0 0 -3.5px; box-shadow: 0 0 7px 2px color-mix(in srgb, var(--bc) 70%, transparent); } .avc-lights i::before { left: 1.5px; right: 1.5px; top: -3px; height: 4px; } }
@keyframes avcTw { 0%, 100% { opacity: 1; } 60% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .avc-lights i { animation: none; } }
.avc-cub-num { position: absolute; left: 8px; top: 6px; z-index: 3; font: 800 clamp(13px, 1.5vw, 22px)/1 "Barlow Condensed", sans-serif; letter-spacing: .02em; pointer-events: none;
    background: linear-gradient(180deg, #fffaf0, #f6dc93 40%, #c8952e 85%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 1px rgba(0,0,0,.8)); }
.avc-cub.big .avc-cub-num { font-size: clamp(22px, 2.6vw, 38px); left: 12px; top: 10px; }
.avc-cub .avc-gb { left: 50%; top: auto; bottom: 7%; z-index: 1; transform: translateX(-50%) rotate(var(--rot)); }
.avc-cub .avc-gb-tag { display: none; } /* the cubby carries the number */
.avc-cub .avc-gtag { top: 7px; left: auto; right: 7px; transform: none; z-index: 4; }
.avc-cub.live { box-shadow: inset 0 10px 18px rgba(0,0,0,.6), 0 0 0 1.5px #f0cd7c, 0 0 22px rgba(240,205,124,.45); }
.avc-cub.live::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; background: radial-gradient(60% 50% at 50% 80%, rgba(255,214,140,.3), transparent 70%); animation: avcGlow 2.4s ease-in-out infinite; }
.avc-cub.s-missed .avc-gb-in { filter: grayscale(.9) brightness(.4); }
.avc-cub.s-missed .avc-cub-num { opacity: .45; }
.avc-cub.s-open .avc-cub-num { opacity: .7; }
/* opened (owner 12/1 "hard to decipher"): dark veil over the cubby, green check tag, box open with the prize peeking out */
.avc-cub.s-open::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; background: rgba(4,4,3,.55); }
.avc-cub.s-open { box-shadow: inset 0 10px 18px rgba(0,0,0,.6), 0 0 0 1px rgba(60,210,120,.55); }
.avc-gtag.done { color: #062612; background: linear-gradient(180deg, #b9ffd0, #3fd27c 60%, #1f9a52); box-shadow: 0 2px 10px rgba(0,0,0,.55), 0 0 12px rgba(60,210,120,.45); letter-spacing: .12em; margin-right: 0; }
@media (hover: hover) { .avc-cub .avc-gb.live:hover { transform: translateX(-50%) translateY(-5%) rotate(var(--rot)) scale(1.05); } .avc-cub .avc-gb.s-open:hover, .avc-cub .avc-gb.s-locked:hover { transform: translateX(-50%) translateY(-2%) rotate(var(--rot)); } }

/* a gift box in the pile (positioned by its bottom centre) */
.avc-gb { position: absolute; width: var(--w); aspect-ratio: var(--ar, 1.46); padding: 0 !important; margin: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit;
    transform: translate(-50%, -100%) rotate(var(--rot)); transform-origin: 50% 100%; transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.avc-gb[aria-disabled="true"] { cursor: default; }
.avc-gb-in { position: absolute; inset: 0; display: block; transform-origin: 50% 100%; filter: brightness(var(--lum, 1)); } /* back of the pile a touch darker (depth) */
/* a soft contact shadow so every box sits on the floor */
.avc-gb::before { content: ""; position: absolute; left: 4%; right: 4%; bottom: -4%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.75), rgba(0,0,0,.35) 55%, transparent 80%); pointer-events: none; }
.avc-gb-body, .avc-gb-lid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.avc-gb-in > .avc-gb-body { filter: drop-shadow(0 10px 12px rgba(0,0,0,.6)); }
.avc-gb-glow { position: absolute; left: -12%; right: -12%; bottom: -8%; height: 46%; border-radius: 50%; opacity: 0; pointer-events: none;
    background: radial-gradient(closest-side, rgba(255,214,140,.55), transparent 75%); }
.avc-gb { container-type: inline-size; }
.avc-gb-tag { position: absolute; right: 4%; bottom: 8%; z-index: 2; font-size: clamp(8px, 14cqw, 22px); } /* sized to its box */
.avc-gb.big .avc-gb-tag { right: 6%; bottom: 10%; display: grid; gap: 1px; } .avc-gb-tag small { font: 800 .38em/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #8a6420; }
.avc-gtag { position: absolute; left: 50%; top: -6%; transform: translateX(-50%); z-index: 3; font: 700 11px/1 "Barlow Condensed", sans-serif; letter-spacing: .2em; margin-right: -.2em; text-transform: uppercase;
    padding: 4px 8px; border-radius: 999px; color: #d8d3c8; background: rgba(0,0,0,.7); white-space: nowrap; }
.avc-gtag.gold { color: #1b1204; background: linear-gradient(180deg, #fff1c4, #e4ae39 60%, #b88320); box-shadow: 0 2px 10px rgba(0,0,0,.55), 0 0 14px rgba(240,205,124,.45); }
/* states */
.avc-gb.s-locked .avc-gb-in > .avc-gb-lid { filter: brightness(.8) saturate(.9); }
.avc-gb.s-locked .avc-gb-in > .avc-gb-body { filter: brightness(.8) saturate(.9) drop-shadow(0 10px 12px rgba(0,0,0,.6)); }
.avc-gb.s-missed .avc-gb-in { filter: grayscale(.9) brightness(calc(var(--lum, 1) * .42)); }
.avc-gb.s-open .avc-gb-in > .avc-gb-body { filter: brightness(.62) drop-shadow(0 10px 12px rgba(0,0,0,.6)); }
.avc-gb-peek { position: absolute; left: 22%; right: 22%; bottom: 46%; height: 70%; display: grid; place-items: end center; pointer-events: none; }
.avc-gb-peek img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)) drop-shadow(0 0 12px color-mix(in srgb, var(--rc) 55%, transparent)); }
.avc-gb-peek img.card { height: 100%; width: auto; border-radius: 5px; }
.avc-gb-peek img.personal { width: 70%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 2px solid #f0cd7c; }
.avc-gb-peek .avc-svg { width: 70%; height: 80%; display: block; } .avc-gb-peek .avc-svg svg { width: 100%; height: 100%; }
.avc-gb.live { z-index: 20 !important; }
.avc-gb.live .avc-gb-glow { animation: avcGlow 2.4s ease-in-out infinite; }
.avc-gb.live .avc-gb-in { animation: avcIdle 4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes avcGlow { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes avcIdle { 0%, 78%, 100% { transform: none; } 82% { transform: translateY(-6%) rotate(-3deg); } 86% { transform: translateY(0) rotate(2.5deg); } 90% { transform: translateY(-3%) rotate(-1.5deg); } 94% { transform: none; } }
@media (hover: hover) { .avc-gb.live:hover { transform: translate(-50%, -104%) rotate(var(--rot)) scale(1.05); } .avc-gb.s-open:hover, .avc-gb.s-locked:hover { transform: translate(-50%, -101.5%) rotate(var(--rot)); } }
.avc-gb.lifted { visibility: hidden; }
.avc-gb.nope .avc-gb-in { animation: avcNope .36s ease; }
@keyframes avcNope { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4%); } 75% { transform: translateX(4%); } }

@media (max-width: 760px) {
    .avc-ov { padding: calc(6px + var(--safe-top, 0px)) 6px 6px; }
    .avc-box { padding: 16px 10px 12px; border-radius: 18px; }
    .avc-head { flex-direction: column; align-items: flex-start; margin: 0 50px 12px 4px; }
    .avc-head em { font-size: 11px; letter-spacing: .22em; } .avc-status { font-size: 15px; }
    .avc-hchips { gap: 8px; } .avc-chip { min-width: 0; padding: 7px 12px; display: flex; align-items: baseline; gap: 6px; } .avc-chip b { font-size: 20px; } .avc-chip small { font-size: 10px; letter-spacing: .12em; }
    .avc-room { height: auto; aspect-ratio: 3 / 5.4; background-position: 62% 60%; }
    .avc-pile { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 7px; inset: 1.6% 2%; }
    .avc-cub-num { left: 5px; top: 4px; font-size: 13px; } .avc-cub.big .avc-cub-num { font-size: 22px; }
    .avc-cub .avc-gtag { top: 4px; right: 4px; }
    .avc-gtag { font-size: 9px; padding: 3px 6px; }
}

/* ── opening a gift: its own layer over the calendar ── */
/* on <body> above the calendar (owner 12/1 mobile fix; height = the visible height, set in JS) */
.avc-fx { position: fixed; inset: 0; z-index: 1260; opacity: 1; transition: opacity .26s ease; overflow: hidden; font-family: "Barlow Condensed", system-ui, sans-serif; color: #fff; }
.avc-fx.out { opacity: 0; }
.avc-fx-bg { position: absolute; inset: 0; background: rgba(4,3,2,.9); opacity: 0; transition: opacity .35s ease; } /* plain dark: no white haze */
.avc-fx.in .avc-fx-bg { opacity: 1; }
.avc-big { position: fixed; transform-origin: 50% 50%; z-index: 2; cursor: pointer; --tc: #e4ae39; }
.avc-big .avc-gb-body, .avc-big .avc-gb-lid { filter: drop-shadow(0 20px 26px rgba(0,0,0,.7)); }
.avc-big .avc-gb-tag { display: none; } /* scaled up it was a giant tag; the day is written under the box */
.avc-big-glow { position: absolute; left: -30%; right: -30%; top: -20%; bottom: -30%; border-radius: 50%; opacity: 0; transition: opacity .3s ease;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--tc) 40%, transparent), transparent 72%); }
.avc-big.hot .avc-big-glow { opacity: .55; }
.avc-big.popped .avc-big-glow { opacity: 1; }
/* the light pouring out of the open box, in the colour of the best gift inside */
.avc-beam { position: absolute; left: 4%; right: 4%; bottom: 52%; height: 260%; transform-origin: 50% 100%; transform: scaleY(0); opacity: 0; pointer-events: none;
    background: linear-gradient(0deg, color-mix(in srgb, var(--tc) 70%, #fff), color-mix(in srgb, var(--tc) 30%, transparent) 40%, transparent 85%);
    -webkit-mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mix-blend-mode: screen; }
.avc-big.popped .avc-beam { transform: scaleY(1); opacity: .75; transition: transform .6s cubic-bezier(.2,.9,.3,1), opacity .4s ease; }
.avc-big.still .avc-beam { opacity: .45; }
.avc-prompt { position: absolute; left: 50%; bottom: calc(40px + env(safe-area-inset-bottom, 0px)); z-index: 3; transform: translate(-50%, 10px); opacity: 0; transition: opacity .3s ease, transform .3s ease; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.avc-prompt.show { opacity: 1; transform: translate(-50%, 0); }
.avc-prompt b { font: 800 28px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #f6dc93; text-shadow: 0 2px 12px rgba(0,0,0,.8); animation: avcPulse 1.2s ease-in-out infinite; }
@keyframes avcPulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
.avc-prompt span { display: flex; gap: 10px; }
.avc-prompt i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(240,205,124,.6); transition: background .15s ease, transform .15s ease; }
.avc-prompt i.on { background: #f0cd7c; transform: scale(1.25); box-shadow: 0 0 12px rgba(240,205,124,.8); }
.avc-ufx { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; }
/* the gifts, rising out of the box */
.avc-prizes { position: absolute; left: 50%; top: 6vh; z-index: 4; transform: translateX(-50%); display: flex; justify-content: center; align-items: flex-end; gap: 28px; width: min(1100px, 96vw); pointer-events: none; }
.avc-prizes > * { pointer-events: auto; }
.avc-prize { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; max-width: 260px; opacity: 0; transform: translateY(46vh) scale(.25); }
.avc-prizes.show .avc-prize { opacity: 1; transform: none; transition: opacity .3s ease calc(var(--i) * .18s), transform .9s cubic-bezier(.2,1.25,.35,1) calc(var(--i) * .18s); }
.avc-prizes:not(.rise) .avc-prize { transform: translateY(14px); }
.avc-aura { position: absolute; left: 50%; top: 38%; width: 340px; height: 340px; transform: translate(-50%, -50%); z-index: -1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 45%, transparent), color-mix(in srgb, var(--rc) 12%, transparent) 55%, transparent 75%); }
.avc-prize.r-mythic .avc-aura { animation: avcAura 2.4s ease-in-out infinite; }
@keyframes avcAura { 0%, 100% { opacity: .8; transform: translate(-50%, -50%) scale(.95); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
.avc-prize > b { font: 800 24px/1.05 "Barlow Condensed", sans-serif; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.avc-prize > small { display: grid; gap: 3px; justify-items: center; font: 500 15px/1.15 "Barlow Condensed", sans-serif; color: #b3ab9b; }
.avc-prize > small i { font: 800 12px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .22em; text-transform: uppercase; color: var(--rc); }
.avc-gpic { width: min(210px, 40vw); aspect-ratio: 1; display: grid; place-items: center; }
.avc-gpic img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0,0,0,.65)); }
.avc-gpic img.card { height: 100%; width: auto; aspect-ratio: 600 / 840; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1.5px var(--rc), 0 0 30px color-mix(in srgb, var(--rc) 45%, transparent), 0 14px 30px rgba(0,0,0,.6); filter: none; }
.avc-gpic img.poster { width: 80%; height: 80%; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px rgba(240,205,124,.4), 0 14px 30px rgba(0,0,0,.6); }
.avc-gpic img.personal { width: 78%; height: 78%; border-radius: 50%; object-fit: cover; border: 4px solid #f0cd7c; box-shadow: 0 0 30px rgba(255,79,216,.5); }
.avc-gpic .avc-svg { display: block; width: 80%; height: 80%; filter: drop-shadow(0 12px 20px rgba(0,0,0,.6)); } .avc-gpic .avc-svg svg { width: 100%; height: 100%; display: block; }
.avc-gpic.t-pack .tc-pk { width: 70%; }
.avc-gcard { width: min(220px, 44vw); cursor: zoom-in; } .avc-gcard .tc-card { width: 100%; }
.avc-prizes.n3 .avc-gpic, .avc-prizes.n4 .avc-gpic { width: min(170px, 26vw); } .avc-prizes.n3 .avc-gcard, .avc-prizes.n4 .avc-gcard { width: min(190px, 30vw); }
.avc-prizes.n3 .avc-aura, .avc-prizes.n4 .avc-aura { width: 260px; height: 260px; }
.avc-kit { display: flex; gap: 6px; margin: -4px 0 2px; }
.avc-kit i { position: relative; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid rgba(240,205,124,.22); }
.avc-kit img { width: 84%; height: 84%; object-fit: contain; }
.avc-kit em { position: absolute; right: -4px; bottom: -6px; font: 800 12px/1 "Barlow Condensed", sans-serif; font-style: normal; color: #1b1204; background: #f0cd7c; border-radius: 999px; padding: 2px 5px; }
/* under the box: the day + buttons */
.avc-info { position: absolute; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 4; transform: translate(-50%, 12px); opacity: 0; display: grid; justify-items: center; gap: 6px; width: min(720px, 94vw); text-align: center; transition: opacity .4s ease .5s, transform .4s ease .5s; }
.avc-info.show { opacity: 1; transform: translate(-50%, 0); }
.avc-info > em { font: 700 13px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .3em; text-transform: uppercase; color: #d9b45e; }
.avc-rnote { margin: 0; font: 500 14px/1.25 "Barlow Condensed", sans-serif; color: #a39d90; }
.avc-racts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.avc-racts .cx-btn { min-width: 140px; height: 48px; font-size: 18px; }
@media (max-width: 760px) {
    .avc-prizes { top: 5vh; gap: 12px; flex-wrap: wrap; }
    .avc-prize > b { font-size: 19px; } .avc-prize > small { font-size: 13px; }
    .avc-gpic { width: min(150px, 38vw); } .avc-gcard { width: min(170px, 40vw); }
    .avc-prizes.n3, .avc-prizes.n4 { top: 3vh; row-gap: 6px; }
    .avc-prizes.n3 .avc-gpic, .avc-prizes.n4 .avc-gpic { width: 21vw; } .avc-prizes.n3 .avc-gcard, .avc-prizes.n4 .avc-gcard { width: 25vw; }
    .avc-prizes.n3 .avc-prize > b, .avc-prizes.n4 .avc-prize > b { font-size: 15px; } .avc-prizes.n3 .avc-prize > small, .avc-prizes.n4 .avc-prize > small { font-size: 11px; }
    .avc-prizes.n3 .avc-prize, .avc-prizes.n4 .avc-prize { max-width: 44vw; }
    .avc-aura { width: 220px; height: 220px; }
    .avc-prompt b { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .avc-gb.live .avc-gb-in, .avc-gb.live .avc-gb-glow, .avc-tile.ready .avc-tgift img, .avc-prize.r-mythic .avc-aura, .avc-prompt b { animation: none !important; }
}
