/* The advent calendar (job 419, catalog-web advent.rs), built part by part from jose's page idea (from-jose/
   page-idea.png): his numbered workshop edge to edge, each door a button over its frame (in % of the picture, sized by
   the picture's own width), his gold icons, his glassy cards with their glowing blue edge, his gift, his trees and snow.
   His icons are cut from his picture, their dark ground keyed out to transparency, so only the glow stays.
   The logo's Santa hat is the site's Christmas one (site-xmas.css, job 421). */
.adv{--gold:#ffd98a;--ink:#e6ecf8;--soft:#c3cde4;--edge:rgba(130,175,255,.5);
  background:linear-gradient(180deg,#071027 0%,#0a1636 30%,#0b1a3f 70%,#0a1433 calc(100% - 160px),var(--bg) 100%);color:var(--ink)}
.adv-sec{padding:var(--s4) 0;border-bottom:0}

/* the scene, edge to edge, its foot fading into the page */
.adv-scene-sec{padding:0}
.adv-scene{position:relative;max-width:1280px;margin:0 auto;container-type:inline-size}
.adv-scene__img{display:block;width:100%;height:auto}
.adv-scene::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5%;pointer-events:none;
  background:linear-gradient(rgba(10,22,54,0),#0a1636)}
@media (min-width:1281px){.adv-scene{-webkit-mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent)}}

/* the doors: his painted number while shut; open, his empty frame (cut from his empty-frame scene) with his icon */
.adv-spot{position:absolute;margin:0;padding:0;border:0;border-radius:1.4cqw;background:transparent;cursor:pointer;
  -webkit-tap-highlight-color:transparent}
.adv-spot:hover{box-shadow:0 0 0 .25cqw rgba(255,214,140,.9),0 0 2cqw rgba(255,180,80,.7)}
.adv-spot:focus-visible{outline:2px solid #8fc3ff;outline-offset:2px}
.adv-spot__frame{position:absolute;inset:0;width:100%;height:100%;border-radius:1.4cqw}
.adv-spot__icon{position:absolute;left:50%;top:52%;width:52%;height:auto;max-height:76%;object-fit:contain;
  transform:translate(-50%,-50%);filter:drop-shadow(0 0 .7cqw rgba(255,210,130,.65))}
.adv-spot--big .adv-spot__icon{width:46%}
.adv-spot--today{animation:adv-breathe 2.6s ease-in-out infinite}
.adv-spot--live{box-shadow:0 0 0 .3cqw var(--gold),0 0 2.6cqw rgba(255,200,110,.85)}
@keyframes adv-breathe{0%,100%{box-shadow:0 0 0 0 rgba(255,217,138,0)}50%{box-shadow:0 0 0 .3cqw rgba(255,217,138,.85),0 0 2.2cqw rgba(255,190,90,.65)}}
@media (prefers-reduced-motion:reduce){.adv-spot--today{animation:none;box-shadow:0 0 0 .3cqw rgba(255,217,138,.85)}}

/* his four features */
.adv-feats{padding:var(--s4) 0 var(--s2)}
.adv-feats__row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:0;list-style:none}
.adv-feats__row li{display:flex;gap:.85rem;align-items:flex-start;padding:.15rem 1.1rem;border-left:1px solid rgba(255,255,255,.14)}
.adv-feats__row li:first-child{border-left:0;padding-left:0}
.adv-feats__row img{flex:none;width:44px;height:auto}
.adv-feats__row b{display:block;margin-bottom:.2rem;color:#fff;font-size:1rem}
.adv-feats__row span{display:block;color:var(--soft);font-size:.86rem;line-height:1.4}

/* glass: today's reveal, the past doors, the tiles, the message */
.adv-reveal,.adv-past__row,.adv-tiles li,.adv-note{border:1px solid var(--edge);
  background:linear-gradient(135deg,rgba(46,84,170,.38),rgba(18,36,90,.42));
  box-shadow:0 0 22px rgba(70,130,255,.28),inset 0 0 26px rgba(90,150,255,.08);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}

/* today's reveal: his gift, the day, the deal, his button; "24 days of surprises" beside it */
.adv-reveal{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:1.6rem;
  padding:1.1rem 1.8rem 1.1rem .8rem;border-radius:18px}
.adv-reveal__gift{width:250px;height:auto;filter:drop-shadow(0 0 16px rgba(255,170,70,.45));
  -webkit-mask-image:radial-gradient(ellipse 52% 54% at 50% 52%,#000 55%,transparent 100%);
  mask-image:radial-gradient(ellipse 52% 54% at 50% 52%,#000 55%,transparent 100%)}
.adv-pill{display:inline-block;margin:0 0 .45rem;padding:.22rem .75rem;border:1px solid #6f9dff;border-radius:999px;
  background:linear-gradient(#2f6cf0,#1f56d6);color:#fff;font-size:.72rem;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;box-shadow:0 0 12px rgba(70,130,255,.45)}
.adv-reveal__day{margin:0 0 .3rem;font-size:2.4rem;line-height:1.1;color:#fff}
.adv-reveal__what{margin:0 0 .35rem;color:#dfe6f6}
.adv-reveal__what b{color:#fff}
.adv-reveal__fine{margin:0;color:#aebad6;font-size:.85rem}
.adv-reveal__fine b{font-family:var(--mono);color:#fff}
.adv-reveal__acts{margin:.8rem 0 0}
.adv-reveal__side{display:flex;gap:.8rem;align-items:flex-start;max-width:250px;padding-left:1.6rem;
  border-left:1px solid rgba(255,255,255,.18)}
.adv-reveal__side img{flex:none;width:36px;height:auto}
.adv-reveal__side b{display:block;margin-bottom:.3rem;color:#fff;font-size:1.05rem}
.adv-reveal__side span{color:#c9d3ea;font-size:.9rem;line-height:1.45}
.adv-next{margin:var(--s3) 0 0;color:#aab6d3;font-size:var(--t-1);text-align:center}
.adv-count p{margin:0}
.adv-count__nums{display:flex;gap:.9rem;margin:.3rem 0 0}
.adv-count__nums span{display:flex;flex-direction:column;font-size:.72rem;color:#aab6d3;text-transform:uppercase;letter-spacing:.05em}
.adv-count__nums b{font-size:1.9rem;line-height:1.1;color:#fff;font-variant-numeric:tabular-nums}

/* his blue button */
.adv-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.62rem 1.3rem;border:1px solid #79adff;border-radius:9px;
  background:linear-gradient(#3d8dff,#1f6be0);color:#fff;font-weight:700;text-decoration:none;box-shadow:0 0 16px rgba(60,140,255,.5)}
.adv-btn:hover,.adv-btn:focus{color:#fff;filter:brightness(1.08)}

/* the free tokens' notice */
.adv-note{margin:0;padding:var(--s3) var(--s4);border-radius:14px;color:var(--ink)}

/* a deal: in the past list and the message */
.adv-deal__day{margin:0 0 .2rem;color:#aab6d3;font-size:var(--t-1)}
.adv-deal__title{margin:0 0 .3rem;font-size:var(--t1);line-height:1.25;color:#fff}
.adv-deal__line{margin:0 0 .4rem;color:#dfe6f6}
.adv-deal__code,.adv-deal__when{margin:0 0 .3rem;color:#aab6d3;font-size:var(--t-1)}
.adv-deal__code b{font-family:var(--mono);color:#fff}
.adv-deal__acts{margin:.8rem 0 0}

/* the past doors, in the same glass */
.adv-h{margin:0 0 var(--s3);color:#fff;font-size:var(--t2)}
.adv-past{display:grid;gap:var(--s3);margin:0;padding:0;list-style:none}
.adv-past__row{display:flex;align-items:center;gap:var(--s3);padding:.9rem 1.1rem;border-radius:14px}
.adv-past__row img{flex:none;width:58px;height:58px}

/* "What can you find inside?": his seven tiles over his snowy trees */
.adv-inside{position:relative;overflow:hidden;padding:var(--s5) 0 130px}
.adv-inside__h{position:relative;z-index:1;margin:0 0 1.4rem;color:#fff;font-size:1.9rem;text-align:center}
.adv-tiles{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:center;gap:1rem;margin:0;padding:0;list-style:none}
.adv-tiles li{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;width:98px;height:90px;
  border-radius:12px;text-align:center}
.adv-tiles img{width:42px;height:auto}
.adv-tiles span{color:#fff;font-size:.78rem;line-height:1.15}
.adv-fine{position:relative;z-index:1;margin:1.6rem 0 0;color:#aab6d3;font-size:.8rem;text-align:center}
/* his snowy trees at each side and his snow drift behind them across the bottom, every edge soft (alpha in the
   pictures: the trees melt toward the middle and at their tops, the drift at its top and into the page at the end),
   so nothing reads as a box and the section has no hard end (jose 2 Dec) */
.adv-inside__trees{position:absolute;bottom:14px;z-index:1;width:clamp(96px,8vw,150px);height:auto;pointer-events:none}
.adv-inside__trees--left{left:0}
.adv-inside__trees--right{right:0}
.adv-inside__snow{position:absolute;left:0;right:0;bottom:0;z-index:0;height:78px;pointer-events:none;
  background:url(/assets/advent/snow.webp) center bottom/100% 100% no-repeat}

/* the message, dressed for Christmas: gold and red, a ribbon across its top, a little snow, the door's icon large */
.adv-msg{max-width:24rem;padding:0;overflow:hidden;border:2px solid #e3b65c;border-radius:18px;color:#fff;
  background:radial-gradient(120% 85% at 50% 0%,#5c1019 0%,#2b0a14 48%,#0b1636 100%);
  box-shadow:0 0 0 4px rgba(176,24,38,.55),0 0 36px rgba(255,190,90,.45)}
.adv-msg::backdrop{background:rgba(3,8,24,.72)}
.adv-msg::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.55;
  background-image:radial-gradient(2px 2px at 22px 34px,#fff 50%,transparent 51%),radial-gradient(1.5px 1.5px at 84px 96px,#fff 50%,transparent 51%),
    radial-gradient(2px 2px at 146px 52px,#ffe9b8 50%,transparent 51%),radial-gradient(1.5px 1.5px at 204px 126px,#fff 50%,transparent 51%);
  background-size:230px 150px}
.adv-msg .wl__in{position:relative;padding:2rem 1.5rem 1.4rem;text-align:center}
.adv-msg .wl__in::before{content:"";position:absolute;left:0;right:0;top:0;height:10px;
  background:linear-gradient(90deg,#9e0f1b,#e23a3a 50%,#9e0f1b);border-bottom:2px solid #e3b65c}
.adv-msg .wl__x{color:#f1c983}
.adv-msg__icon{display:block;width:120px;height:120px;margin:0 auto .6rem;filter:drop-shadow(0 0 14px rgba(255,200,110,.75))}
.adv-msg__num{margin:.2rem 0 .3rem;font-family:Georgia,"Times New Roman",serif;font-size:3.4rem;font-weight:700;line-height:1;
  color:#ffe3a3;text-shadow:0 0 10px rgba(255,190,90,.85)}
.adv-msg .adv-deal__day{color:#f1c983}
.adv-msg .adv-deal__title{font-family:Georgia,"Times New Roman",serif;font-size:1.55rem;color:#ffe3a3}
.adv-msg .adv-deal__line{color:#f6ecdc}
.adv-msg .adv-deal__code,.adv-msg .adv-deal__when{color:#f1c983}
.adv-msg .adv-btn{border-color:#f0c470;background:linear-gradient(#d4202f,#a3121f);box-shadow:0 0 16px rgba(230,60,60,.5)}

@media (max-width:860px){
  .adv-feats__row{grid-template-columns:1fr 1fr;gap:1rem 0}
  .adv-feats__row li:nth-child(3){border-left:0;padding-left:0}
  .adv-reveal{grid-template-columns:1fr;padding:1.1rem}
  .adv-reveal__gift{width:200px;margin:0 auto}
  .adv-reveal__side{max-width:none;padding:1rem 0 0;border-left:0;border-top:1px solid rgba(255,255,255,.18)}
  .adv-inside{padding-bottom:150px}
  .adv-inside__trees{width:64px;bottom:8px}}
@media (max-width:480px){
  .adv-feats__row{grid-template-columns:1fr}
  .adv-feats__row li{border-left:0;padding-left:0}
  .adv-reveal__day{font-size:2rem}
  .adv-tiles{gap:.6rem}
  .adv-tiles li{width:88px;height:84px}}
