/* ---------- 🎄 Advent Calendar (ui/advent.js) ---------- */
.advent-btn { position: relative; }
.advent-btn.advent-hot { animation: adv-glow 1.6s ease-in-out infinite; }
.advent-dot { position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: #ff3a4a; box-shadow: 0 0 0 2px #fff; }
@keyframes adv-glow { 50% { box-shadow: 0 0 0 3px rgba(255, 214, 90, .75), 0 0 14px rgba(255, 90, 90, .6); } }
#u2-advent { display: none; }
#u2-advent.advent-hot { animation: adv-glow 1.6s ease-in-out infinite; }
.advent-count { background: #2f9a3a !important; color: #fff !important; }
/* the small window beside the welcome card (wider screens) */
.u2-wrow > .u2-advwin { font: inherit; text-align: left; flex: none; align-self: stretch; display: flex; align-items: center; gap: 10px; min-width: 0; width: 196px; box-sizing: border-box;
  padding: 8px 12px 8px 10px; border-radius: 14px; }
.u2-wrow > .u2-advwin.u2-carded { min-width: 0; padding: 8px 12px 8px 10px; background: linear-gradient(135deg, #3a1420, #14203e); border-color: rgba(232, 196, 90, .55); color: #fff; }
.u2-wrow > .u2-advwin.hidden { display: none; }
.u2-advwin:hover { filter: brightness(1.06); }
.u2-advwin.advent-hot { animation: adv-glow 1.6s ease-in-out infinite; }
.aw-door { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 44px; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .5);
  background: linear-gradient(90deg, transparent 43%, #ffe08a 43% 57%, transparent 57%), linear-gradient(160deg, #e8424a, #9a1822); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 2px 0 rgba(0, 0, 0, .3); }
.aw-door b { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 3px; box-sizing: border-box; border-radius: 99px; background: #fff8e6; color: #8a1a22; font-size: 12px; font-weight: 900; }
.aw-door .u2-fask { top: -6px; right: -7px; }
.aw-open { background: linear-gradient(90deg, transparent 43%, #ffe08a 43% 57%, transparent 57%), linear-gradient(160deg, #3fb04c, #1c6a28); }
.aw-open b { color: #1c6a28; }
.aw-over { background: linear-gradient(160deg, #3a4a8a, #1a2450); }
.aw-ready { animation: adv-tdoor 1.1s ease-in-out infinite; }
.aw-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.aw-text small { font-size: 10px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: #a01a24; }
.aw-text b { font-size: 13px; font-weight: 900; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-text em { font-style: normal; font-size: 11px; color: #5a6478; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u2-carded .aw-text small { color: #ffb4b4; }
.u2-carded .aw-text em { color: #c8d4ff; }
.aw-bar { position: relative; display: block; height: 6px; margin-top: 3px; border-radius: 99px; background: rgba(0, 0, 0, .14); overflow: hidden; }
.u2-carded .aw-bar { background: rgba(255, 255, 255, .15); }
.aw-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: repeating-linear-gradient(-45deg, #e8424a 0 5px, #fff 5px 10px); }
@media (max-width: 700px) {
  #advent-btn { display: none !important; }
  .u2-wrow > .u2-advwin { display: none; }
  #u2-advent:not(.hidden) { display: flex; }
  .u2-tiles:has(#u2-advent:not(.hidden)) .u2-friends { flex-direction: row; gap: 5px; padding: 5px 8px; flex: 1; }
}
.advent-modal { position: fixed; inset: 0; z-index: 42; display: grid; place-items: start center; overflow-y: auto; padding: 18px 12px 40px;
  background: rgba(6, 10, 24, .84); } /* (no backdrop-filter: it would pin the gift card, position: fixed, to the scrolled modal) */
.advent-modal.hidden { display: none; }
.adv-panel { position: relative; width: min(760px, 100%); box-sizing: border-box; padding: 18px 18px 16px; border-radius: 18px; color: #f4f6ff; overflow: hidden;
  background: radial-gradient(ellipse at 50% -20%, #3a5ab0 0%, #16224a 45%, #0c1430 100%); border: 3px solid #e8c45a;
  box-shadow: 0 0 0 4px #8a1a22, 0 18px 50px rgba(0, 0, 0, .6); }
.adv-panel h2 { position: relative; z-index: 1; margin: 8px 0 4px; text-align: center; font-size: 28px; font-weight: 900; letter-spacing: .5px; color: #fff4d6;
  text-shadow: 0 2px 0 #8a1a22, 0 4px 0 rgba(0, 0, 0, .25), 0 0 22px rgba(255, 214, 120, .45); }
.adv-panel h2::before, .adv-panel h2::after { content: "❄"; display: inline-block; margin: 0 10px; font-size: .6em; vertical-align: .25em; color: #9fd0ff; text-shadow: none; opacity: .8; }
.adv-sub { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin: 0 0 12px; text-align: center; font-size: 12.5px; color: #b8c6f0; }
.adv-when { padding: 2px 10px; border-radius: 99px; background: #8a1a22; border: 1px solid #e8c45a; color: #fff4d6; font-weight: 800; }
/* a string of fairy lights along the top */
.adv-lights { position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 26px; display: flex; justify-content: space-around; pointer-events: none;
  border-top: 3px solid #1d3a22; }
.adv-bulb { position: relative; width: 8px; height: 12px; margin-top: 5px; border-radius: 50% 50% 45% 45%; animation: adv-twinkle 2.4s ease-in-out infinite; }
.adv-bulb::before { content: ""; position: absolute; top: -3px; left: 2px; width: 4px; height: 4px; border-radius: 1px; background: #2a3a2a; }
.adv-bulb:nth-child(even) { margin-top: 9px; }
.adv-bulb.b0 { background: #ff5a5a; --g: #ff5a5a; } .adv-bulb.b1 { background: #ffd84a; --g: #ffd84a; } .adv-bulb.b2 { background: #5ad06a; --g: #5ad06a; } .adv-bulb.b3 { background: #5ab4ff; --g: #5ab4ff; }
@keyframes adv-twinkle { 0%, 100% { box-shadow: 0 0 8px 1px var(--g); opacity: 1; } 50% { box-shadow: 0 0 2px 0 var(--g); opacity: .55; } }
/* the board the doors sit on */
.adv-board { position: relative; z-index: 1; padding: 9px; border-radius: 14px; background: linear-gradient(180deg, #5a2a1a, #3e1c12); border: 2px solid #7a3e22;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .08), inset 0 -3px 0 rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .4); }
.adv-x { position: absolute; top: 16px; right: 10px; z-index: 3; padding: 4px 10px; border-radius: 99px; }
.adv-status { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin: 0 auto 12px; padding: 10px 12px; max-width: 640px; border-radius: 14px; font-size: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.adv-s-ready { border-color: rgba(255, 214, 90, .7); box-shadow: 0 0 0 1px rgba(255, 214, 90, .3), 0 0 22px rgba(255, 196, 60, .22); }
.adv-tdoor { position: relative; flex: none; display: grid; place-items: center; width: 50px; height: 54px; border-radius: 9px; border: 2px solid rgba(255, 255, 255, .4);
  background: linear-gradient(90deg, transparent 44%, #ffe08a 44% 56%, transparent 56%), linear-gradient(160deg, #e8424a, #9a1822); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .2), 0 3px 0 rgba(0, 0, 0, .35); }
.adv-tdoor b { position: relative; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 3px; box-sizing: border-box; border-radius: 99px; background: #fff8e6; color: #8a1a22; font-size: 15px; font-weight: 900; box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.adv-s-open .adv-tdoor { background: linear-gradient(90deg, transparent 44%, #ffe08a 44% 56%, transparent 56%), linear-gradient(160deg, #3fb04c, #1c6a28); }
.adv-s-open .adv-tdoor b { color: #1c6a28; }
.adv-s-wait .adv-tdoor { filter: saturate(.7) brightness(.85); }
.adv-s-over .adv-tdoor { background: linear-gradient(160deg, #3a4a8a, #1a2450); }
.adv-s-ready .adv-tdoor { animation: adv-tdoor 1.1s ease-in-out infinite; }
@keyframes adv-tdoor { 50% { transform: rotate(-4deg) scale(1.05); box-shadow: 0 0 0 3px #fff6c0, 0 0 18px #ffd23a; } }
.adv-stext { flex: 1; min-width: 0; display: grid; gap: 2px; }
.adv-head { font-size: 15.5px; font-weight: 900; color: #fff; }
.adv-s-ready .adv-head { color: #ffe27a; }
.adv-line { color: #c8d4ff; line-height: 1.35; }
.adv-status .adv-go { flex: none; align-self: center; margin: 0; width: auto; padding: 7px 12px; white-space: nowrap; }
.adv-catch { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 5px 0 0; font-size: 12.5px; color: #ffe9a8; }
.adv-catch > span:first-child { flex: 1 1 200px; }
.adv-pips { display: inline-flex; gap: 4px; }
.adv-pips i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 233, 168, .55); }
.adv-pips i.on { background: radial-gradient(circle at 35% 35%, #fff6c0, #f2b62a); box-shadow: 0 0 6px rgba(255, 210, 74, .7); }
.adv-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.adv-chips span { padding: 2px 8px; border-radius: 99px; background: #2f9a3a; font-size: 11.5px; font-weight: 700; }

/* the doors */
.adv-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-flow: row dense; gap: 8px 7px; perspective: 900px; }
.adv-door { position: relative; aspect-ratio: 1; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 10px; cursor: pointer; font: inherit; color: inherit;
  background: #0a0f22; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); transform-style: preserve-3d; }
.adv-door.adv-big { grid-column: span 2; aspect-ratio: auto; }
.adv-front { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 1px; border-radius: 10px; backface-visibility: hidden;
  transform-origin: left center; transition: transform .65s cubic-bezier(.5, .1, .3, 1.2); border: 2px solid rgba(255, 255, 255, .35); color: #fff;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .18), 0 3px 0 rgba(0, 0, 0, .35); }
/* each door's wrapping (ui/advent.js wrapOf): its paper --a, a pattern printed in --b (.adv-pat: the colour through a mask),
   the ribbon --r tied one of four ways (.adv-rib), and a bow, rosette or gold star on top (::after) */
.adv-front { background: var(--a, #c8202e); overflow: visible; }
.adv-front::before { content: ""; position: absolute; inset: 0; border-radius: 8px; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 90% at 30% 15%, rgba(255, 255, 255, .26), transparent 55%), linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .22)); }
.adv-pat { position: absolute; inset: 0; border-radius: 8px; pointer-events: none; background: var(--b, #fff); opacity: .8; }
.adv-p-stripes { -webkit-mask: repeating-linear-gradient(45deg, #000 0 5px, transparent 5px 13px); mask: repeating-linear-gradient(45deg, #000 0 5px, transparent 5px 13px); }
.adv-p-candy { -webkit-mask: repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 11px); mask: repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 11px); }
.adv-p-dots { -webkit-mask: radial-gradient(circle, #000 0 2.3px, transparent 2.9px) 0 0 / 14px 14px, radial-gradient(circle, #000 0 1.4px, transparent 2px) 7px 7px / 14px 14px; mask: radial-gradient(circle, #000 0 2.3px, transparent 2.9px) 0 0 / 14px 14px, radial-gradient(circle, #000 0 1.4px, transparent 2px) 7px 7px / 14px 14px; }
.adv-p-plaid { -webkit-mask: repeating-linear-gradient(0deg, rgba(0,0,0,.55) 0 5px, transparent 5px 15px), repeating-linear-gradient(90deg, rgba(0,0,0,.55) 0 5px, transparent 5px 15px), repeating-linear-gradient(0deg, transparent 0 10px, #000 10px 11px, transparent 11px 15px); mask: repeating-linear-gradient(0deg, rgba(0,0,0,.55) 0 5px, transparent 5px 15px), repeating-linear-gradient(90deg, rgba(0,0,0,.55) 0 5px, transparent 5px 15px), repeating-linear-gradient(0deg, transparent 0 10px, #000 10px 11px, transparent 11px 15px); }
.adv-p-checks { -webkit-mask: conic-gradient(#000 25%, transparent 0 50%, #000 0 75%, transparent 0) 0 0 / 12px 12px; mask: conic-gradient(#000 25%, transparent 0 50%, #000 0 75%, transparent 0) 0 0 / 12px 12px; }
.adv-p-zigzag { -webkit-mask: linear-gradient(135deg, #000 25%, transparent 25%) -6px 0 / 12px 12px, linear-gradient(225deg, #000 25%, transparent 25%) -6px 0 / 12px 12px, linear-gradient(315deg, #000 25%, transparent 25%) 0 0 / 12px 12px, linear-gradient(45deg, #000 25%, transparent 25%) 0 0 / 12px 12px; mask: linear-gradient(135deg, #000 25%, transparent 25%) -6px 0 / 12px 12px, linear-gradient(225deg, #000 25%, transparent 25%) -6px 0 / 12px 12px, linear-gradient(315deg, #000 25%, transparent 25%) 0 0 / 12px 12px, linear-gradient(45deg, #000 25%, transparent 25%) 0 0 / 12px 12px; }
.adv-p-snow { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><g stroke='%23000' stroke-width='1.4' stroke-linecap='round'><path d='M6 2v8M2.5 4l7 4M2.5 8l7-4'/></g><circle cx='15' cy='15' r='1.5'/><circle cx='16' cy='4' r='.9'/><circle cx='4' cy='16' r='.9'/></svg>") 0 0 / 20px 20px; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><g stroke='%23000' stroke-width='1.4' stroke-linecap='round'><path d='M6 2v8M2.5 4l7 4M2.5 8l7-4'/></g><circle cx='15' cy='15' r='1.5'/><circle cx='16' cy='4' r='.9'/><circle cx='4' cy='16' r='.9'/></svg>") 0 0 / 20px 20px; }
.adv-p-stars { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><path d='M6 1.5l1.3 3.3 3.5.2-2.7 2.2.9 3.4L6 8.7 3 10.6l.9-3.4L1.2 5l3.5-.2z'/><path d='M15 11l.8 2 2.1.1-1.6 1.3.5 2.1-1.8-1.2-1.8 1.2.5-2.1-1.6-1.3 2.1-.1z'/><circle cx='16' cy='4' r='.9'/><circle cx='4' cy='16' r='.9'/></svg>") 0 0 / 20px 20px; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><path d='M6 1.5l1.3 3.3 3.5.2-2.7 2.2.9 3.4L6 8.7 3 10.6l.9-3.4L1.2 5l3.5-.2z'/><path d='M15 11l.8 2 2.1.1-1.6 1.3.5 2.1-1.8-1.2-1.8 1.2.5-2.1-1.6-1.3 2.1-.1z'/><circle cx='16' cy='4' r='.9'/><circle cx='4' cy='16' r='.9'/></svg>") 0 0 / 20px 20px; }
.adv-p-trees { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><path d='M6 1l4 6H8l3 5H1l3-5H2z'/><rect x='5' y='12' width='2' height='2'/><path d='M17 11l3 4.5h-1.5L21 19h-8l2.5-3.5H14z'/><circle cx='17' cy='4' r='.9'/><circle cx='4' cy='19' r='.9'/></svg>") 0 0 / 22px 22px; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><path d='M6 1l4 6H8l3 5H1l3-5H2z'/><rect x='5' y='12' width='2' height='2'/><path d='M17 11l3 4.5h-1.5L21 19h-8l2.5-3.5H14z'/><circle cx='17' cy='4' r='.9'/><circle cx='4' cy='19' r='.9'/></svg>") 0 0 / 22px 22px; }
.adv-p-holly { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><ellipse cx='4.5' cy='6' rx='3.6' ry='1.8' transform='rotate(-25 4.5 6)'/><ellipse cx='10.5' cy='6' rx='3.6' ry='1.8' transform='rotate(25 10.5 6)'/><circle cx='7.5' cy='3.6' r='1.4'/><ellipse cx='14.5' cy='16' rx='3' ry='1.5' transform='rotate(-25 14.5 16)'/><circle cx='17.5' cy='14.5' r='1.2'/></svg>") 0 0 / 20px 20px; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><ellipse cx='4.5' cy='6' rx='3.6' ry='1.8' transform='rotate(-25 4.5 6)'/><ellipse cx='10.5' cy='6' rx='3.6' ry='1.8' transform='rotate(25 10.5 6)'/><circle cx='7.5' cy='3.6' r='1.4'/><ellipse cx='14.5' cy='16' rx='3' ry='1.5' transform='rotate(-25 14.5 16)'/><circle cx='17.5' cy='14.5' r='1.2'/></svg>") 0 0 / 20px 20px; }
.adv-p-checks, .adv-p-plaid { opacity: .5; }
.adv-p-zigzag { opacity: .6; }
.adv-rib { position: absolute; inset: 0; border-radius: 8px; pointer-events: none; --e: rgba(0, 0, 0, .22); }
.adv-t-cross .adv-rib { background: linear-gradient(90deg, transparent 42%, var(--e) 42% 43.5%, var(--r) 43.5% 56.5%, var(--e) 56.5% 58%, transparent 58%), linear-gradient(0deg, transparent 42%, var(--e) 42% 43.5%, var(--r) 43.5% 56.5%, var(--e) 56.5% 58%, transparent 58%); }
.adv-t-vert .adv-rib { background: linear-gradient(90deg, transparent 41%, var(--e) 41% 42.5%, var(--r) 42.5% 57.5%, var(--e) 57.5% 59%, transparent 59%); }
.adv-t-diag .adv-rib { background: linear-gradient(45deg, transparent 41%, var(--e) 41% 42.5%, var(--r) 42.5% 55.5%, var(--e) 55.5% 57%, transparent 57%); }
.adv-t-double .adv-rib { background: linear-gradient(90deg, transparent 31%, var(--r) 31% 39%, transparent 39% 61%, var(--r) 61% 69%, transparent 69%), linear-gradient(0deg, transparent 44%, var(--r) 44% 52%, transparent 52%); }
.adv-front::after { z-index: 3; }
.adv-top-bow .adv-front::after, .adv-front.adv-top-bow::after { width: 34px; height: 16px; margin-left: -17px; top: -8px;
  background: radial-gradient(ellipse 4px 4px at 50% 58%, var(--r) 0 92%, transparent 100%), radial-gradient(ellipse 2.2px 1.6px at 30% 52%, rgba(0, 0, 0, .3) 0 92%, transparent 100%),
    radial-gradient(ellipse 2.2px 1.6px at 70% 52%, rgba(0, 0, 0, .3) 0 92%, transparent 100%), radial-gradient(ellipse 9px 6px at 28% 52%, var(--r) 0 92%, transparent 100%),
    radial-gradient(ellipse 9px 6px at 72% 52%, var(--r) 0 92%, transparent 100%), linear-gradient(115deg, transparent 38%, var(--r) 38% 46%, transparent 46%) 30% 100% / 40% 60% no-repeat,
    linear-gradient(65deg, transparent 54%, var(--r) 54% 62%, transparent 62%) 70% 100% / 40% 60% no-repeat; }
.adv-front.adv-top-rosette::after { width: 24px; height: 18px; margin-left: -12px; top: -9px;
  background: radial-gradient(circle at 50% 55%, rgba(0, 0, 0, .25) 0 2px, transparent 2.5px), radial-gradient(circle at 50% 55%, var(--r) 0 4px, transparent 4.5px),
    radial-gradient(circle at 25% 60%, var(--r) 0 5px, transparent 5.5px), radial-gradient(circle at 75% 60%, var(--r) 0 5px, transparent 5.5px),
    radial-gradient(circle at 38% 30%, var(--r) 0 5px, transparent 5.5px), radial-gradient(circle at 62% 30%, var(--r) 0 5px, transparent 5.5px); }
.adv-front.adv-top-star::after { width: 22px; height: 22px; margin-left: -11px; top: -12px; background: linear-gradient(160deg, #fff4b0, #f2b62a 60%, #c88a10);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.adv-t-diag.adv-front::after { left: 26%; }
.adv-big .adv-front.adv-top-bow::after { transform: scale(1.35); top: -9px; }
.adv-big .adv-front.adv-top-star::after { transform: scale(1.3); }
.adv-big .adv-front.adv-top-rosette::after { transform: scale(1.3); }
/* the number on a gift tag, a little crooked, with its string hole */
.adv-front b { position: relative; z-index: 2; display: grid; place-items: center; min-width: 1.6em; height: 1.35em; padding: 0 .2em 0 .45em; box-sizing: border-box; border-radius: 3px 8px 8px 3px;
  font-size: clamp(14px, 3.2vw, 21px); font-weight: 900; line-height: 1; color: #8a1a22; background: linear-gradient(180deg, #fffdf6, #f2e6cc); box-shadow: 0 2px 0 rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .12);
  transform: rotate(-5deg); }
.adv-front b::before { content: ""; position: absolute; left: .17em; top: 50%; width: .17em; height: .17em; margin-top: -.085em; border-radius: 50%; background: rgba(90, 50, 20, .55); }
.adv-front::after { content: ""; position: absolute; top: -6px; left: 50%; width: 24px; height: 12px; margin-left: -12px; pointer-events: none;
  background: radial-gradient(circle at 50% 60%, #f2b62a 0 2.5px, transparent 3px), radial-gradient(circle at 25% 55%, #ffe08a 0 4.5px, transparent 5px), radial-gradient(circle at 75% 55%, #ffe08a 0 4.5px, transparent 5px);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.adv-front em { position: relative; z-index: 2; font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 99px; background: rgba(0, 0, 0, .45); color: #fff6d0; margin-top: 3px; }
.adv-big .adv-front { border-color: #ffe27a; }
.adv-tag { position: absolute; z-index: 2; bottom: 4px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 99px; font-size: 10px; font-weight: 900; white-space: nowrap;
  background: #fff; color: #a01a24; }
.adv-tag.adv-wait { background: rgba(255, 255, 255, .85); color: #1f4aa0; }
.adv-tag.adv-miss { background: rgba(20, 24, 40, .8); color: #ffe9a8; }
.adv-lock { position: absolute; z-index: 2; top: 3px; right: 5px; font-size: 10px; opacity: .75; }
.adv-locked .adv-front { filter: saturate(.75) brightness(.84); }
.adv-missed .adv-front { filter: grayscale(.7) brightness(.62); }
.adv-ready .adv-front { animation: adv-door 1.1s ease-in-out infinite; filter: none; }
.adv-today .adv-front { box-shadow: 0 0 0 3px #ffe27a, inset 0 -6px 0 rgba(0, 0, 0, .18); }
@keyframes adv-door { 0%, 100% { transform: rotateY(0); box-shadow: 0 0 0 3px #fff6c0, 0 0 18px #ffd23a; } 50% { transform: rotateY(-14deg); box-shadow: 0 0 0 3px #fff6c0, 0 0 28px #ffd23a; } }
.adv-opening .adv-front { transform: rotateY(-108deg); box-shadow: none; animation: none; }
.adv-open .adv-front { display: none; }
.adv-gift { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 10px;
  background: radial-gradient(circle at 50% 40%, #3a4a8a, #121a3a); }
.adv-gift i { font-style: normal; font-size: clamp(20px, 4.6vw, 30px); line-height: 1; }
.adv-gift img { width: 78%; height: 78%; object-fit: contain; image-rendering: pixelated; margin-top: -8%; }
.adv-big .adv-gift img { width: auto; height: 80%; }
.adv-gift small { font-size: 10px; opacity: .85; }
.adv-hasHat .adv-gift small { position: absolute; bottom: 3px; }
.adv-door:not(.adv-open):not(.adv-opening) .adv-gift { visibility: hidden; }
.adv-open { box-shadow: inset 0 0 0 2px rgba(255, 226, 122, .5), 0 0 10px rgba(255, 214, 90, .15); }
.adv-shake { animation: adv-shake .4s; }
@keyframes adv-shake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
.adv-door:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* progress and the extras */
.adv-bar { position: relative; z-index: 1; height: 20px; margin: 12px 0 12px; border: 2px solid rgba(255, 255, 255, .18); border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.adv-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: repeating-linear-gradient(-45deg, #e8424a 0 10px, #fff 10px 20px); }
.adv-bar span { position: relative; display: block; text-align: center; font-size: 12px; font-weight: 800; line-height: 20px; text-shadow: 0 1px 2px #000; }
.adv-extras { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.adv-box { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); }
.adv-box h3 { margin: 0 0 6px; font-size: 15px; }
.adv-box p { margin: 6px 0 0; font-size: 12px; color: #c8d4ff; }
.adv-hats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.adv-hat { display: grid; justify-items: center; gap: 1px; padding: 3px 2px; border-radius: 8px; background: rgba(0, 0, 0, .25); text-align: center; }
.adv-hat img { width: 100%; max-width: 64px; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; filter: brightness(.35) saturate(0); }
.adv-hat.got img { filter: none; }
.adv-hat small { font-size: 9.5px; line-height: 1.15; color: #c8d4ff; }
.adv-hat.got small { color: #ffe9a8; font-weight: 700; }
.adv-goals { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 12.5px; }
.adv-goals li { display: flex; gap: 6px; align-items: baseline; }
.adv-goals li > b:first-child { flex: none; min-width: 42px; padding: 1px 6px; border-radius: 99px; background: rgba(255, 255, 255, .15); text-align: center; font-size: 11px; }
.adv-goals li.done > b:first-child { background: #2f9a3a; }
.adv-go { margin-top: 10px; width: 100%; }

/* the gift card */
.adv-reveal { position: fixed; inset: 0; z-index: 43; display: grid; place-items: center; padding: 16px; background: rgba(6, 10, 24, .72); }
.adv-reveal.hidden { display: none; }
.adv-card { position: relative; width: min(340px, 100%); box-sizing: border-box; padding: 16px 16px 14px; border-radius: 16px; text-align: center; color: #303848; overflow: hidden;
  background: linear-gradient(180deg, #fffaf0, #f2e6c8); border: 3px solid #e8c45a; box-shadow: 0 0 0 4px #8a1a22, 0 14px 40px rgba(0, 0, 0, .55); }
.adv-card.fresh { animation: adv-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes adv-pop { from { transform: scale(.6); opacity: 0; } }
.adv-burst { position: absolute; left: 50%; top: 40%; width: 420px; height: 420px; margin: -210px 0 0 -210px; pointer-events: none; opacity: .3;
  background: repeating-conic-gradient(#ffd23a 0 10deg, transparent 10deg 24deg); animation: adv-spin 14s linear infinite; }
@keyframes adv-spin { to { transform: rotate(360deg); } }
.adv-card > *:not(.adv-burst) { position: relative; }
.adv-card h3 { margin: 0 0 6px; color: #8a1a22; font-size: 18px; }
.adv-card h3 small { color: #5a6478; font-size: 12px; }
.adv-card ul { margin: 6px 0 10px; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 15px; font-weight: 800; }
.adv-card li i { font-style: normal; }
.adv-hatshow img { width: 120px; height: 120px; object-fit: contain; image-rendering: pixelated; }
.adv-hatname { margin: 0; font-size: 16px; }
.adv-note { margin: 4px 0 8px; font-size: 12px; color: #5a6478; }

/* falling snow */
.adv-snow { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.adv-snow i { position: absolute; top: -10px; left: calc(var(--x) * 1%); width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .7; animation: adv-fall 9s linear infinite; }
.adv-snow i:nth-child(3n) { width: 4px; height: 4px; animation-duration: 12s; }
.adv-snow i:nth-child(4n) { width: 3px; height: 3px; opacity: .5; animation-duration: 15s; }
@keyframes adv-fall { to { transform: translate(18px, 1400px); } }
@media (prefers-reduced-motion: reduce) {
  .adv-snow, .adv-burst { display: none; }
  .adv-ready .adv-front, .advent-btn.advent-hot, #u2-advent.advent-hot, .adv-bulb, .adv-s-ready .adv-tdoor, .u2-advwin.advent-hot, .u2-advwin .aw-ready { animation: none; }
}
@media (max-width: 560px) {
  .advent-modal { padding: 10px 8px 30px; }
  .adv-panel { padding: 14px 10px 12px; }
  .adv-panel h2 { font-size: 21px; }
  .adv-grid { grid-template-columns: repeat(5, 1fr); gap: 8px 6px; }
  .adv-board { padding: 7px; }
  .adv-panel h2::before, .adv-panel h2::after { margin: 0 6px; }
  .adv-status { flex-wrap: wrap; gap: 10px; }
  .adv-tdoor { width: 42px; height: 46px; }
  .adv-stext { flex-basis: calc(100% - 60px); }
  .adv-status .adv-go { width: 100%; }
  .adv-extras { grid-template-columns: 1fr; }
  .adv-hats { grid-template-columns: repeat(3, 1fr); }
}
/* the test server's tools */
.adv-test { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: -4px auto 12px; max-width: 620px;
  padding: 7px 10px; border-radius: 10px; border: 1px dashed #ffd84a; background: rgba(255, 216, 74, .08); font-size: 12.5px; color: #ffe9a8; }
.adv-test button { padding: 3px 9px; border-radius: 99px; font-size: 12px; }
.adv-test > span { opacity: .85; }
/* the frame and look gifts (a door's frame, the Christmas specials row, the gift card) */
.adv-frame { display: grid; place-items: center; width: 80%; aspect-ratio: 1; margin-top: -8%; }
.adv-frame svg { width: 100%; height: 100%; overflow: visible; }
.adv-gift .live-look { display: block; width: 78%; aspect-ratio: 1; margin-top: -8%; }
.adv-gift .live-look img, .adv-gift .live-look canvas, .adv-hat .live-look img, .adv-hat .live-look canvas, .adv-hatshow .live-look img, .adv-hatshow .live-look canvas { width: 100%; height: 100%; }
.adv-h3b { margin-top: 12px !important; }
.adv-specials { grid-template-columns: repeat(2, minmax(0, 96px)); justify-content: start; }
.adv-hat .adv-frame { width: 100%; max-width: 64px; margin: 0; }
.adv-hat:not(.got) .adv-frame, .adv-hat:not(.got) .live-look, .adv-hat:not(.got) .adv-banner, .adv-hat:not(.got) .adv-title, .adv-hat:not(.got) .adv-decor { filter: brightness(.35) saturate(0); }
.adv-hat .live-look { display: block; width: 100%; max-width: 64px; aspect-ratio: 1; }
.adv-hatshow .live-look { display: inline-block; width: 120px; height: 120px; }
.adv-frameshow { width: 120px; height: 120px; margin: 4px auto; }
.adv-frameshow svg { width: 100%; height: 100%; overflow: visible; }
