@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@400;500;600&display=swap');
:root{color-scheme:dark;--ink:#f1e8d3;--gold:#d6b66e;--muted:#b9c7be;--serif:'Cormorant Garamond',Georgia,serif;--sans:'Manrope',Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:#09292c;color:var(--ink);font:14px/1.7 var(--sans);background-image:radial-gradient(ellipse at 50% 0, #174449 0, transparent 58%)}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:2px solid #ffe5a4;outline-offset:5px}[hidden]{display:none!important}.masthead{max-width:1440px;margin:auto;padding:25px 46px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d6b66e22}.brand{font-size:12px;letter-spacing:.05em}.brand span{font-weight:600;color:var(--gold)}.back{font-size:11px;color:var(--muted)}.back span{margin-left:12px;color:var(--gold)}.introduction{text-align:center;padding:42px 24px 0}.eyebrow{text-transform:uppercase;letter-spacing:.22em;font-size:10px;color:var(--gold);margin:0 0 13px}h1{font:500 clamp(43px,5.4vw,78px)/1.05 var(--serif);margin:0;letter-spacing:-.035em}h1 em{font-weight:400;color:#e4c98f}.intro{color:#c4d0c6;font-size:13px;line-height:1.9;margin:18px auto 30px}.calendar-meta{display:flex;justify-content:space-between;max-width:1310px;margin:0 auto;padding:0 4px 14px;font-size:10px;color:#c9c9ad;letter-spacing:.02em}.calendar-meta span:last-child{color:var(--gold)}.calendar{position:relative;aspect-ratio:3/2;max-width:1360px;margin:0 auto;isolation:isolate;overflow:hidden;box-shadow:0 20px 80px #0005}.art,.art img,.art-shade,.windows{position:absolute;inset:0;width:100%;height:100%}.art img{object-fit:cover}.art-shade{background:linear-gradient(#021b2122,transparent 48%,#001c2022);z-index:1;pointer-events:none}.calendar-frame{position:absolute;inset:14px;border:1px solid #e7c78065;z-index:2;pointer-events:none}.calendar-frame:before,.calendar-frame:after{content:'✧';position:absolute;left:50%;transform:translateX(-50%);top:-16px;color:#f0d395;font-size:20px;text-shadow:0 0 10px #000}.calendar-frame:after{top:auto;bottom:-16px}.windows{z-index:3}.day{position:absolute;left:var(--x);top:var(--y);width:var(--w,7.4%);height:var(--h,11%);display:grid;place-items:center;background:linear-gradient(140deg,#0b313d2b,#0a252d14);color:#ffe6aa;border:1px dashed #e9c885bf;border-radius:4px 4px 2px 2px;transform:rotate(var(--r,0deg));text-shadow:0 2px 7px #001b21,0 0 12px #021a20;box-shadow:inset 0 0 18px #08262d30,0 1px 7px #00181f22;transition:background .3s,box-shadow .3s,transform .3s;font:500 clamp(24px,3.1vw,46px)/1 var(--serif)}.day:nth-child(4n+1){border-radius:42% 42% 3px 3px}.day:after{content:'';position:absolute;right:5px;top:50%;height:10px;border-right:1px solid #ffe5a4aa}.day:hover{background:#d2ad5530;box-shadow:0 0 28px #e4be6660,inset 0 0 20px #f3d49a22;transform:rotate(0) scale(1.06);z-index:4}.day.done{border-style:solid;background:#c7a04b30}.day.done:before{content:'✦';position:absolute;right:5px;top:5px;font:12px var(--sans);color:#ffe7ab}.day.featured{border-color:#ffe5a4;box-shadow:0 0 22px #f3c05c55}.art-caption{position:absolute;z-index:4;bottom:2.2%;left:0;right:0;text-align:center;font:italic 400 clamp(14px,1.8vw,25px) var(--serif);color:#fff0c9;text-shadow:0 2px 8px #00191d;pointer-events:none}.preview-note{text-align:center;font-size:10px;color:#a8b5aa;letter-spacing:.02em;margin:20px 16px}.afterword{text-align:center;padding:35px 20px 58px}.ornament{color:var(--gold);font-size:29px}.afterword h2{font:400 34px/1.2 var(--serif);margin:13px 0}.afterword p{color:var(--muted);font-size:12px}.afterword a{display:inline-block;color:#e4c98f;font-size:11px;margin-top:10px;border-bottom:1px solid #d6b66e66;padding-bottom:5px}footer{border-top:1px solid #d6b66e22;max-width:1360px;padding:24px 32px;margin:auto;color:#a5b6ac;font:italic 20px var(--serif);display:flex;justify-content:space-between}footer span{font:10px var(--sans);align-self:center}dialog{width:min(540px,calc(100% - 28px));max-height:calc(100dvh - 40px);padding:45px 42px 25px;border:1px solid #c2a26599;background:radial-gradient(ellipse at top,#1e4946,#0b2d30 65%);color:var(--ink);box-shadow:0 24px 100px #0008;text-align:center}dialog::backdrop{background:#011719c9;backdrop-filter:blur(7px)}body:has(dialog[open]){overflow:hidden}.close{position:absolute;right:12px;top:8px;border:0;background:none;color:#d5c49f;font:28px var(--serif);width:40px;height:40px}.dialog-star{display:block;font-size:33px;color:var(--gold)}dialog h2{font:500 39px/1.08 var(--serif);margin:12px 0}.duration{font-size:10px;color:var(--gold);letter-spacing:.1em}#day-description{font-size:13px;color:#c8d3c9}dialog ol{text-align:left;padding-left:21px;font-size:12px;color:#d5ddd2}dialog li{padding:5px 0 5px 5px}.tool-link{font-size:12px;display:inline-block;color:#f0d49a;border-bottom:1px solid #c4a36377;margin:8px 0 18px}.dialog-actions{display:grid;gap:10px;margin-top:12px}.primary,.share{border:1px solid #d6b66e88;padding:14px 12px;border-radius:2px;font-size:12px}.primary{background:linear-gradient(120deg,#ecd4a0,#c6a15d);color:#173532;font-weight:600}.share{background:transparent;color:#ead6ad}.share:hover{background:#d6b66e15}.dialog-footnote{font:italic 17px var(--serif);color:#9faf9e;margin:16px 0 0}.status{color:#e5ca91;font-size:11px;min-height:19px;margin:9px 0 0}#share-fallback{text-align:left;font-size:11px;margin-top:14px}textarea{width:100%;background:#08272c;color:var(--ink);border:1px solid #b7995c;margin-top:6px;padding:10px;font:12px/1.6 var(--sans);resize:vertical}.noscript{text-align:center}
.calendar{width:100%}
.day{width:10.2%;height:12.8%;font-size:clamp(30px,3.8vw,58px);border-width:1.5px;border-color:#ffe1a0d9;background:linear-gradient(140deg,#082b3b30,#07303a16);text-shadow:0 2px 5px #001b21,0 0 15px #00151d,0 0 3px #00151d}
@media(min-width:1450px){.calendar{border-radius:2px}}
@media(max-width:1023px){.masthead{padding:18px 20px}.brand{font-size:10px}.back{font-size:10px}.introduction{padding:32px 18px 0}.eyebrow{font-size:8px;letter-spacing:.16em}h1{font-size:49px}h1 em{display:block}.intro{font-size:11px;margin:17px auto 23px}.desktop-break{display:none}.calendar-meta{font-size:8px;gap:12px;align-items:center;padding-bottom:12px}.calendar-meta span:first-child{max-width:200px;text-align:left}.calendar-meta span:last-child{white-space:nowrap}.calendar{aspect-ratio:2/3;min-height:600px}.calendar-frame{inset:8px}.day{left:var(--mx);top:var(--my);width:var(--mw,13%);height:var(--mh,8%);font-size:27px;background:#062a3330}.day:after{right:3px;height:8px}.art-caption{font-size:17px;bottom:1.5%}.preview-note{font-size:9px;max-width:300px;margin:18px auto}.afterword{padding:20px 25px 36px}.afterword h2{font-size:29px}.afterword p{font-size:11px}footer{padding:22px 20px;font-size:18px}footer span{font-size:8px}dialog{padding:35px 25px 22px}dialog h2{font-size:34px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:1023px){.calendar{aspect-ratio:1/2;min-height:700px}.day{width:19.5%;height:7.6%;font-size:34px;border-width:1.5px}.art-caption{bottom:1%;font-size:17px}}

/* A gilded invitation, framed by the same festive scene as the calendar. */
body{background-color:#081e2c;background-image:radial-gradient(ellipse at 50% 0,#123953,transparent 65%)}
.masthead{background:#081c2bee;border-bottom-color:#d9b16b55}
.introduction{position:relative;isolation:isolate;overflow:hidden;max-width:1360px;margin:0 auto;padding:0 28px;background:#071c30}
.introduction::before{content:'';position:absolute;inset:-3px;z-index:-2;background:url('/img/advent/festive-friends-desktop.webp') center 24%/cover no-repeat;opacity:.85}
.introduction::after{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 44%,#10294025,transparent 66%),linear-gradient(90deg,#04162925 0%,#081d32e8 25%,#0a2036f5 48%,#081d32e8 75%,#04162925 100%),linear-gradient(0deg,#061c2f 0%,transparent 22%,transparent 80%,#081c2b99 100%)}
.hero-copy{position:relative;max-width:900px;margin:auto;padding:34px 16px 26px}
.hero-copy::before{content:'';position:absolute;inset:15px 0 14px;border:1px solid #e3bf7752;clip-path:polygon(0 0,36% 0,36% 1%,64% 1%,64% 0,100% 0,100% 100%,64% 100%,64% 99%,36% 99%,36% 100%,0 100%);pointer-events:none}
.hero-copy::after{content:'✧';position:absolute;bottom:2px;left:50%;transform:translateX(-50%);color:#eccb8a;font-size:19px;text-shadow:0 0 12px #eab763}
.hero-crown{display:flex;gap:17px;align-items:center;justify-content:center;color:#ffe0a0;font-size:24px;text-shadow:0 0 20px #fbc66abb;margin:0 auto 14px}
.hero-crown span{width:72px;height:1px;background:linear-gradient(90deg,transparent,#d9ac60)}
.hero-crown span:last-child{transform:rotate(180deg)}
.introduction .eyebrow{display:inline-block;padding:7px 17px;border:1px solid #e8c78055;border-radius:30px;background:#071b2f80;color:#eed6a5;font-size:9px;letter-spacing:.19em;margin-bottom:15px}
.introduction h1{font-family:var(--serif);letter-spacing:-.025em;line-height:.98;margin:0 auto;filter:drop-shadow(0 3px 9px #010a17)}
.introduction h1 span{display:block;font-size:clamp(36px,4.2vw,57px);font-style:italic;font-weight:400;margin-bottom:5px;color:#f5dfb5}
.introduction h1 strong{display:block;font-size:clamp(48px,7.1vw,94px);font-weight:500;padding-bottom:8px;background:linear-gradient(110deg,#b98b43 0%,#fff2ca 24%,#e9bc70 44%,#fff2cd 63%,#c99b50 83%,#f9e4b5 100%);background-clip:text;-webkit-background-clip:text;color:transparent}
.hero-divider{display:flex;align-items:center;justify-content:center;gap:14px;color:#e7bd73;font-size:18px;margin:9px auto}
.hero-divider::before,.hero-divider::after{content:'';width:100px;height:1px;background:linear-gradient(90deg,transparent,#cda55b99)}
.hero-divider::after{transform:rotate(180deg)}
.introduction .intro{font-size:13px;line-height:1.9;color:#f0e5ce;text-shadow:0 2px 5px #051321;margin:10px auto 8px;max-width:510px}
.introduction .calendar-meta{position:relative;margin:0 -28px;max-width:none;padding:15px 29px;background:#071c2fc9;border-top:1px solid #e4b86755;border-bottom:1px solid #f0ca7c88;color:#e5cfa2;font-size:10px}
.hero-lights{position:absolute;inset:0;pointer-events:none;z-index:1}
.hero-lights i{position:absolute;top:0;left:7%;color:#fff1c7;font-style:normal;font-size:24px;line-height:1;text-shadow:0 0 7px #ffc55a,0 0 24px #ffbf4d;transform-origin:top center}
.hero-lights i::before{content:'';display:block;width:1px;height:62px;margin:auto auto 4px;background:linear-gradient(#ad8744,#ffe4aa)}
.hero-lights i:nth-child(2){left:16%;font-size:17px}.hero-lights i:nth-child(2)::before{height:116px}
.hero-lights i:nth-child(3){left:3%;top:170px;font-size:14px}.hero-lights i:nth-child(3)::before{height:28px}
.hero-lights i:nth-child(4){left:auto;right:7%}.hero-lights i:nth-child(5){left:auto;right:16%;font-size:17px}.hero-lights i:nth-child(5)::before{height:116px}
.hero-lights i:nth-child(6){left:auto;right:3%;top:170px;font-size:14px}.hero-lights i:nth-child(6)::before{height:28px}
@media(max-width:1023px){
  .introduction{padding:0 15px}
  .introduction::before{background-position:center 17%;opacity:.8}
  .introduction::after{background:linear-gradient(90deg,#051a2c66,#071c30df 21%,#0a2035e6 50%,#071c30df 79%,#051a2c66),linear-gradient(0deg,#071c30,transparent 35%)}
  .hero-copy{padding:30px 7px 29px}
  .hero-copy::before{inset:12px 0 14px}
  .hero-crown{font-size:22px;gap:12px;margin-bottom:17px}
  .hero-crown span{width:43px}
  .introduction .eyebrow{max-width:290px;font-size:7px;letter-spacing:.1em;padding:7px 10px;margin-bottom:20px}
  .introduction h1 span{font-size:39px;margin-bottom:9px}
  .introduction h1 strong{font-size:clamp(33px,9.6vw,60px);letter-spacing:-.04em;line-height:1.08;padding-bottom:5px}
  .hero-divider{margin:12px auto 10px;font-size:17px}
  .hero-divider::before,.hero-divider::after{width:65px}
  .introduction .intro{font-size:11px;line-height:1.85;max-width:270px;margin:8px auto 6px}
  .introduction .calendar-meta{margin:0 -15px;padding:13px 17px;font-size:8px}
  .hero-lights i{left:5%;font-size:16px}.hero-lights i::before{height:43px}
  .hero-lights i:nth-child(4){right:5%}
  .hero-lights i:nth-child(2),.hero-lights i:nth-child(5){display:none}
  .hero-lights i:nth-child(3),.hero-lights i:nth-child(6){top:197px;font-size:11px}
}

/* Keep the invitation compact so the calendar appears sooner. */
.hero-copy{padding:18px 16px 17px}
.hero-copy::before{inset:9px 0 8px}
.hero-copy::after{bottom:-3px;font-size:15px}
.hero-crown{font-size:17px;margin-bottom:7px;gap:12px}
.hero-crown span{width:49px}
.introduction .eyebrow{padding:4px 13px;margin-bottom:9px;font-size:8px}
.introduction h1{line-height:.95}
.introduction h1 span{display:inline;font-size:clamp(34px,4.3vw,59px);margin:0 10px 0 0}
.introduction h1 strong{display:inline;font-size:clamp(34px,4.3vw,59px);padding-bottom:3px}
.hero-divider{font-size:13px;margin:5px auto}
.introduction .intro{font-size:12px;line-height:1.6;margin:6px auto 4px;max-width:650px}
.introduction .intro .desktop-break{display:none}
.introduction .calendar-meta{padding-top:10px;padding-bottom:10px}
.hero-lights i::before{height:34px}
.hero-lights i:nth-child(2)::before,.hero-lights i:nth-child(5)::before{height:73px}
.hero-lights i:nth-child(3),.hero-lights i:nth-child(6){top:100px}
@media(max-width:1023px){
  .hero-copy{padding:18px 8px 17px}
  .hero-copy::before{inset:8px 0}
  .hero-crown{font-size:16px;margin-bottom:9px}
  .introduction .eyebrow{font-size:7px;padding:4px 9px;margin-bottom:10px}
  .introduction h1 span{display:block;font-size:29px;margin:0 0 3px}
  .introduction h1 strong{display:block;font-size:clamp(31px,9vw,54px);line-height:1.05;letter-spacing:-.04em}
  .hero-divider{font-size:12px;margin:5px auto}
  .introduction .intro{font-size:10px;line-height:1.6;max-width:290px;margin:5px auto 3px}
  .introduction .calendar-meta{padding-top:9px;padding-bottom:9px}
  .hero-lights i::before{height:25px}
  .hero-lights i:nth-child(3),.hero-lights i:nth-child(6){top:114px}
}

/* Readable text and individually placed, high-contrast gilded numerals. */
.introduction .intro{font-size:18px;line-height:1.55;max-width:760px}
.introduction .calendar-meta{font-size:14px;line-height:1.55;gap:18px}
.introduction .eyebrow{font-size:11px;letter-spacing:.13em}
.brand{font-size:14px}.back{font-size:13px}
.afterword p{font-size:15px}.afterword a{font-size:14px}
.preview-note{font-size:12px}
.day{display:block;background:linear-gradient(140deg,#041b2f40,#041b2f20)}
.day-number{position:absolute;left:clamp(.58em,var(--number-x,50%),calc(100% - .58em));top:clamp(.52em,var(--number-y,50%),calc(100% - .52em));transform:translate(-50%,-50%);isolation:isolate;color:#fff0bc;font:600 clamp(42px,5.2vw,74px)/1 var(--serif);text-shadow:0 2px 2px #031321,0 0 5px #031321,0 0 12px #031321;pointer-events:none;white-space:nowrap}
.day-number::before{content:'';position:absolute;inset:-.18em -.2em;z-index:-1;background:radial-gradient(ellipse,#031b2fdd 15%,#031b2f99 48%,transparent 74%);filter:blur(3px);border-radius:50%;pointer-events:none}
.day.done .day-number{color:#fff5ce}
@media(max-width:1023px){
  .introduction .intro{font-size:16px;max-width:560px}
  .introduction .calendar-meta{font-size:12px;align-items:center;flex-wrap:wrap;gap:5px 15px}
  .calendar-meta span:first-child{max-width:none}
  .introduction .eyebrow{font-size:9px;letter-spacing:.08em}
  .brand{font-size:11px}.back{font-size:12px}
  .day-number{font-size:clamp(44px,7vw,68px)}
  .afterword p{font-size:14px}.afterword a{font-size:13px}
  .preview-note{font-size:11px;max-width:420px;padding:0 15px}
  dialog .eyebrow{font-size:10px}dialog .duration{font-size:12px}
  #day-description,dialog ol{font-size:14px}
  .primary,.share,.tool-link{font-size:14px}
}

.calendar-legend{max-width:1360px;margin:0 auto;padding:13px 20px;display:flex;justify-content:center;flex-wrap:wrap;gap:10px 25px;background:#081e2c;color:#e3d8be;font-size:12px}
.calendar-legend span{display:flex;align-items:center;gap:8px}
.calendar-legend i{width:17px;height:19px;display:grid;place-items:center;border:1px dashed #eed296;border-radius:3px;font-style:normal;font-size:12px}
.calendar-legend .legend-locked{border-color:#8294a3;background:#06192e;color:#a9b6c1}
.calendar-legend .legend-done{border-style:solid;border-color:#bbd7b6;background:#27544a;color:#e6f4d8}
.calendar-legend .legend-today{border:2px solid #ffe3a1;box-shadow:0 0 9px #ffd67d80}
.day-state{position:absolute;right:7px;top:6px;display:grid;place-items:center;color:#d8e8da;font:600 17px/1 var(--sans);pointer-events:none;filter:drop-shadow(0 1px 3px #000)}
.day.locked{cursor:default;border-color:#a8b1bc99;background:#071a3070;box-shadow:inset 0 0 24px #03132645;transform:rotate(var(--r,0deg))}
.day.locked .day-number{color:#bdc4c9;opacity:.82}
.day.locked .day-state{color:#c0c9d0}
.day.locked:hover{background:#071a3070;box-shadow:inset 0 0 24px #03132645;transform:rotate(var(--r,0deg))}
.day.done{border-style:solid;border-color:#c3dfb4;background:linear-gradient(135deg,#184b40b0,#123b3890);box-shadow:inset 0 0 20px #67ab7b20}
.day.done::before{content:none}
.day.done .day-number{color:#e5f6cc}
.day.done .day-state{color:#e5f6cc}
.day.is-today{border:2px solid #ffe7ae;box-shadow:0 0 24px #ffd16b99,inset 0 0 25px #f8c77138;background:#c99a3b30;z-index:4}
.day.is-today::before{content:'Сегодня';position:absolute;top:-11px;left:50%;transform:translateX(-50%);padding:3px 7px;background:linear-gradient(120deg,#fff0bf,#d4ac60);color:#20362e;border-radius:3px;font:600 10px/1.1 var(--sans);letter-spacing:.025em;text-shadow:none;box-shadow:0 2px 8px #0005}
.day.is-today.done::before{content:'Сегодня'}
.calendar-message{max-width:600px;margin:0 auto 15px;text-align:center;color:#f0d49a;font-size:13px;padding:0 20px}
.calendar-message:empty{display:none}
@media(max-width:1023px){.calendar-legend{padding:12px 14px;gap:9px 17px;font-size:11px}.day-state{right:5px;top:5px;font-size:14px}.day-state svg{width:11px;height:13px}.day.is-today::before{font-size:9px;padding:3px 6px;top:-10px}}

.introduction h1 span{display:block;font-size:clamp(62px,7.3vw,98px);line-height:.95;margin:0 0 7px;font-weight:500}
.introduction h1 strong{display:block}
@media(max-width:1023px){.introduction h1 span{font-size:clamp(54px,13vw,86px);margin-bottom:7px;line-height:.95}}

/* A separate New Year illustration for the title, independent of the calendar. */
.introduction::before{background-image:url('/img/advent/new-year-goats-hero-v2.webp');background-position:center;background-size:cover;opacity:1}
.introduction::after{background:linear-gradient(90deg,#06172b08,#071c3038 24%,#071c3066 40%,#071c3066 60%,#071c3038 76%,#06172b08),linear-gradient(0deg,#071c3070,transparent 25%)}
.hero-copy::before{border-color:#e3bf776b}
.introduction h1{text-shadow:0 2px 12px #041326,0 0 25px #04132699}
@media(max-width:1023px){.introduction::before{background-image:url('/img/advent/new-year-goats-hero-mobile-v2.webp');background-position:center 27%;opacity:1}.introduction::after{background:linear-gradient(90deg,#05192b20,#071c3075 29%,#071c3085 50%,#071c3075 71%,#05192b20),linear-gradient(0deg,#071c3070,transparent 35%)}}

/* Full-width masthead and clean, luminous title. */
.masthead{width:100%;max-width:none;margin:0;padding-inline:clamp(20px,3.5vw,64px)}
.hero-copy::before{content:none;border:0}
.introduction h1{filter:none;text-shadow:none}
.introduction h1 strong{background:none;color:#ffe8ad;-webkit-text-fill-color:#ffe8ad;text-shadow:0 3px 2px #03101fe6,0 7px 12px #010a1ee6}

/* Small gilded glints, animated with compositor-friendly properties only. */
.hero-sparkles{position:absolute;inset:0 0 44px;z-index:1;overflow:hidden;pointer-events:none}
.hero-sparkles i{position:absolute;left:var(--sx);top:var(--sy);width:var(--size);height:var(--size);color:#fff0bc;opacity:0;animation:hero-glint var(--duration) var(--delay) ease-in-out infinite;will-change:transform,opacity}
.hero-sparkles i::before,.hero-sparkles i::after{content:'';position:absolute;inset:0;background:currentColor;clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%)}
.hero-sparkles i::after{inset:35%;border-radius:50%;clip-path:none;box-shadow:0 0 9px 3px #ffd27599}
.hero-copy{z-index:2}
@keyframes hero-glint{0%,100%{opacity:0;transform:translate3d(0,5px,0) scale(.45) rotate(-12deg)}35%{opacity:.85;transform:translate3d(0,0,0) scale(1) rotate(0)}65%{opacity:.2;transform:translate3d(2px,-4px,0) scale(.65) rotate(12deg)}}
@media(max-width:600px){.hero-sparkles i:nth-child(n+15){display:none}.hero-sparkles{bottom:60px}}
@media(prefers-reduced-motion:reduce){.hero-sparkles i{animation:none;opacity:.35;will-change:auto}}

/* Same red gradient as the home hero's Bazi calculator button. */
body{--advent-red:linear-gradient(135deg,#a3000b 0%,#4a0d16 100%);background:#a3000b;background-image:var(--advent-red);--muted:#ffe5d4}
.masthead{background:var(--advent-red);border-bottom-color:#ffe3a35c}
.brand,.back{color:#fff1dc}
.introduction{background:#a3000b}
.introduction::after{background:linear-gradient(90deg,#7b071915,#820d2633 26%,#5d0a2559 50%,#820d2633 74%,#7b071915),linear-gradient(0deg,#a00a2966,transparent 26%)}
.introduction .eyebrow{background:#8d102a99}
.introduction .calendar-meta{background:var(--advent-red);color:#fff0d5;border-color:#ffdb9477}
.calendar-legend{background:var(--advent-red);color:#fff1db}
.preview-note,.afterword p{color:#fff0dc}
.afterword a,.calendar-message{color:#ffe5a5}
dialog{background:var(--advent-red);border-color:#ffe2a3b0}
dialog::backdrop{background:#3e0517cc}
#day-description,dialog ol{color:#fff0df}
#day-description p{margin:0 0 16px;line-height:1.7}
#day-description strong{color:#fff5cd}
.dialog-footnote{color:#ffdfcd}
textarea{background:#850c24}

/* Collectible holiday cards: a different composition for every date. */
#day-dialog{width:min(610px,calc(100% - 28px));padding:0;overflow:hidden;border:1px solid #f5ce86;border-radius:26px;background:linear-gradient(var(--card-angle,135deg),var(--card-red,#a01727),#3e0b1b);box-shadow:0 32px 100px #18000b99,0 0 0 5px #f1c97816,inset 0 0 60px #f7b85c0d;isolation:isolate}
.day-card-scroll{position:relative;max-height:calc(100dvh - 42px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#deb87988 #350b1840;isolation:isolate}
.day-card-content{position:relative;z-index:2;padding:12px 36px 26px}
.day-card-content .eyebrow{font-size:11px;letter-spacing:.13em;margin:0 auto 16px;color:#f9d695}
.day-card-content .dialog-star{display:none}
#day-dialog h2{font-size:clamp(32px,4vw,43px);line-height:1.08;margin:0 0 16px;color:#fff0cd;text-wrap:balance;text-shadow:0 3px 7px #2c0016aa}
#day-dialog .duration{font-size:12px;margin-bottom:17px;color:#f3d196}
#day-dialog #day-description,#day-dialog ol{font-size:15px;line-height:1.7}
#day-dialog ol{padding-left:22px;margin:17px 0 23px}
#day-dialog li{padding:5px 0 5px 7px}
#day-dialog li::marker{color:#f6d48d;font-weight:600}
#day-dialog .close{right:11px;top:11px;z-index:5;display:grid;place-items:center;width:35px;height:35px;border:1px solid #f0cf8c66;border-radius:50%;background:#3e061d9c;color:#fff0c9;font:26px/1 var(--serif);backdrop-filter:blur(8px)}
#day-dialog .close:focus-visible{outline-offset:2px}
.card-scene{position:relative;height:124px;z-index:1;overflow:hidden;background:radial-gradient(ellipse at 50% 55%,#f6c97e19,transparent 70%)}
.card-scene-glow{position:absolute;inset:0;background:radial-gradient(ellipse at 45% 35%,#fcb24c15,transparent 65%)}
.card-goat{position:absolute;left:-25px;top:calc(var(--goat-y,18px) / 2);transform:rotate(var(--goat-tilt,11deg));width:140px;height:140px;background-image:url('/img/advent/card-goat-poses.webp');background-size:200% 200%;background-position:0 0;filter:drop-shadow(0 6px 9px #23031577);z-index:2;mask-image:linear-gradient(#000 0 60%,transparent 91%)}
#day-dialog[data-goat-edge="right"] .card-goat{left:auto;right:-25px}
#day-dialog[data-goat-pose="1"] .card-goat{background-position:100% 0}
#day-dialog[data-goat-pose="2"] .card-goat{background-position:0 100%}
#day-dialog[data-goat-pose="3"] .card-goat{background-position:100% 100%}
.card-lantern{position:absolute;width:154px;height:154px;background-image:url('/img/advent/card-painted-decor.webp');background-size:200% 200%;filter:drop-shadow(0 0 15px #ff38272e)}
.card-lantern-left{left:29%;top:var(--lantern-left-y,-16px);transform:rotate(-5deg);background-position:0 0}
.card-lantern-right{left:59%;top:var(--lantern-right-y,-36px);transform:rotate(7deg);background-position:100% 0}
#day-dialog[data-goat-edge="right"] .card-lantern-left{left:0}
#day-dialog[data-goat-edge="right"] .card-lantern-right{left:30%}
.card-snowflakes{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;opacity:.16}
.card-snowflakes span{position:absolute;aspect-ratio:1;background-image:url('/img/advent/card-painted-decor.webp');background-size:200% 200%;background-position:0 100%}
.card-snowflakes span:nth-child(even){background-position:100% 100%}
#day-dialog .primary,#day-dialog .share{border-radius:17px;min-height:52px;font-size:14px;padding:14px 18px}
#day-dialog .primary{background:linear-gradient(120deg,#fff0be,#e4bf77 65%,#f9dda3);border-color:#ffe8b2;color:#4d1720;box-shadow:0 5px 18px #20021233,inset 0 1px 0 #fff9df;font-weight:600}
#day-dialog .share{background:#fff0cb0b;border-color:#f2cf8b88;color:#ffeac0;box-shadow:inset 0 1px 0 #fff1bd14}
#day-dialog .share:hover{background:#ffedbf18}
#day-dialog .tool-link{color:#ffdfa2;font-size:14px}
#day-dialog .dialog-footnote{margin-top:9px;font-size:19px;color:#f0cfae}
@media(max-width:600px){
  #day-dialog{width:calc(100% - 22px);border-radius:22px}
  .day-card-scroll{max-height:calc(100dvh - 28px)}
  .day-card-content{padding:10px 22px 22px}
  .card-scene{height:112px}
  .card-goat{width:130px;height:130px;left:-25px}
  #day-dialog[data-goat-edge="right"] .card-goat{right:-25px}
  .card-lantern{width:140px;height:140px}
  .card-lantern-left{left:26%}.card-lantern-right{left:56%}
  #day-dialog[data-goat-edge="right"] .card-lantern-left{left:-5%}
  #day-dialog[data-goat-edge="right"] .card-lantern-right{left:24%}
  .day-card-content .eyebrow{font-size:9px;letter-spacing:.09em}
  #day-dialog h2{font-size:34px}
  #day-dialog #day-description,#day-dialog ol{font-size:14px}
  #day-dialog .primary,#day-dialog .share{border-radius:15px;font-size:13px}
}

/* The grand finale is its own keepsake, revealed after 31 completed tasks. */
.finale-open{display:block;margin:25px auto;padding:16px 24px;border:1px solid #ffe1a1;border-radius:18px;background:linear-gradient(120deg,#ffefbf,#dfb56b);color:#541322;box-shadow:0 5px 30px #ffd27a26;font-weight:600}
#finale-dialog{width:min(640px,calc(100% - 26px));padding:0;overflow:hidden;border:1px solid #ffdd9b;border-radius:30px;background:radial-gradient(ellipse at 50% 0,#b32435,#680d25 48%,#330b20);box-shadow:0 0 0 5px #ecc77a17,0 0 70px #eebf5c23,0 30px 130px #130012bb;isolation:isolate}
#finale-dialog::backdrop{background:radial-gradient(ellipse,#3b0924c9,#11091beb);backdrop-filter:blur(10px)}
.finale-scroll{max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d7b57888 #2d081d55}
.finale-close{position:absolute;right:13px;top:13px;z-index:3;width:36px;height:36px;border:1px solid #ffe2a477;border-radius:50%;background:#360a20bf;backdrop-filter:blur(6px);color:#fff0c4;font:26px/1 var(--serif)}
.finale-art{height:216px;background:url('/img/advent/grand-finale.webp') center 15%/cover;position:relative;border-radius:29px 29px 0 0}
.finale-art::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#790f2a,transparent 32%)}
.finale-content{position:relative;padding:0 38px 28px;z-index:1}
.finale-kicker{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:#f7dba1;margin:0 0 13px}
#finale-dialog h2{font:500 clamp(37px,5vw,49px)/1.02 var(--serif);color:#fff1c9;text-shadow:0 3px 10px #30051e88;margin:0 0 19px;text-wrap:balance}
#finale-dialog h2 em{display:block;font-weight:500;color:#ffe4a0}
.finale-content>p{font-size:14px;line-height:1.7;color:#fff0db}
.finale-prizes{position:relative;padding:23px 14px;margin:24px 0 20px;border:1px solid #eac5778c;border-radius:21px;background:radial-gradient(ellipse at top,#ffe2a124,#ffe2a104 80%);box-shadow:inset 0 0 0 5px #ffd98c07}
.finale-prizes::before{content:'✦';position:absolute;top:-13px;left:calc(50% - 15px);width:30px;background:#8b1730;color:#ffe9b3;font-size:18px}
.finale-prizes span{display:block;color:#f3ce9d;font-size:11px;letter-spacing:.03em;margin-bottom:9px}
.finale-prizes strong{display:block;color:#fff0c5;font:600 30px/1.15 var(--serif);margin-bottom:9px}
.finale-prizes b{display:block;max-width:330px;margin:auto;font-size:14px;line-height:1.6;font-weight:500;color:#ffe3b1}
.finale-invite{font-size:14px;line-height:1.65;color:#fff0db;margin:16px 0}
.raffle-phone-label{display:block;text-align:left;font-size:13px;color:#ffe7b5;margin-bottom:7px}
#raffle-phone{width:100%;min-height:54px;border:1px solid #f6d49a88;border-radius:15px;padding:13px 16px;background:#2c091e59;color:#fff7df;font:17px/1.5 var(--sans);outline-offset:3px}
#raffle-phone::placeholder{color:#e2beaa99}
#raffle-phone-hint{display:block;text-align:left;font-size:11px;color:#f0d0bb;margin:5px 2px 14px}
.raffle-consent{display:flex;gap:10px;text-align:left;font-size:11px;line-height:1.65;color:#e8d1c3;margin:14px 0 20px;cursor:pointer}
.raffle-consent input{flex:none;margin:4px 0 0;width:17px;height:17px;accent-color:#e8c17c}
.raffle-consent a{color:#ffe0a8;text-decoration:underline;text-underline-offset:3px}
#raffle-submit{width:100%;min-height:56px;border-radius:17px;font-size:14px;background:linear-gradient(120deg,#fff0bf,#dfb66e 65%,#f4d99d);color:#4d1723;box-shadow:0 5px 24px #1e061d55,inset 0 1px #fff6d0}
#raffle-submit:disabled{opacity:.65;cursor:wait}
.raffle-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.raffle-status{font-size:13px;color:#ffe7b4;line-height:1.6;margin:12px 0}
.raffle-status:empty{display:none}
.raffle-success{margin:24px 0;padding:18px;border:1px solid #eaca91a6;border-radius:20px;background:#ffe7ad0d;color:#fff0ca}
.raffle-success>span{font-size:31px;color:#ffdf92}
.raffle-success h3{font:500 31px/1.2 var(--serif);margin:4px 0 9px}
.raffle-success p{font-size:13px;line-height:1.7;margin:6px 0}
#raffle-receipt{font-size:11px;letter-spacing:.05em;color:#eacda0}
.finale-results{margin:23px 0 10px!important;color:#f5d69d!important;font-size:12px!important}
.finale-socials{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.finale-socials a{display:block;border:1px solid #e7c37c88;border-radius:14px;padding:12px;color:#ffebc0;font-size:13px;background:#ffd89309}
.finale-socials a:hover{background:#ffe3a71c}
.finale-signature{font:italic 22px/1.3 var(--serif)!important;color:#eaca9c!important;margin:22px 0 0}
.finale-preview-note{font-size:11px!important;padding:10px;border:1px dashed #f2cf9377;border-radius:12px;color:#efcfae!important}
@media(max-width:600px){
  #finale-dialog{width:calc(100% - 20px);border-radius:25px}
  .finale-scroll{max-height:calc(100dvh - 24px)}
  .finale-art{height:180px;border-radius:24px 24px 0 0}
  .finale-content{padding:0 23px 23px}
  #finale-dialog h2{font-size:38px}
  .finale-prizes{margin:21px 0 17px;padding:21px 12px}
  .finale-prizes strong{font-size:28px}
  .finale-prizes b{font-size:13px}
  .finale-open{max-width:calc(100% - 30px);font-size:13px}
}

.advent-snow {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}
.advent-snow .sf-snow-flake {
  position: absolute;
  top: -12px;
  width: var(--snow-size);
  height: var(--snow-size);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 3px #fffb;
  opacity: var(--snow-opacity);
  animation: advent-snowfall 15s linear infinite;
}
@keyframes advent-snowfall {
  to { transform: translate3d(var(--snow-drift), calc(100vh + 24px), 0); }
}
@media (prefers-reduced-motion: reduce) {
  .advent-snow { display: none; }
}
.raffle-rules{font-size:11px;line-height:1.6;color:#e8d1c3;text-align:left;margin:-10px 0 18px}
.raffle-rules a,.advent-disclaimer a{color:#ffe0a8;text-decoration:underline;text-underline-offset:3px}
.advent-disclaimer{max-width:760px;margin:6px auto 44px;padding:0 20px;text-align:center;font-size:12px;line-height:1.65;color:#f6dccbcc}
