@font-face{font-family:"Lobster";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/lobster.woff2") format("woff2")}
:root{
  --bg1:#0b1536; --bg2:#14224f; --ink:#f4efe2; --muted:#b9c0d8;
  --gold:#e8c46a; --gold-d:#c9a24a; --card:#16244f; --card2:#1c2d63; --line:rgba(232,196,106,.35);
}
/* Lora,Georgia has uneven (old-style) digits. These faces borrow just the digits 0-9 from a font with even ones; every letter stays Lora,Georgia. */
@font-face{font-family:"Even Digits";font-weight:400;font-style:normal;unicode-range:U+0030-0039;src:local("Times New Roman"),local("TimesNewRomanPSMT"),local("Times"),local("Noto Serif"),local("NotoSerif-Regular")}
@font-face{font-family:"Even Digits";font-weight:700;font-style:normal;unicode-range:U+0030-0039;src:local("Times New Roman Bold"),local("TimesNewRomanPS-BoldMT"),local("Times-Bold"),local("Noto Serif Bold"),local("NotoSerif-Bold")}
@font-face{font-family:"Even Digits";font-weight:400;font-style:italic;unicode-range:U+0030-0039;src:local("Times New Roman Italic"),local("TimesNewRomanPS-ItalicMT"),local("Times-Italic"),local("Noto Serif Italic"),local("NotoSerif-Italic")}
@font-face{font-family:"Even Digits";font-weight:700;font-style:italic;unicode-range:U+0030-0039;src:local("Times New Roman Bold Italic"),local("TimesNewRomanPS-BoldItalicMT"),local("Times-BoldItalic"),local("Noto Serif Bold Italic"),local("NotoSerif-BoldItalic")}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:#0e1b4c;overscroll-behavior-y:none}   /* solid colour behind everything, so a fast scroll on a phone can never show white */
body{margin:0;min-height:100vh;min-height:100dvh;color:var(--ink);font-family:"Even Digits",Lora,Georgia,"Times New Roman",serif;line-height:1.55;overscroll-behavior-y:none;background:transparent}
/* the night-sky gradient lives on its own fixed layer (a fixed body background stutters and leaves a white strip on Android when the address bar slides away) */
body::before{content:"";position:fixed;left:0;right:0;top:0;bottom:-140px;z-index:-1;pointer-events:none;background:linear-gradient(180deg,var(--bg1) 0%,var(--bg2) 60%,#1b2b5e 100%);will-change:transform}
.sky{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.sky i{position:absolute;width:3px;height:3px;border-radius:50%;background:#fff;opacity:.5;animation:tw 4s ease-in-out infinite}
@keyframes tw{0%,100%{opacity:.15}50%{opacity:.9}}
@media (prefers-reduced-motion:reduce){.sky i{animation:none}}
.hero,main,footer{position:relative;z-index:1}
.langbox{position:absolute;top:12px;right:12px;z-index:3;display:flex;align-items:center;gap:6px;padding:4px 6px 4px 10px;border:1px solid var(--line);border-radius:999px;background:rgba(11,21,54,.7);color:var(--gold)}
.langbox[hidden]{display:none}
.langbox select{background:transparent;color:var(--ink);border:0;font:inherit;font-size:.95rem;padding:6px 4px;cursor:pointer;max-width:42vw}
.langbox select option{color:#111}
.langbox:focus-within{outline:3px solid var(--gold);outline-offset:2px}
.hero{text-align:center;padding:48px 16px 8px;max-width:760px;margin:0 auto}
.star-mark{font-size:46px;color:var(--gold);text-shadow:0 0 24px rgba(232,196,106,.8)}
h1{font-size:clamp(1.8rem,5vw,2.8rem);line-height:1.15;margin:6px 0 12px;color:var(--gold)}
.status{display:inline-block;margin:6px 0 0;padding:8px 16px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.05)}
main{max-width:980px;margin:0 auto;padding:0 16px 24px}
.intro{max-width:700px;margin:28px auto;padding:20px 24px;background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:14px}
.intro{padding:0}
.intro summary{padding:14px 20px;color:var(--gold);font-size:1.1rem;font-weight:bold;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:10px}
.intro summary::-webkit-details-marker{display:none}
.intro summary::after{content:"+";font-size:1.4rem;line-height:1}
.intro[open] summary::after{content:"\2212"}
#introText{padding:0 20px 8px}
.intro p{margin:0 0 10px}
/* Door grid: 3 across on phones, like the cafe calendar. Day 25 gets its own big row. */
.grid{list-style:none;margin:40px -4px 0;padding:0;display:grid;gap:32px 17px;grid-template-columns:repeat(3,1fr)}
@media (min-width:560px){.grid{margin:40px 0 0;grid-template-columns:repeat(4,1fr);gap:38px 22px}}
@media (min-width:860px){.grid{grid-template-columns:repeat(5,1fr);gap:44px 26px}}
.cell{perspective:800px}
/* Each door is an arched wooden door in a gold frame, with a swinging leaf over a scene. */
.door{--face1:#24744c;--face2:#124a31;--bow:#c8202f;--trim:#e8c46a;
  position:relative;display:block;width:100%;aspect-ratio:2/3;border:0;padding:0;cursor:pointer;background:transparent;font:inherit;color:var(--gold);
  border-radius:999px 999px 5px 5px;-webkit-tap-highlight-color:transparent}
.door:not(.locked){--face1:#a8242f;--face2:#650f18;--bow:#f0d27a}
.door:focus-visible,.actions button:focus-visible,.x:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:6px}
.door .frame{position:absolute;inset:-3px;border-radius:999px 999px 8px 8px;background:linear-gradient(145deg,#f8e49a,#b98a2e 48%,#f1d37a);box-shadow:0 6px 16px rgba(0,0,0,.45)}
.door.locked .frame{background:linear-gradient(145deg,#dcc274,#8f6f2a 50%,#d2b25e)}
.door.today .frame,.cell.finale .door:not(.locked) .frame{animation:glow 2.2s ease-in-out infinite}
@keyframes glow{0%,100%{box-shadow:0 6px 16px rgba(0,0,0,.45),0 0 0 0 rgba(232,196,106,.55)}50%{box-shadow:0 6px 16px rgba(0,0,0,.45),0 0 22px 7px rgba(232,196,106,.6)}}

/* what is behind the door: a Bethlehem night scene, a different sky for each day */
.door .back{position:absolute;inset:0;z-index:0;isolation:isolate;border-radius:999px 999px 5px 5px;overflow:hidden;background:var(--sky);color:#fff6dc;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding-bottom:8%}
.door .back.v0{--sky:linear-gradient(#2a1650,#8a3a5a 45%,#f0a050 78%,#ffd98a);--sx:50%;--sy:21%}
.door .back.v1{--sky:linear-gradient(#0a1440,#1d2f7a 55%,#4a6bb8 85%,#d8b36a);--sx:32%;--sy:24%}
.door .back.v2{--sky:linear-gradient(#3a1450,#a04a7a 55%,#f08a6a 85%,#ffd0a0);--sx:68%;--sy:20%}
.door .back.v3{--sky:linear-gradient(#07263a,#145a6a 55%,#3a9a9a 85%,#f4d28a);--sx:42%;--sy:26%}
.door .back.v4{--sky:linear-gradient(#4a2008,#b0561a 50%,#f0a030 80%,#fff0b0);--sx:58%;--sy:22%}
.door .back .scene{position:absolute;inset:0;width:100%;height:100%}
.door .back .bstar{position:absolute;left:var(--sx);top:var(--sy);width:27%;height:auto;transform:translate(-50%,-50%);--starc:#fff1b0;filter:drop-shadow(0 0 5px #ffe9a0) drop-shadow(0 0 12px rgba(255,214,120,.85))}
.door .back::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 58%,rgba(8,6,22,.8))}
/* the big guiding star only appears in the scenes where it belongs */
.door .back .bstar{display:none}
.door .back.sc-bethlehem .bstar,.door .back.sc-manger .bstar,.door .back.sc-town .bstar,.door .back.sc-nativity .bstar,.door .back.sc-shepherds .bstar,.door .back.sc-magi .bstar,.door .back.sc-journey .bstar,.door .back.sc-trek .bstar,.door .back.sc-hurry .bstar,.door .back.sc-gifts .bstar,.door .back.sc-caravan .bstar,.door .back.sc-adore .bstar,.door .back.sc-temple .bstar,.cell.finale .door .back .bstar{display:block}
.door .bd,.door .bt{position:relative;z-index:2;text-align:center}
.door .bd{font:600 11px/1 system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-bottom:3px}
.door .bt{display:block;padding:0 5px;font:600 12px/1.15 "Even Digits",Lora,Georgia,serif;color:#fff6dc;text-shadow:0 1px 3px rgba(0,0,0,.85)}

/* the door itself: a leaf hinged on its left edge */
.door .leaf{position:absolute;inset:0;z-index:1;transform-origin:0 50%;transform-style:preserve-3d;transition:transform .8s cubic-bezier(.2,.8,.2,1)}
.door:not(.locked):not(.opened):hover .leaf{transform:rotateY(-16deg)}
.door.opened .leaf{transform:rotateY(-112deg)}
.door .front,.door .inner{position:absolute;inset:0;border-radius:999px 999px 5px 5px;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.door .front{background:linear-gradient(160deg,var(--face1),var(--face2));text-align:center;
  box-shadow:0 8px 18px rgba(0,0,0,.4),inset 0 0 0 1px rgba(0,0,0,.4),inset 0 0 0 3px rgba(255,255,255,.07)}
.door .inner{transform:rotateY(180deg);background:linear-gradient(90deg,rgba(0,0,0,.35),rgba(0,0,0,0) 40%),var(--face2);box-shadow:inset 0 0 0 4px rgba(0,0,0,.25),inset 0 0 0 5px rgba(232,196,106,.35)}
.door .line{position:absolute;inset:6px;border:1px solid rgba(232,196,106,.85);border-radius:999px 999px 4px 4px;box-shadow:inset 0 0 0 2px rgba(0,0,0,.16);pointer-events:none}
.door .star{position:absolute;left:50%;top:8%;width:15%;height:auto;transform:translateX(-50%);--starc:#f7dc82;filter:drop-shadow(0 0 3px rgba(255,230,150,.85))}
.door .fn{position:absolute;left:0;right:0;top:24%;display:block;color:#f4d98a;
  font:700 clamp(30px,8vw,46px)/1 "Times New Roman",Times,"Noto Serif",serif;font-variant-numeric:lining-nums;text-shadow:0 2px 4px rgba(0,0,0,.55)}
.door .wreath{position:absolute;left:19%;top:55%;width:62%;height:auto}
.door .front::after{content:"";position:absolute;right:10%;top:51%;width:10px;height:10px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#fff3c9,#c9a24a 60%,#8f6c1a);box-shadow:0 1px 3px rgba(0,0,0,.6)}
.door.locked{cursor:not-allowed}
.door.locked .front::after{filter:saturate(.7) brightness(.9)}
.door.locked .back{display:none}
.lock{position:absolute;left:50%;bottom:11%;transform:translateX(-50%);font:500 12px system-ui,sans-serif;letter-spacing:.04em;color:#e4eed6;text-shadow:0 1px 2px rgba(0,0,0,.6);white-space:nowrap;z-index:2}
.door .ft{display:none}
/* once you have opened a door, its title replaces the wreath (pinned to the bottom, so nothing else moves) */
.door.seen .wreath{display:none}
.door.seen .front .ft{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;position:absolute;left:10px;right:10px;bottom:9%;
  font:600 11px/1.25 "Even Digits",Lora,Georgia,serif;color:#fff6dc;text-align:center;text-shadow:0 1px 3px rgba(0,0,0,.7)}
.door.seen:not(.opened) .line::before{content:"\2713";position:absolute;top:17%;left:12%;font:600 14px system-ui,sans-serif;color:var(--gold)}
/* brass hinges on the left edge (right edge when you see the back of the swung-open leaf) */
.hinge{position:absolute;left:-2px;top:40%;width:9px;height:24px;border-radius:2px 3px 3px 2px;
  background:linear-gradient(90deg,#8a6a1a,#f4d98a 45%,#b98f33);box-shadow:0 1px 2px rgba(0,0,0,.6),inset 0 0 0 1px rgba(0,0,0,.25);pointer-events:none}
.hinge.b{top:auto;bottom:14%}
.hinge.r{left:auto;right:-2px}
.hinge::before,.hinge::after{content:"";position:absolute;left:50%;width:3px;height:3px;margin-left:-1.5px;border-radius:50%;background:#5c4310}
.hinge::before{top:4px}.hinge::after{bottom:4px}

/* Day 25: the finale, on its own row, much bigger than the rest, in gold */
.cell.finale{grid-column:1/-1;max-width:220px;justify-self:center;width:100%}
.cell.finale .door:not(.locked){--face1:#f7de92;--face2:#c99a3a;--bow:#c8202f}
.cell.finale .door:not(.locked) .fn{color:#5a3600;text-shadow:0 1px 0 rgba(255,255,255,.55)}
.cell.finale .door:not(.locked) .star{--starc:#b3262f;filter:drop-shadow(0 0 2px rgba(255,255,255,.7))}
.cell.finale .door:not(.locked) .line{border-color:rgba(122,75,0,.8)}
.cell.finale .door:not(.locked).seen .front .ft{color:#4a2d00;text-shadow:none;font-size:17px;bottom:9%}
.cell.finale .fn{font-size:clamp(56px,16vw,84px);top:22%}
.cell.finale .star{width:12%;top:7%}
.cell.finale .front::after{width:16px;height:16px}
.cell.finale .hinge{width:12px;height:38px;top:42%}.cell.finale .hinge.b{top:auto;bottom:12%}
.cell.finale .hinge::before{top:6px}.cell.finale .hinge::after{bottom:6px}
.cell.finale .bt{font-size:18px;padding:0 14px}
.cell.finale .bd{font-size:12px}
.cell.finale .lock{font-size:14px}
@media (prefers-reduced-motion:reduce){.door .leaf{transition:none}.door.today .frame,.cell.finale .door .frame{animation:none}}
footer{text-align:center;padding:24px 16px 56px;color:var(--muted)}
footer a{color:var(--gold)}
.small{font-size:.8rem}
.overlay{position:fixed;inset:0;z-index:10;background:rgba(5,9,25,.82);overflow-y:auto;padding:16px;display:flex;align-items:flex-start;justify-content:center}
.overlay[hidden]{display:none}
/* Pop-up entrance: the backdrop fades in while the card zooms out of the door that was tapped (--zo is set in js/app.js) */
.overlay:not([hidden]){animation:ovIn .4s ease-out backwards}
.overlay:not([hidden]) .reader{transform-origin:var(--zo,50% 22%);animation:readerIn .55s cubic-bezier(.16,1,.3,1) backwards}
.overlay.closing{animation:ovOut .24s ease-in forwards}
.overlay.closing .reader{animation:readerOut .24s ease-in forwards}
@keyframes ovIn{from{background-color:rgba(5,9,25,0)}to{background-color:rgba(5,9,25,.82)}}
@keyframes ovOut{to{background-color:rgba(5,9,25,0)}}
@keyframes readerIn{0%{opacity:0;transform:scale(.55)}55%{opacity:1}100%{opacity:1;transform:scale(1)}}
@keyframes readerOut{to{opacity:0;transform:scale(.94)}}
@media (prefers-reduced-motion:reduce){
  .overlay:not([hidden]) .reader{animation:readerFade .3s ease-out backwards}
  @keyframes readerFade{from{opacity:0}to{opacity:1}}
}
.reader{position:relative;width:100%;max-width:640px;margin:16px auto;padding:28px 24px 24px;border-radius:16px;background:#fbf7ec;color:#222;
  border:3px solid var(--gold-d);box-shadow:0 20px 60px rgba(0,0,0,.6);outline:none}
.x{position:absolute;top:10px;right:12px;width:44px;height:44px;border:0;border-radius:50%;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:#555}
.x::before{content:"\00d7"}
.r-day{margin:0;color:#8a6a1a;font-size:.85rem;text-transform:uppercase;letter-spacing:.1em}
.reader h2{margin:4px 40px 4px 0;font-size:1.6rem;color:#16244f}
.r-ref{margin:0 0 14px;font-weight:bold;color:#8a6a1a}
.r-videowrap{margin:0 0 16px}
.r-videowrap[hidden]{display:none}
.r-speaker{margin:0 0 6px;color:#8a6a1a;font-style:italic}
.r-video{border-radius:14px;overflow:hidden;background:#000;border:2px solid var(--gold-d);box-shadow:0 8px 30px rgba(201,162,74,.45)}
.r-video video{display:block;width:100%;max-height:70vh;background:#000}
.r-video.embed{aspect-ratio:16/9}
.r-video iframe{display:block;width:100%;height:100%;border:0}
.r-text{margin:0 0 16px;padding:12px 16px;border-left:4px solid var(--gold-d);background:#f2ead2;font-size:1.1rem;font-style:italic}
.r-message{font-size:1.05rem}
.r-block{margin-top:14px;padding:12px 16px;background:#ece9f7;border-radius:10px}
.r-block h3{margin:0 0 4px;font-size:.85rem;text-transform:uppercase;letter-spacing:.08em;color:#16244f}
.r-block p{margin:0}
.actions,.nav{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.nav{justify-content:space-between;border-top:1px solid #ddd;padding-top:14px}
.reader button:not(.x){min-height:44px;padding:8px 16px;border-radius:999px;border:1px solid #16244f;background:#fff;color:#16244f;font:inherit;font-size:.95rem;cursor:pointer}
.reader button:not(.x):hover:not(:disabled){background:#16244f;color:#fff}
.reader button:disabled{opacity:.35;cursor:not-allowed}
.share-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.share-links[hidden]{display:none}
.share-links a{padding:8px 14px;border-radius:999px;background:#16244f;color:#fff;text-decoration:none;font-size:.9rem}
@media (max-width:480px){.reader{padding:24px 16px 18px}}

/* Print page */
.print-wrap{max-width:720px;margin:0 auto;padding:24px 16px;position:relative;z-index:1}
.print-day{background:#fbf7ec;color:#222;border:2px solid var(--gold-d);border-radius:12px;padding:20px 22px;margin:18px 0;break-inside:avoid}
.print-day h2{margin:0;color:#16244f}
.print-bar{display:flex;gap:10px;justify-content:center;margin:16px 0}
.print-bar button,.print-bar a{padding:10px 18px;border-radius:999px;border:1px solid var(--gold);background:transparent;color:var(--gold);font:inherit;cursor:pointer;text-decoration:none}
@media print{
  body{background:#fff;color:#000}.sky,.print-bar{display:none}
  h1,.print-wrap h1{color:#16244f}.star-mark{display:none}
  .print-day{border:1px solid #999;background:#fff;page-break-inside:avoid}
  .hero{padding-top:0}
}

.cell.finale .door .back .bstar{left:50%;top:12%;width:20%}

/* "Tap to read" button that appears on a door once it has swung open */
.hint{margin:10px auto 0;max-width:420px;font-size:.9rem;font-style:italic;color:var(--gold)}
.hint[hidden]{display:none}
.door .cta{position:relative;z-index:2;margin-bottom:7px;padding:5px 11px;border-radius:999px;background:linear-gradient(#f8e49a,#d1a645);color:#3a2600;
  font:700 10px/1 system-ui,sans-serif;letter-spacing:.02em;white-space:nowrap;opacity:0;transform:translateY(5px);
  transition:opacity .4s .55s,transform .4s .55s;animation:pulse 1.7s ease-out 1.1s infinite}
.door.opened .cta{opacity:1;transform:none}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(248,228,154,.7)}70%{box-shadow:0 0 0 9px rgba(248,228,154,0)}100%{box-shadow:0 0 0 0 rgba(248,228,154,0)}}
.cell.finale .door .cta{font-size:14px;padding:8px 18px;margin-bottom:10px}
@media (prefers-reduced-motion:reduce){.door .cta{animation:none;transition:none}}

/* ---------- Night-sky pop-up (Design 3). Trial: Day 1 only. ---------- */
.r-head{position:relative}
.r-art{display:none}
.reader.night{background:linear-gradient(180deg,#0a1440 0%,#0f1d52 45%,#14275f 100%);color:#e9e6f4;border:1.5px solid rgba(232,196,106,.75);border-radius:20px;padding:0;overflow:hidden;
  box-shadow:0 24px 70px rgba(0,0,0,.7),0 0 0 1px rgba(0,0,0,.4)}
.reader.night .x{color:#fff;z-index:5;top:12px;right:12px;font-size:30px}
.reader.night .r-head{min-height:230px;padding:26px 22px 18px;overflow:hidden}
.reader.night .r-art{display:block;position:absolute;inset:0;z-index:0;background:var(--sky);
  -webkit-mask-image:linear-gradient(to left,#000 38%,rgba(0,0,0,.0) 92%);mask-image:linear-gradient(to left,#000 38%,rgba(0,0,0,0) 92%)}
.reader.night .r-art svg{position:absolute;right:0;top:0;width:100%;height:100%}
.reader.night .r-art.v0{--sky:linear-gradient(#2a1650,#8a3a5a 45%,#f0a050 78%,#ffd98a)}
.reader.night .r-art.v1{--sky:linear-gradient(#0a1440,#1d2f7a 55%,#4a6bb8 85%,#d8b36a)}
.reader.night .r-art.v2{--sky:linear-gradient(#3a1450,#a04a7a 55%,#f08a6a 85%,#ffd0a0)}
.reader.night .r-art.v3{--sky:linear-gradient(#07263a,#145a6a 55%,#3a9a9a 85%,#f4d28a)}
.reader.night .r-art.v4{--sky:linear-gradient(#4a2008,#b0561a 50%,#f0a030 80%,#fff0b0)}
.reader.night .r-head::after{content:"";position:absolute;left:0;right:0;bottom:0;height:70px;z-index:1;pointer-events:none;background:linear-gradient(rgba(10,20,64,0),#0a1440 92%)}
.reader.night .r-headtext{position:relative;z-index:2;max-width:64%}
.reader.night .r-day{color:#fff;letter-spacing:.14em;font-size:.82rem;text-shadow:0 1px 6px rgba(0,0,0,.6)}
.reader.night .r-day::after{content:"";display:block;width:34px;height:2px;margin-top:9px;background:linear-gradient(90deg,#f0d27a,#c9a24a)}
.reader.night h2{margin:14px 0 8px;font-size:clamp(1.7rem,7vw,2.15rem);line-height:1.12;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.65)}
.reader.night h2 .hl{color:#f0d27a}
.reader.night .r-ref{margin:0;color:#f4efe2;font-weight:600;text-shadow:0 1px 8px rgba(0,0,0,.7)}
.reader.night .r-videowrap,.reader.night .r-text,.reader.night .r-message,.reader.night .r-block,.reader.night .actions,.reader.night .share-links{margin-left:22px;margin-right:22px}
.reader.night .r-text{position:relative;margin-top:20px;margin-bottom:20px;padding:30px 22px 20px;border:1px solid rgba(232,196,106,.38);border-left-width:1px;border-radius:16px;background:rgba(255,255,255,.04);
  color:#f3efe6;font-size:1.14rem;line-height:1.6}
.reader.night .r-text::before{content:"\201C";position:absolute;top:-20px;left:20px;padding:0 10px;font:700 54px/1 Lora,Georgia,serif;color:#f0d27a;background:#0e1b4c}
.reader.night .r-message{color:#e7e4f2;font-size:1.05rem;line-height:1.65}
.reader.night .r-block{background:rgba(255,255,255,.07);color:#e9e6f4}
.reader.night .r-block h3{color:#f0d27a}
.reader.night .r-speaker{color:#f0d27a}
.reader.night .r-video{border-color:#c9a24a}
.reader.night .actions{margin-top:22px;margin-bottom:26px;gap:12px}
.reader.night .actions button{flex:1 1 140px;min-height:52px;padding:10px 18px;border-radius:999px;font-size:1rem;display:inline-flex;align-items:center;justify-content:center;gap:9px;
  background:transparent;border:1.5px solid rgba(244,239,226,.75);color:#f4efe2}
.reader.night .actions button:hover:not(:disabled){background:rgba(255,255,255,.12);color:#fff}
.reader.night #bShare{background:linear-gradient(#f6dc8a,#d6aa4a);border-color:#f0d27a;color:#2a1c00;font-weight:700}
.reader.night #bShare:hover:not(:disabled){background:linear-gradient(#fbe8a8,#e0b658);color:#2a1c00}
.reader.night .actions button::before{content:"";width:19px;height:19px;flex:0 0 19px;background:currentColor;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
.reader.night #bShare{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 13.5l6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E")}
.reader.night #bCopy{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E")}
.reader.night #bListen{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5L6 9H2v6h4l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E")}
.reader.night .share-links{margin-bottom:22px}
.reader.night .share-links a{background:transparent;border:1px solid rgba(240,210,122,.7);color:#f0d27a}
@media (max-width:480px){.reader.night{padding:0}.reader.night .r-headtext{max-width:66%}}

/* refinements to the night-sky pop-up */
.reader.night .r-art{left:auto;right:0;top:0;bottom:0;width:auto;aspect-ratio:100/140;
  -webkit-mask-image:linear-gradient(to left,#000 45%,rgba(0,0,0,0) 100%);mask-image:linear-gradient(to left,#000 45%,rgba(0,0,0,0) 100%)}
.reader.night .r-art svg{inset:0;width:100%;height:100%}
.reader.night .actions button[hidden]{display:none}
.reader.night .r-text{padding:44px 22px 20px}
.reader.night .r-text::before{top:6px;left:18px;padding:0;background:none}
@media (min-width:560px){.reader.night .r-head{min-height:270px}.reader.night .r-headtext{max-width:58%}}

/* the Scripture panel stands out from the card behind it */
.reader.night .r-text{background:linear-gradient(160deg,#2b4699 0%,#1e3380 55%,#192b70 100%);border:1px solid rgba(240,210,122,.7);
  box-shadow:0 10px 26px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.16),inset 0 0 30px rgba(120,150,255,.12);color:#fbf7ec}

/* "DAY 1 OF 25": a heavier, clearer font that stays readable on a small phone */
.r-day{font:800 .95rem/1 system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:.12em}
.reader.night .r-day{font-size:1.02rem;color:#fff;letter-spacing:.14em;text-shadow:0 1px 3px rgba(0,0,0,.85),0 0 12px rgba(0,0,0,.6)}
.reader.night .r-day::after{width:44px;height:3px;border-radius:2px;margin-top:10px}

/* Raised, three-dimensional buttons in the night-sky pop-up, each in its own colour */
.reader.night .actions{gap:18px 12px;padding-bottom:8px}
.reader.night .actions button{border:0;position:relative;top:0;min-height:54px;font-weight:700;letter-spacing:.01em;
  transition:transform .08s ease,box-shadow .08s ease,filter .15s ease}
.reader.night #bListen{background:linear-gradient(#58dcc2 0%,#25aa92 55%,#1a8a76 100%);color:#fff;text-shadow:0 1px 1px rgba(0,60,50,.55);
  box-shadow:0 6px 0 #0e5f51,0 11px 16px rgba(0,0,0,.45),inset 0 2px 0 rgba(255,255,255,.5),inset 0 -3px 6px rgba(0,60,50,.25)}
.reader.night #bShare{background:linear-gradient(#fdeeb4 0%,#efc861 50%,#d9a53e 100%);color:#3a2600;text-shadow:0 1px 0 rgba(255,255,255,.45);
  box-shadow:0 6px 0 #99721a,0 11px 16px rgba(0,0,0,.45),inset 0 2px 0 rgba(255,255,255,.65),inset 0 -3px 6px rgba(140,90,0,.25)}
.reader.night #bCopy{background:linear-gradient(#a9b6ff 0%,#6c7cea 55%,#4f5ccf 100%);color:#fff;text-shadow:0 1px 1px rgba(20,25,100,.55);
  box-shadow:0 6px 0 #313c9a,0 11px 16px rgba(0,0,0,.45),inset 0 2px 0 rgba(255,255,255,.5),inset 0 -3px 6px rgba(20,25,110,.28)}
.reader.night .actions button:hover:not(:disabled){filter:brightness(1.08);background-blend-mode:normal}
.reader.night #bListen:hover:not(:disabled){background:linear-gradient(#58dcc2 0%,#25aa92 55%,#1a8a76 100%);color:#fff}
.reader.night #bShare:hover:not(:disabled){background:linear-gradient(#fdeeb4 0%,#efc861 50%,#d9a53e 100%);color:#3a2600}
.reader.night #bCopy:hover:not(:disabled){background:linear-gradient(#a9b6ff 0%,#6c7cea 55%,#4f5ccf 100%);color:#fff}
.reader.night .actions button:active:not(:disabled){transform:translateY(5px)}
.reader.night #bListen:active:not(:disabled){box-shadow:0 1px 0 #0e5f51,0 3px 6px rgba(0,0,0,.45),inset 0 2px 5px rgba(0,60,50,.4)}
.reader.night #bShare:active:not(:disabled){box-shadow:0 1px 0 #99721a,0 3px 6px rgba(0,0,0,.45),inset 0 2px 5px rgba(140,90,0,.4)}
.reader.night #bCopy:active:not(:disabled){box-shadow:0 1px 0 #313c9a,0 3px 6px rgba(0,0,0,.45),inset 0 2px 5px rgba(20,25,110,.45)}
.reader.night .actions button:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.reader.night .actions button{transition:none}}

/* Softer buttons: a simple gradient, lighter at the top and darker at the bottom (replaces the thick raised look above) */
.reader.night .actions{gap:12px;padding-bottom:0}
.reader.night .actions button{border:0;min-height:52px;text-shadow:none;letter-spacing:0;font-weight:700;transition:filter .15s ease;transform:none}
.reader.night #bListen,.reader.night #bListen:hover:not(:disabled){background:linear-gradient(180deg,#45cdb2 0%,#1e9580 100%);color:#fff;
  box-shadow:0 2px 5px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.3)}
.reader.night #bShare,.reader.night #bShare:hover:not(:disabled){background:linear-gradient(180deg,#f8e08f 0%,#d6a843 100%);color:#2a1c00;
  box-shadow:0 2px 5px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.45)}
.reader.night #bCopy,.reader.night #bCopy:hover:not(:disabled){background:linear-gradient(180deg,#8f9cf2 0%,#505cc9 100%);color:#fff;
  box-shadow:0 2px 5px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.3)}
.reader.night .actions button:hover:not(:disabled){filter:brightness(1.07)}
.reader.night .actions button:active:not(:disabled){transform:none;filter:brightness(.93)}

/* Share panel: the real app logos instead of words */
.share-links{display:block;margin-top:14px}
.share-links[hidden]{display:none}
.share-row{display:flex;gap:16px;justify-content:center;align-items:center;flex-wrap:wrap}
.share-links .sh,.reader.night .share-links .sh{display:inline-flex;width:48px;height:48px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;
  box-shadow:0 3px 8px rgba(0,0,0,.35);transition:transform .12s ease}
.share-links .sh:nth-child(2){border-radius:13px}
.share-links .sh svg{display:block;width:100%;height:100%}
.share-links .sh:hover{transform:translateY(-2px) scale(1.06)}
.share-links .sh:focus-visible{outline:3px solid #f0d27a;outline-offset:3px}
.share-links .sh[hidden]{display:none}
.share-note{margin:12px 0 0;text-align:center;font-size:.9rem;color:#8a6a1a}
.reader.night .share-note{color:#f0d27a}
.share-links .sh[hidden],.reader.night .share-links .sh[hidden]{display:none !important}

/* six logos fit in one row on a phone */
.share-row{gap:8px}
.share-links .sh,.reader.night .share-links .sh{width:44px;height:44px}
.reader.night .share-links{margin-left:16px;margin-right:16px}

/* ---------- Colour schemes for the night-sky pop-up (variables, so each day can have its own) ---------- */
.reader.night{--c1:#0a1440;--c2:#0f1d52;--c3:#14275f;--p1:#2b4699;--p2:#1e3380;--p3:#192b70;--pglow:rgba(120,150,255,.12);--acc:#f0d27a}
.reader.night.theme-plum{--c1:#2a0f3d;--c2:#3b1a56;--c3:#4a2368;--p1:#7a4aa6;--p2:#623888;--p3:#4d2c70;--pglow:rgba(235,170,255,.16);--acc:#ffc98a}
.reader.night{background:linear-gradient(180deg,var(--c1) 0%,var(--c2) 45%,var(--c3) 100%)}
.reader.night .r-head::after{background:linear-gradient(transparent,var(--c1) 92%)}
.reader.night .r-text{background:linear-gradient(160deg,var(--p1) 0%,var(--p2) 55%,var(--p3) 100%);
  box-shadow:0 10px 26px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.16),inset 0 0 30px var(--pglow)}
.reader.night .r-text::before,.reader.night h2 .hl,.reader.night .r-block h3,.reader.night .r-speaker,.reader.night .share-note{color:var(--acc)}
.reader.night .r-day::after{background:linear-gradient(90deg,var(--acc),#c9a24a)}

/* ---------- Colour schemes: one per mood, used by the 25 pop-ups ---------- */
.reader.night.theme-navy{--c1:#0a1440;--c2:#0f1d52;--c3:#14275f;--p1:#2b4699;--p2:#1e3380;--p3:#192b70;--pglow:rgba(120,150,255,.12);--acc:#f0d27a}
.reader.night.theme-plum{--c1:#2a0f3d;--c2:#3b1a56;--c3:#4a2368;--p1:#7a4aa6;--p2:#623888;--p3:#4d2c70;--pglow:rgba(235,170,255,.16);--acc:#ffc98a}
.reader.night.theme-teal{--c1:#05272f;--c2:#0a3a46;--c3:#10505f;--p1:#1f8095;--p2:#186a7c;--p3:#125564;--pglow:rgba(120,235,245,.14);--acc:#ffd98a}
.reader.night.theme-forest{--c1:#0a2a1d;--c2:#113b2a;--c3:#184d37;--p1:#2f8d64;--p2:#257352;--p3:#1d5c42;--pglow:rgba(140,240,180,.13);--acc:#f6e08a}
.reader.night.theme-indigo{--c1:#14123f;--c2:#1f1b5c;--c3:#2b2578;--p1:#4f4ac0;--p2:#3e3aa2;--p3:#312e86;--pglow:rgba(170,160,255,.15);--acc:#f0d27a}
.reader.night.theme-burgundy{--c1:#3a0d1c;--c2:#511428;--c3:#681c35;--p1:#ad3f68;--p2:#8f3256;--p3:#742848;--pglow:rgba(255,160,190,.14);--acc:#ffd0a0}
.reader.night.theme-ember{--c1:#3a1006;--c2:#561a0b;--c3:#70250f;--p1:#b95a2e;--p2:#98472a;--p3:#7b3a1f;--pglow:rgba(255,170,120,.14);--acc:#ffd08a}
.reader.night.theme-amber{--c1:#33240a;--c2:#4a3410;--c3:#5f4415;--p1:#a07826;--p2:#85621d;--p3:#6c4f18;--pglow:rgba(255,215,120,.14);--acc:#ffe27a}
.reader.night.theme-midnight{--c1:#07121f;--c2:#0c1f33;--c3:#112b46;--p1:#2c6194;--p2:#224f7b;--p3:#1b4066;--pglow:rgba(130,200,255,.14);--acc:#f0d27a}

/* the big guiding star in the header, for the scenes that have one */
.reader.night .r-art.v0{--sx:50%;--sy:21%}.reader.night .r-art.v1{--sx:32%;--sy:24%}.reader.night .r-art.v2{--sx:68%;--sy:20%}
.reader.night .r-art.v3{--sx:42%;--sy:26%}.reader.night .r-art.v4{--sx:58%;--sy:22%}
.reader.night .r-art .bstar{position:absolute;left:var(--sx);top:var(--sy);width:26%;height:auto;transform:translate(-50%,-50%);--starc:#fff1b0;
  filter:drop-shadow(0 0 5px #ffe9a0) drop-shadow(0 0 12px rgba(255,214,120,.85))}
.reader.night .r-art .bstar{right:auto;bottom:auto}

/* ---------- Day 25: the finale pop-up ---------- */
.reader.night.theme-royal{--c1:#1a0a33;--c2:#34114e;--c3:#5a1d49;--p1:#6a2d7a;--p2:#552366;--p3:#451b53;--pglow:rgba(255,200,255,.14);--acc:#ffd86a}
.reader.night.finale{border:2px solid #ffd86a;box-shadow:0 0 0 4px rgba(26,10,51,.9),0 0 0 5px rgba(255,216,106,.75),0 0 50px rgba(255,200,90,.35),0 26px 70px rgba(0,0,0,.75);position:relative}
.reader.night.finale .r-head{min-height:310px}
.reader.night.finale .r-headtext{max-width:60%}
.reader.night.finale .r-day{letter-spacing:.2em}
.reader.night.finale h2{font-size:clamp(2rem,9vw,2.7rem)}
.reader.night.finale h2 .hl{background:linear-gradient(100deg,#ffd86a 15%,#fffbe0 38%,#ffc83a 60%,#ffd86a 85%);background-size:260% 100%;-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;text-shadow:none;animation:shimmer 3.6s linear infinite}
@keyframes shimmer{0%{background-position:160% 0}100%{background-position:-60% 0}}
.reader.night.finale .r-text{background:linear-gradient(160deg,#fff6d2 0%,#f7de92 55%,#e8c360 100%);color:#3a2600;font-size:1.28rem;border:2px solid #fff3bd;
  box-shadow:0 0 0 3px rgba(150,104,14,.7),0 14px 32px rgba(0,0,0,.5),0 0 28px rgba(255,216,106,.35),inset 0 1px 0 #fff,inset 0 0 40px rgba(255,255,255,.4)}
.reader.night.finale .r-text::before{color:#a8741a}
.reader.night.finale .r-message{font-size:1.1rem}
.reader.night.finale .r-block{border:1px solid rgba(255,216,106,.55);background:rgba(255,255,255,.08)}
.reader.night.finale .r-block h3{letter-spacing:.2em}
.r-greet{margin:0 22px 26px;text-align:center;font:italic 700 clamp(1.5rem,7vw,2rem)/1.2 Lora,Georgia,"Times New Roman",serif;letter-spacing:.02em;
  background:linear-gradient(90deg,#ffd86a,#fffbe0 50%,#ffc83a);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;filter:drop-shadow(0 2px 8px rgba(0,0,0,.5))}
.r-greet[hidden]{display:none}
.r-twinkle{position:absolute;z-index:1;border-radius:50%;background:#fff6c8;box-shadow:0 0 8px 2px rgba(255,230,140,.85);opacity:0;pointer-events:none;animation:twinkle 3s ease-in-out infinite}
@keyframes twinkle{0%,100%{opacity:0;transform:scale(.4)}50%{opacity:1;transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.reader.night.finale h2 .hl,.reader.night.finale #bShare::after{animation:none}}
.r-greet{margin:0 12px 26px;white-space:nowrap;font-size:clamp(1.25rem,5.8vw,1.9rem)}

/* Day 25: a full-width photograph in the header that fades into the card before the Scripture */
.reader.night.finale .r-head{min-height:460px;padding-bottom:0}
.reader.night.finale .r-art.photo{display:block;position:absolute;inset:0;left:0;right:0;width:auto;aspect-ratio:auto;background:url("../img/day25.webp") 60% 14%/cover no-repeat;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 60%,rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 60%,rgba(0,0,0,0) 100%)}
.reader.night.finale .r-head::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,rgba(14,6,36,.78) 0%,rgba(14,6,36,.45) 38%,rgba(14,6,36,0) 62%)}
.reader.night.finale .r-head::after{height:150px;background:linear-gradient(transparent,var(--c1) 96%)}
.reader.night.finale .r-headtext{z-index:3;max-width:52%}
@media (min-width:560px){.reader.night.finale .r-head{min-height:560px}.reader.night.finale .r-art.photo{background-position:60% 12%}}
/* the finale card is flat in colour behind the photo, so the picture's fade has no visible seam */
.reader.night.finale{background:linear-gradient(180deg,var(--c1) 0,var(--c1) 470px,var(--c2) 1000px,var(--c3) 100%)}
@media (min-width:560px){.reader.night.finale{background:linear-gradient(180deg,var(--c1) 0,var(--c1) 570px,var(--c2) 1100px,var(--c3) 100%)}}

/* ---------- A photograph at the top of a pop-up (any day with a picture in /img) ---------- */
.reader.night.has-photo{background:linear-gradient(180deg,var(--c1) 0,var(--c1) 450px,var(--c2) 1000px,var(--c3) 100%)}
.reader.night.has-photo .r-head{min-height:440px;padding-bottom:0}
.reader.night.has-photo .r-art.photo{display:block;position:absolute;inset:0;left:0;right:0;width:auto;aspect-ratio:auto;background-size:cover;background-repeat:no-repeat;background-position:50% 6%;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 60%,rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 60%,rgba(0,0,0,0) 100%)}
.reader.night.has-photo .r-head::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,rgba(8,10,28,.72) 0%,rgba(8,10,28,.4) 36%,rgba(8,10,28,0) 62%)}
.reader.night.has-photo .r-head::after{height:150px;background:linear-gradient(transparent,var(--c1) 96%)}
.reader.night.has-photo .r-headtext{z-index:3;max-width:52%}
@media (min-width:560px){.reader.night.has-photo{background:linear-gradient(180deg,var(--c1) 0,var(--c1) 570px,var(--c2) 1100px,var(--c3) 100%)}
  .reader.night.has-photo .r-head{min-height:560px}}
/* Day 25 keeps its own picture position */
.reader.night.finale .r-art.photo{background-position:60% 14%}
/* tighter header for photo days; Day 25 keeps its taller one */
.reader.night.has-photo{background:linear-gradient(180deg,var(--c1) 0,var(--c1) 400px,var(--c2) 1000px,var(--c3) 100%)}
.reader.night.has-photo .r-head{min-height:400px}
.reader.night.has-photo .r-art.photo{-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 68%,rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 68%,rgba(0,0,0,0) 100%)}
.reader.night.has-photo .r-head::after{height:110px}
@media (min-width:560px){.reader.night.has-photo{background:linear-gradient(180deg,var(--c1) 0,var(--c1) 520px,var(--c2) 1100px,var(--c3) 100%)}.reader.night.has-photo .r-head{min-height:520px}}
.reader.night.finale{background:linear-gradient(180deg,var(--c1) 0,var(--c1) 470px,var(--c2) 1000px,var(--c3) 100%)}
.reader.night.finale .r-head{min-height:460px}
.reader.night.finale .r-head::after{height:150px}
@media (min-width:560px){.reader.night.finale{background:linear-gradient(180deg,var(--c1) 0,var(--c1) 570px,var(--c2) 1100px,var(--c3) 100%)}.reader.night.finale .r-head{min-height:560px}}

/* a photo day whose title sits on the right-hand side (e.g. when the left of the picture is busy) */
.reader.night.has-photo.title-right .r-head::before{background:linear-gradient(270deg,rgba(8,10,28,.74) 0%,rgba(8,10,28,.42) 38%,rgba(8,10,28,0) 64%)}
.reader.night.has-photo.title-right .r-headtext{margin-left:auto;text-align:right;max-width:50%;padding-top:30px}
.reader.night.has-photo.title-right .r-day::after{margin-left:auto}

/* photo header sizes and fades can be tuned per picture (see PHOTO_FOCUS in js/art.js) */
.reader.night.has-photo:not(.finale){--hh:400px;--fbot:70%;
  background:linear-gradient(180deg,var(--c1) 0,var(--c1) var(--hh),var(--c2) calc(var(--hh) + 600px),var(--c3) 100%)}
@media (min-width:560px){.reader.night.has-photo:not(.finale){--hh:520px}}
.reader.night.has-photo:not(.finale) .r-head{min-height:var(--hh)}
.reader.night.has-photo:not(.finale) .r-art.photo{
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 12%,#000 var(--fbot),rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 12%,#000 var(--fbot),rgba(0,0,0,0) 100%)}

/* "Add this app to your phone" banner */
.install{position:fixed;left:50%;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:20;width:min(520px,calc(100vw - 24px));display:flex;gap:10px;align-items:center;
  padding:12px 14px;border-radius:16px;background:linear-gradient(180deg,#1a2c6b,#0e1a4c);border:1.5px solid rgba(240,210,122,.8);box-shadow:0 12px 32px rgba(0,0,0,.55);color:#f4efe2}
.install[hidden]{display:none}
.install-text{flex:1;display:flex;flex-direction:column;gap:2px;font-size:.9rem;line-height:1.3}
.install-text strong{color:#f0d27a;font-size:1rem}
.install button{border:0;font:inherit;cursor:pointer;border-radius:999px}
#installBtn{padding:10px 18px;background:linear-gradient(180deg,#f8e08f,#d6a843);color:#2a1c00;font-weight:700;white-space:nowrap}
#installBtn[hidden]{display:none}
.install-no{width:44px;height:44px;background:transparent;color:#f4efe2;font-size:1.5rem;line-height:1}
.reader.night.has-photo:not(.finale) .r-head{margin-bottom:var(--pull,0)}
.reader.night.has-photo:not(.finale) .r-videowrap,.reader.night.has-photo:not(.finale) .r-text,.reader.night.has-photo:not(.finale) .r-message,.reader.night.has-photo:not(.finale) .r-block{position:relative;z-index:4}
.reader.night.has-photo .r-day{white-space:nowrap}

/* Close button: a red circle with a white cross, so it clearly reads as "close" */
.x,.reader.night .x{width:44px;height:44px;top:12px;right:12px;border:2px solid rgba(255,255,255,.92);border-radius:50%;font-size:0;color:#fff;cursor:pointer;
  background:linear-gradient(180deg,#f0525b 0%,#c4161f 100%);box-shadow:0 2px 8px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.3);transition:filter .15s ease,transform .1s ease}
.x::before,.x::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:2.5px;margin:-1.25px 0 0 -8px;border-radius:2px;background:#fff}
.x::before{transform:rotate(45deg)}
.x::after{transform:rotate(-45deg)}
.x:hover{filter:brightness(1.1)}
.x:active{transform:scale(.93)}

/* Listen button: top-right corner of the Scripture panel (only shown once a recording has been uploaded for that day) */
.reader.night .r-text.has-listen{padding-top:58px}
.reader.night .r-text #bListen{position:absolute;top:10px;right:12px;z-index:2;height:44px;min-height:0;padding:0 15px 0 12px;display:inline-flex;align-items:center;gap:7px;
  border:0;border-radius:999px;font:700 .92rem/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-style:normal;letter-spacing:0;text-shadow:0 1px 1px rgba(0,60,50,.4);cursor:pointer;
  background:linear-gradient(180deg,#45cdb2 0%,#1e9580 100%);color:#fff;box-shadow:0 2px 6px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.3);transition:filter .15s ease}
.reader.night .r-text #bListen::before{content:"";width:18px;height:18px;flex:0 0 18px;background:currentColor;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
.reader.night .r-text #bListen[hidden]{display:none}
.reader.night .r-text #bListen:hover:not(:disabled){filter:brightness(1.07)}
.reader.night .r-text #bListen:active:not(:disabled){filter:brightness(.93)}
.reader.night .r-text #bListen:focus-visible{outline:3px solid #fff;outline-offset:3px}

/* ---------- Front page header: night sky, bright star, title, village ---------- */
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:400 900;font-display:swap;src:url("../fonts/playfair-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:400 900;font-display:swap;src:url("../fonts/playfair-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
.hero{position:relative;max-width:none;margin:0 auto;padding:14px 0 0;overflow:hidden}
.hero-sparks{position:absolute;left:0;right:0;top:0;height:46%;z-index:0;pointer-events:none}
.hero-sparks svg{position:absolute;width:var(--s);height:var(--s);filter:drop-shadow(0 0 5px rgba(255,226,150,.9));opacity:.55;animation:tw 4.5s ease-in-out infinite}
.bigstar{position:relative;z-index:1;display:block;width:min(36vw,150px);height:auto;margin:0 auto -6px;overflow:visible;animation:bigStar 7s ease-in-out infinite}
@keyframes bigStar{0%,100%{opacity:.93;transform:scale(.97)}50%{opacity:1;transform:scale(1.04)}}
.hero h1{position:relative;z-index:2;margin:0 auto;padding:0 14px;font-family:"Playfair Display","Even Digits",Lora,Georgia,"Times New Roman",serif;font-weight:500;
  font-size:clamp(1.9rem,8vw,3rem);line-height:1.04;letter-spacing:-.005em;color:#ecd08a;font-variant-numeric:lining-nums;font-feature-settings:"lnum" 1}
.hero h1 .tl{display:block}
.hero h1 .tl1{font-size:.8em;font-weight:500;color:#e9cb7c;letter-spacing:.005em;filter:drop-shadow(0 2px 10px rgba(0,0,0,.55))}
.hero h1 .tl2{font-size:1.32em;font-weight:600;line-height:1.02;margin-top:.04em;color:#f1d686;filter:drop-shadow(0 2px 12px rgba(0,0,0,.6))}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .hero h1 .tl2{background:linear-gradient(180deg,#fbeab0 0%,#ecc968 55%,#cfa04a 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
}
.hero h1 .tl3{font-size:1.32em;font-weight:500;line-height:1.02;filter:drop-shadow(0 2px 12px rgba(0,0,0,.55))}
.hero h1 .tl-sm{font-size:.5em;color:#e9cb7c}
.hero h1 .tl-big{color:#fbf6e6}
.hero-scene{position:relative;z-index:1;height:min(78vw,330px);margin:-60px auto 0;max-width:1100px;pointer-events:none;overflow:hidden}
/* the picture and the twinkling windows share one frame that fades at the top and bottom.
   Phones: the picture is shown larger than the screen so the village fills the width; the sky part is cropped off the top. */
.vill-fx{position:absolute;inset:0;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,transparent 1%,rgba(0,0,0,.45) 14%,#000 35%,#000 70%,transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,transparent 1%,rgba(0,0,0,.45) 14%,#000 35%,#000 70%,transparent 100%)}
.vill-fx img{position:absolute;width:168%;max-width:none;height:auto;left:-43%;top:-36%}
.vill-lights{position:absolute;inset:0}
@media (min-width:600px){
  .hero-scene{height:420px}
  .vill-fx{-webkit-mask-image:linear-gradient(to bottom,transparent 0,rgba(0,0,0,.55) 22%,#000 46%,#000 80%,transparent 100%),linear-gradient(to right,transparent 0,#000 9%,#000 91%,transparent 100%);
    -webkit-mask-composite:source-in;mask-image:linear-gradient(to bottom,transparent 0,rgba(0,0,0,.55) 22%,#000 46%,#000 80%,transparent 100%),linear-gradient(to right,transparent 0,#000 9%,#000 91%,transparent 100%);mask-composite:intersect}
  .vill-fx img{inset:0;left:0;top:0;width:100%;height:100%;object-fit:cover;object-position:64% 50%}
}
.hero-divider{position:absolute;left:0;right:0;top:82px;z-index:2;display:flex;align-items:center;justify-content:center;gap:14px}
.hero-divider i{display:block;width:min(24vw,110px);height:1px;background:linear-gradient(90deg,transparent,rgba(236,208,138,.9))}
.hero-divider i:last-child{transform:scaleX(-1)}
.hero-divider svg{width:26px;height:26px;filter:drop-shadow(0 0 7px rgba(255,226,150,.95))}
@media (min-width:860px){.hero{padding-top:40px}.bigstar{width:200px}.hero h1{font-size:3.7rem}.hero-scene{height:460px}}
@media (prefers-reduced-motion:reduce){.bigstar,.hero-sparks svg{animation:none}}
@media print{.hero-sparks,.hero-scene,.bigstar{display:none}.hero{padding-top:0}.hero h1,.hero h1 .tl2,.hero h1 .tl-big,.hero h1 .tl-sm,.hero h1 .tl1{color:#16244f;-webkit-text-fill-color:#16244f;background:none;filter:none}}

.status:empty{display:none}
/* the countdown starts just under the village buildings: it overlaps the faded bottom of the picture instead of the picture being cut off */
.intro[hidden]{display:none}

/* ---------- Live countdown to the next door ---------- */
.cd{position:relative;z-index:3;margin:-56px -6px 4px;padding:0 4px;text-align:center}   /* -56px: starts just under the village buildings */
.cd[hidden],.cd-tiles[hidden],.cd-tile[hidden],.cd-open[hidden],.cd-teaser[hidden]{display:none}
.cd-eyebrow{margin:0 0 12px;font:600 .78rem/1.3 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:.22em;text-transform:uppercase;color:#ecd08a;text-shadow:0 1px 10px rgba(0,0,0,.7)}
.cd-eyebrow:not(:empty)::before,.cd-eyebrow:not(:empty)::after{content:"\2726";margin:0 .7em;font-size:.85em;color:#f6e2a0;text-shadow:0 0 8px rgba(255,226,150,.9)}
.cd-tiles{display:flex;justify-content:center;gap:10px}
.cd-tile{position:relative;flex:1 1 0;max-width:94px;padding:13px 4px 10px;border-radius:15px;overflow:hidden;
  border:1px solid rgba(236,208,138,.8);background:linear-gradient(180deg,rgba(31,48,112,.94) 0%,rgba(12,22,66,.97) 100%);
  box-shadow:0 10px 24px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.2),inset 0 0 20px rgba(232,196,106,.14)}
.cd-tile::after{content:"";position:absolute;top:0;bottom:0;left:-70%;width:45%;pointer-events:none;background:linear-gradient(100deg,transparent,rgba(255,236,170,.3),transparent);transform:skewX(-18deg);animation:cdGlint 7s ease-in-out infinite;animation-delay:var(--gd,0s)}
.cd-num{display:block;font:600 clamp(1.9rem,9.6vw,2.7rem)/1 "Playfair Display","Even Digits",Lora,Georgia,serif;font-variant-numeric:lining-nums tabular-nums;font-feature-settings:"lnum" 1,"tnum" 1;color:#f8de92;text-shadow:0 0 16px rgba(255,214,110,.55)}
.cd-lab{display:block;margin-top:7px;font:600 .75rem/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#b9c0d8}
.cd-tick{animation:cdTick .4s cubic-bezier(.2,.8,.2,1)}
@keyframes cdTick{0%{transform:translateY(-38%);opacity:0}100%{transform:none;opacity:1}}
@keyframes cdGlint{0%,68%{left:-70%}100%{left:135%}}
.cd-teaser{margin:16px auto 0;max-width:26em;text-wrap:balance;padding:0 14px;font-style:italic;font-size:1.02rem;line-height:1.45;color:#d4d9ea;text-shadow:0 1px 10px rgba(0,0,0,.6)}
/* in December: a smaller clock to the next door */
.cd--compact{margin-bottom:0}
.cd--compact .cd-eyebrow{margin-bottom:9px;font-size:.75rem}
.cd--compact .cd-tiles{gap:8px}
.cd--compact .cd-tile{max-width:78px;padding:9px 4px 7px;border-radius:12px}
.cd--compact .cd-num{font-size:clamp(1.5rem,7.4vw,2rem)}
.cd--compact .cd-lab{margin-top:5px;font-size:.7rem}
/* the moment a door opens */
.cd-open{margin:6px auto 4px;padding:6px 10px;font:600 clamp(1.7rem,8vw,2.4rem)/1.1 "Playfair Display","Even Digits",Lora,Georgia,serif;color:#fbe7a6;text-shadow:0 0 22px rgba(255,214,110,.85),0 2px 12px rgba(0,0,0,.6);animation:cdOpenIn 1s cubic-bezier(.16,1,.3,1)}
.cd--open{padding-bottom:6px}
@keyframes cdOpenIn{0%{opacity:0;transform:scale(.7)}100%{opacity:1;transform:none}}
.bigstar.flare{animation:starFlare 2.2s ease-out}
@keyframes starFlare{0%{transform:scale(1);filter:brightness(1)}22%{transform:scale(1.5);filter:brightness(1.9) drop-shadow(0 0 22px rgba(255,226,150,.95))}100%{transform:scale(1);filter:brightness(1)}}
/* doors that are waiting: a soft golden light breathes behind them; the very next door gleams a little more */
.door.locked::before,.door.next::before{content:"";position:absolute;inset:-20px;border-radius:999px 999px 26px 26px;pointer-events:none;opacity:0;
  background:radial-gradient(closest-side,rgba(255,214,120,.9) 70%,rgba(255,214,120,0) 100%)}
body.prelaunch .door.locked::before{opacity:.14;animation:doorBreath 5.5s ease-in-out infinite;animation-delay:var(--d,0s)}
body .door.next.locked::before{opacity:.3;animation:doorBreathNext 3.6s ease-in-out infinite;animation-delay:var(--d,0s)}
@keyframes doorBreath{0%,100%{opacity:.08}50%{opacity:.5}}
@keyframes doorBreathNext{0%,100%{opacity:.25}50%{opacity:.8}}
@media (prefers-reduced-motion:reduce){
  .cd-tile::after,.cd-tick,.cd-open,.bigstar.flare{animation:none}
  body.prelaunch .door.locked::before,.door.next.locked::before{animation:none;opacity:.25}
}
@media (min-width:560px){.cd{margin-left:auto;margin-right:auto}}
@media (min-width:600px){.cd-tile{max-width:108px;padding:16px 6px 12px}.cd-num{font-size:3rem}.cd--compact .cd-tile{max-width:90px}}
@media print{.cd{display:none}}

/* the first-time hint sits between the clock and the doors */
.hint:not([hidden]){position:relative;z-index:3;margin:16px auto 0;padding:0 16px;text-align:center}
.hint:not([hidden]) ~ section .grid{margin-top:22px}


/* =====================================================================================================
   VERSION 2 additions
   ===================================================================================================== */

/* ---------- the village comes alive ---------- */
.vl{position:absolute;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;mix-blend-mode:screen;opacity:0;
  background:radial-gradient(circle,rgba(255,226,152,.95) 0,rgba(255,192,92,.5) 38%,rgba(255,170,70,0) 72%);animation:vlTw var(--t,4s) ease-in-out infinite;animation-delay:var(--d,0s)}
.vl.flick{animation-name:vlFlick}
@keyframes vlTw{0%,100%{opacity:.04}50%{opacity:.8}}
@keyframes vlFlick{0%,100%{opacity:.25}12%{opacity:.8}24%{opacity:.35}38%{opacity:.9}55%{opacity:.4}70%{opacity:.85}85%{opacity:.3}}
.hero-sparks .shoot{position:absolute;width:110px;height:2px;border-radius:2px;pointer-events:none;opacity:0;background:linear-gradient(90deg,rgba(255,255,255,0),#fff);
  filter:drop-shadow(0 0 6px rgba(255,235,170,.9));animation:shootS 1.2s ease-out forwards}
@keyframes shootS{0%{opacity:0;transform:translate(-90px,-34px) rotate(24deg)}15%{opacity:1}100%{opacity:0;transform:translate(170px,76px) rotate(24deg)}}
.bigstar{translate:0 calc(var(--py,0) * .2px)}
.hero-sparks{translate:0 calc(var(--py,0) * .1px)}
@media (prefers-reduced-motion:reduce){.vl{animation:none;opacity:.35}.hero-sparks .shoot{display:none}.bigstar,.hero-sparks{translate:none}}

/* ---------- sound & touch button ---------- */
.fxbtn{position:absolute;top:12px;left:12px;z-index:3;width:44px;height:44px;padding:0;display:grid;place-items:center;border-radius:50%;cursor:pointer;
  border:1px solid var(--line);background:rgba(11,21,54,.7);color:#b9c0d8}
.fxbtn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.fxbtn .fx-spk{fill:currentColor;stroke-width:1.2}
.fxbtn .fx-on{display:none}
.fxbtn.on{color:#f0d27a;border-color:rgba(240,210,122,.8)}
.fxbtn.on .fx-on{display:block}.fxbtn.on .fx-off{display:none}
.fxbtn:focus-visible{outline:3px solid var(--gold);outline-offset:2px}

/* ---------- countdown: bigger small text, "about" line, remind + share ---------- */
.cd-eyebrow{font-size:.8rem}
.cd-lab{font-size:.75rem}
.cd--compact .cd-eyebrow{font-size:.78rem}
.cd--compact .cd-lab{font-size:.72rem}
.cd-about{margin:8px auto 0;padding:0 14px;font-size:.86rem;line-height:1.4;color:#aeb7d4}
.cd-about[hidden],.cd-actions[hidden],.cd-note[hidden]{display:none}
.cd-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:18px auto 0;padding:0 6px}
.cd-actions button{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 18px;border:0;border-radius:999px;cursor:pointer;font:700 .9rem/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:#2a1c00;background:linear-gradient(180deg,#f8e08f,#d6a843);box-shadow:0 2px 6px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.45)}
.cd-actions #bCdShare{color:#fff;background:linear-gradient(180deg,#8f9cf2,#505cc9);box-shadow:0 2px 6px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.3)}
.cd-actions button::before{content:"";width:18px;height:18px;flex:0 0 18px;background:currentColor;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
.cd-actions #bRemind{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='2.5'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4M12 13v4M10 15h4'/%3E%3C/svg%3E")}
.cd-actions #bCdShare{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 13.5l6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E")}
.cd-actions #bPush{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 0 1 12 0c0 6 2.5 7.5 2.5 7.5h-17S6 15 6 9'/%3E%3Cpath d='M10 20a2 2 0 0 0 4 0'/%3E%3C/svg%3E")}
.cd-actions #bPush[hidden]{display:none}
.cd-actions #bPush.on{color:#fff;background:linear-gradient(180deg,#45cdb2,#1e9580)}
#pushYes{min-height:44px;padding:0 16px;font-weight:700;color:#2a1c00;background:linear-gradient(180deg,#f8e08f,#d6a843)}
#pushBar{flex-wrap:wrap;gap:8px}
#pushBar .install-text{flex:1 1 100%}
#pushBar #pushYes{flex:1 1 auto}
#pushBar #pushNo{width:auto;min-width:44px;padding:0 16px;font-size:.9rem;line-height:1;border:1px solid rgba(255,255,255,.35)}
.cd-actions button:active{filter:brightness(.93)}
.cd-actions button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.cd-note{margin:12px auto 0;padding:9px 14px;max-width:26em;border-radius:12px;background:rgba(78,205,196,.16);color:#e9f7f4;font-size:.9rem;line-height:1.4}

/* ---------- today's door first and larger ---------- */
.cell.featured{grid-column:1/-1;order:-1;max-width:224px;justify-self:center;width:100%}
.feat-label{display:block;margin:0 0 14px;text-align:center;font:700 .74rem/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:.26em;text-transform:uppercase;color:#ecd08a;text-shadow:0 1px 8px rgba(0,0,0,.7)}
.feat-label::before,.feat-label::after{content:"\2726";margin:0 .7em;color:#f6e2a0;text-shadow:0 0 8px rgba(255,226,150,.9)}
.cell.featured:not(.finale) .fn{font-size:clamp(56px,16vw,84px);top:22%}
.cell.featured:not(.finale) .star{width:12%;top:7%}
.cell.featured:not(.finale) .front::after{width:16px;height:16px}
.cell.featured:not(.finale) .hinge{width:12px;height:38px;top:42%}.cell.featured:not(.finale) .hinge.b{top:auto;bottom:12%}
.cell.featured:not(.finale) .hinge::before{top:6px}.cell.featured:not(.finale) .hinge::after{bottom:6px}
.cell.featured:not(.finale) .bt{font-size:18px;padding:0 14px}
.cell.featured:not(.finale) .bd{font-size:12px}
.cell.featured:not(.finale) .door.seen .front .ft{font-size:17px;bottom:9%}
.cell.featured:not(.finale) .back .bstar{left:50%;top:12%;width:20%}

/* one tap opens the day by itself now, so the little "Tap to read" button is not needed */
.door .cta{display:none}
.lock{font-size:12px}

/* doors only breathe while they are on screen */
body.prelaunch .door.locked:not(.in-view)::before,body .door.next.locked:not(.in-view)::before{animation:none}

/* ---------- progress / unread ---------- */
.progress{position:relative;z-index:3;margin:16px auto 0;padding:0 16px;text-align:center;font-size:.92rem;line-height:1.5;color:#cdd3ea}
.progress[hidden]{display:none}
.progress button{margin-left:4px;padding:6px 4px;background:none;border:0;font:inherit;font-weight:700;color:#f0d27a;cursor:pointer;text-decoration:underline;text-underline-offset:4px}
.progress button[hidden]{display:none}
.progress:not([hidden]) ~ section .grid{margin-top:22px}
.door.nudge .frame{animation:nudgeG 1.1s ease-in-out 2}
@keyframes nudgeG{0%,100%{box-shadow:0 6px 16px rgba(0,0,0,.45),0 0 0 0 rgba(240,210,122,0)}50%{box-shadow:0 6px 16px rgba(0,0,0,.45),0 0 28px 10px rgba(240,210,122,.85)}}

/* ---------- pop-up: text size, picture button, previous / next, finished message, finale rays ---------- */
.reader button.rsize{position:absolute;top:12px;right:62px;z-index:5;width:44px;height:44px;min-height:0;padding:0;display:grid;place-items:center;border-radius:50%;cursor:pointer;
  border:1.5px solid rgba(255,255,255,.75);background:rgba(10,20,64,.6);color:#fff;font:700 15px/1 "Playfair Display",Lora,Georgia,serif;box-shadow:0 2px 8px rgba(0,0,0,.5)}
.reader button.rsize::after{content:"";position:absolute;bottom:6px;left:50%;width:calc(7px + var(--lv,0) * 5px);height:2px;border-radius:2px;background:#f0d27a;transform:translateX(-50%)}
.rsize[data-level="1"]{--lv:1}.rsize[data-level="2"]{--lv:2}
html[data-fs="1"] .reader.night .r-text{font-size:1.3rem}html[data-fs="1"] .reader.night .r-message{font-size:1.2rem}
html[data-fs="2"] .reader.night .r-text{font-size:1.5rem}html[data-fs="2"] .reader.night .r-message{font-size:1.36rem}
.reader.night #bPic{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2.5'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E")}
.reader.night #bPic,.reader.night #bPic:hover:not(:disabled){background:linear-gradient(180deg,#7fd0ee 0%,#2f86b8 100%);color:#fff;box-shadow:0 2px 5px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.3)}
.reader.night #bPic:disabled{opacity:.7;cursor:progress}
.reader.night .r-nav{margin:0 22px 26px;display:flex;gap:12px}
.reader.night .r-nav[hidden],.reader.night .r-nav button[hidden]{display:none}
.reader.night .r-nav button{flex:0 1 48%;min-height:48px;padding:8px 14px;border-radius:999px;border:1.5px solid rgba(244,239,226,.55);background:transparent;color:#f4efe2;font-weight:600;font-size:.98rem;cursor:pointer}
.reader.night .r-nav button:hover:not(:disabled){background:rgba(255,255,255,.12);color:#fff}
.reader.night .r-nav #bNext{margin-left:auto}
.r-done{margin:-8px 22px 26px;text-align:center;font-style:italic;font-size:1.04rem;line-height:1.5;color:#f3e3a6}
.r-done[hidden]{display:none}
.r-rays{position:absolute;left:80%;top:14%;width:170%;aspect-ratio:1;z-index:1;pointer-events:none;opacity:.5;mix-blend-mode:screen;transform:translate(-50%,-50%);
  background:repeating-conic-gradient(from 0deg,rgba(255,226,150,0) 0 7deg,rgba(255,226,150,.22) 8.5deg,rgba(255,226,150,0) 10deg);
  -webkit-mask-image:radial-gradient(closest-side,#000 6%,transparent 70%);mask-image:radial-gradient(closest-side,#000 6%,transparent 70%);animation:raysSpin 80s linear infinite}
@keyframes raysSpin{to{transform:translate(-50%,-50%) rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.r-rays{animation:none}.door.nudge .frame{animation:none}}
@media print{.fxbtn,.cd-actions,.progress,.vill-lights,.rsize{display:none}}

/* ---------- 13 Oct: round action buttons (Share / Copy link / Save as picture) and balanced Day buttons ---------- */
.reader.night .actions{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:26px 16px 0;padding:0}
.reader.night .actions button,.reader.night .actions button:hover:not(:disabled){flex:none;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;
  min-height:0;padding:0 2px;border:0;border-radius:0;background:none !important;box-shadow:none !important;filter:none;color:#fff;text-shadow:none !important;
  font:700 1.02rem/1.15 "Avenir Next","Trebuchet MS","Segoe UI",system-ui,sans-serif;text-align:center;letter-spacing:.01em;cursor:pointer;-webkit-tap-highlight-color:transparent}
.reader.night .actions button::before{content:"";display:block;flex:0 0 auto;width:66px;height:66px;border-radius:50%;margin:0;-webkit-mask:none;mask:none;
  background:var(--ic) center/46% no-repeat,var(--bg);box-shadow:0 5px 14px var(--glow),inset 0 2px 3px rgba(255,255,255,.5),inset 0 -3px 6px rgba(0,0,0,.18);transition:transform .12s ease}
.reader.night .actions button:hover::before{transform:translateY(-2px)}
.reader.night .actions button:active::before{transform:scale(.95)}
.reader.night .actions button:disabled{opacity:.7;cursor:progress}
.reader.night .actions #bShare{--bg:linear-gradient(180deg,#fbe38a 0%,#e0a93a 100%);--glow:rgba(240,190,70,.55);
  --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1c00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 13.5l6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E")}
.reader.night .actions #bCopy{--bg:linear-gradient(180deg,#7f95ff 0%,#2f46d8 100%);--glow:rgba(80,110,255,.55);
  --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E")}
.reader.night .actions #bPic{--bg:linear-gradient(180deg,#4fe0f0 0%,#0aa4c8 100%);--glow:rgba(40,200,230,.5);
  --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Ccircle cx='9' cy='9' r='1.7'/%3E%3Cpath d='M21 16l-5-5-8 9'/%3E%3C/svg%3E")}
.reader.night .actions button:focus-visible{outline:3px solid #fff;outline-offset:4px;border-radius:14px}
.reader.night .share-links{margin-top:20px;margin-bottom:0}

.reader.night .r-nav{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:stretch;margin:24px 22px 30px;padding-top:22px;border-top:1px solid rgba(110,165,255,.6)}
.reader.night .r-nav[hidden]{display:none}
.reader.night .r-nav #bPrev{grid-column:1;margin:0}
.reader.night .r-nav #bNext{grid-column:2;margin:0}
.reader.night .r-nav button,.reader.night .r-nav button:hover:not(:disabled){position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;flex:none;width:auto;height:58px;min-height:58px;padding:0 12px;
  border:2px solid #e8b94c;border-radius:999px;background:linear-gradient(180deg,#223a8f 0%,#0b1850 100%);color:#fff;
  box-shadow:0 0 16px rgba(240,195,85,.35),inset 0 1px 0 rgba(255,255,255,.2);
  font:700 1.18rem/1 "Avenir Next","Trebuchet MS","Segoe UI",system-ui,sans-serif;letter-spacing:.02em;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
.reader.night .r-nav button[hidden]{display:none !important}
.reader.night .r-nav button:hover:not(:disabled){filter:brightness(1.12)}
.reader.night .r-nav button:active{transform:scale(.97)}
.reader.night .r-nav button:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media (max-width:480px){.reader.night .actions{margin-left:10px;margin-right:10px}.reader.night .r-nav{margin-left:16px;margin-right:16px;gap:10px}.reader.night .r-nav button{font-size:1.1rem}}
.reader.night .actions #bShare,.reader.night .actions #bShare:hover:not(:disabled){color:#fff !important}
.reader.night .r-nav .ch{position:absolute;top:50%;transform:translateY(-54%);font-size:2.1rem;line-height:1;color:#f0c85a;font-weight:400}
.reader.night .r-nav #bPrev .ch{left:20px}.reader.night .r-nav #bNext .ch{right:20px}
.reader.night .r-nav button{padding:0 38px}

/* ---------- "Help us reach a million people" card at the foot of the page ---------- */
.goal{max-width:480px;margin:0 auto 30px;padding:26px 22px 24px;border-radius:22px;text-align:center;color:#f4efe2;
  background:linear-gradient(180deg,rgba(32,52,130,.78) 0%,rgba(12,24,76,.86) 100%);border:1.5px solid rgba(232,185,76,.75);
  box-shadow:0 0 28px rgba(240,195,85,.22),inset 0 1px 0 rgba(255,255,255,.14)}
.goal[hidden]{display:none}
.goal-star{display:block;width:26px;height:26px;margin:0 auto 10px;filter:drop-shadow(0 0 8px rgba(255,220,120,.8))}
.goal-title{margin:0 0 14px;font:600 clamp(1.35rem,6vw,1.75rem)/1.2 "Playfair Display","Even Digits",Lora,Georgia,serif;color:#f6e2a0}
.goal-count{margin:0 0 10px;font:600 .95rem/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#ecd08a}
.goal-count b{display:block;margin-bottom:4px;font:700 clamp(2.3rem,12vw,3.2rem)/1 "Playfair Display","Even Digits",Lora,Georgia,serif;letter-spacing:0;text-transform:none;color:#fff;
  font-variant-numeric:lining-nums tabular-nums;text-shadow:0 0 18px rgba(255,214,110,.55)}
.goal-bar{height:12px;margin:0 auto 14px;border-radius:999px;background:rgba(255,255,255,.14);box-shadow:inset 0 1px 3px rgba(0,0,0,.45);overflow:hidden}
.goal-bar i{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#f6dc8a,#e0a93a);box-shadow:0 0 12px rgba(255,210,100,.7);transition:width 1.4s cubic-bezier(.16,1,.3,1)}
.goal-sub{margin:0 0 18px;font-size:1rem;line-height:1.5;color:#e7e4f2}
.goal-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 26px;border:0;border-radius:999px;cursor:pointer;
  background:linear-gradient(180deg,#fbe38a 0%,#e0a93a 100%);color:#2a1c00;font:700 1.05rem/1 "Avenir Next","Trebuchet MS","Segoe UI",system-ui,sans-serif;
  box-shadow:0 4px 14px rgba(240,190,70,.45),inset 0 1px 0 rgba(255,255,255,.55);-webkit-tap-highlight-color:transparent}
.goal-btn::before{content:"";width:20px;height:20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1c00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 13.5l6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E") center/contain no-repeat}
.goal-btn:hover{filter:brightness(1.06)}.goal-btn:active{filter:brightness(.94)}
.goal-btn:focus-visible{outline:3px solid #fff;outline-offset:3px}
.goal-note{margin:12px 0 0;font-size:.92rem;color:#f0d27a}
.goal-demo{margin:14px 0 0;font-size:.78rem;letter-spacing:.04em;color:#9fb0e6}
.goal-note[hidden],.goal-demo[hidden],.goal-count[hidden],.goal-bar[hidden]{display:none}
@media print{.goal{display:none}}

/* small message for a door that is not open yet */
.toast{position:fixed;left:50%;bottom:max(22px,env(safe-area-inset-bottom));z-index:40;max-width:min(92vw,420px);padding:12px 20px;border-radius:999px;text-align:center;
  background:rgba(14,26,76,.96);color:#f6ecc8;border:1.5px solid rgba(232,185,76,.8);box-shadow:0 8px 26px rgba(0,0,0,.5);font-size:.98rem;line-height:1.35;
  opacity:0;transform:translate(-50%,16px);pointer-events:none;transition:opacity .25s ease,transform .25s ease}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media (prefers-reduced-motion:reduce){.toast{transition:none}}

/* ---------- stepping-stone goal bar: five equal sections (1M, 2M, 3M...) ---------- */
.goal-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin:0 auto 6px}
.goal-steps[hidden]{display:none}
.goal-steps .gs{position:relative;padding-bottom:22px}
.goal-steps .gs i{display:block;height:12px;width:0;border-radius:999px;background:linear-gradient(90deg,#f6dc8a,#e0a93a);box-shadow:0 0 10px rgba(255,210,100,.6);transition:width 1.4s cubic-bezier(.16,1,.3,1);position:relative;z-index:1}
.goal-steps .gs::before{content:"";position:absolute;left:0;right:0;top:0;height:12px;border-radius:999px;background:rgba(255,255,255,.14);box-shadow:inset 0 1px 3px rgba(0,0,0,.45)}
.goal-steps .gl{position:absolute;left:0;right:0;bottom:0;text-align:center;font:600 .78rem/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:.04em;color:#8e9bc9}
.goal-steps .gs.now .gl{color:#fff;font-weight:700}
.goal-steps .gs.done .gl{color:#f0d27a}
.goal-steps .gs:not(.done):not(.now) i{box-shadow:none}
.goal-nextline{margin:2px 0 14px;font-size:.88rem;color:#c9d2f0}

/* ---------- thank-you pop-up when a milestone is reached ---------- */
.cele{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(5,9,30,.82);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:celeIn .35s ease}
.cele[hidden]{display:none}
@keyframes celeIn{from{opacity:0}to{opacity:1}}
.cele-card{position:relative;overflow:hidden;width:min(100%,420px);padding:34px 24px 26px;border-radius:24px;text-align:center;color:#f4efe2;
  background:linear-gradient(180deg,#27409a 0%,#0d1a52 100%);border:2px solid #e8b94c;box-shadow:0 0 0 5px rgba(232,185,76,.18),0 0 44px rgba(240,195,85,.35),0 24px 60px rgba(0,0,0,.6);animation:celeUp .5s cubic-bezier(.16,1,.3,1)}
@keyframes celeUp{from{opacity:0;transform:translateY(24px) scale(.96)}to{opacity:1;transform:none}}
.cele-card.big{background:linear-gradient(180deg,#4a2a8a 0%,#1a1250 55%,#0d1a52 100%);box-shadow:0 0 0 5px rgba(232,185,76,.28),0 0 70px rgba(255,214,110,.55),0 24px 60px rgba(0,0,0,.6)}
.cele-star{position:relative;z-index:1;display:block;width:42px;height:42px;margin:0 auto 12px;filter:drop-shadow(0 0 12px rgba(255,220,120,.95))}
.cele-card.big .cele-star{width:60px;height:60px}
.cele-title{position:relative;z-index:1;margin:0 0 12px;font:600 clamp(1.7rem,8vw,2.2rem)/1.15 "Playfair Display","Even Digits",Lora,Georgia,serif;color:#f6e2a0}
.cele-card.big .cele-title{font-size:clamp(2rem,9.5vw,2.7rem);background:linear-gradient(100deg,#ffd86a 15%,#fffbe0 40%,#ffc83a 62%,#ffd86a 85%);background-size:260% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;animation:shimmer 3.6s linear infinite}
.cele-text{position:relative;z-index:1;margin:0 0 14px;font-size:1.05rem;line-height:1.55;color:#e7e4f2}
.cele-next{position:relative;z-index:1;margin:0 0 20px;font:600 1.25rem/1.3 "Playfair Display","Even Digits",Lora,Georgia,serif;color:#ffe9a8}
.cele-next[hidden]{display:none}
.cele .goal-btn{position:relative;z-index:1}
.cele-close{position:relative;z-index:1;display:block;margin:14px auto 0;padding:10px 20px;border:0;background:none;color:#c9d2f0;font:600 1rem/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;text-decoration:underline;cursor:pointer}
.cele-close:focus-visible{outline:3px solid #fff;outline-offset:3px;border-radius:8px}
.cele-stars{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.cele-stars i{position:absolute;top:-16px;width:var(--sz,10px);height:var(--sz,10px);background:#f6e2a0;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);opacity:.9;animation:celeFall 3.6s linear infinite}
@keyframes celeFall{0%{transform:translateY(0) rotate(0);opacity:0}10%{opacity:.95}100%{transform:translateY(520px) rotate(220deg);opacity:0}}
@media (prefers-reduced-motion:reduce){.cele,.cele-card{animation:none}.cele-card.big .cele-title{animation:none}}
@media print{.cele{display:none}}

/* ---------- footer line + the "get in touch" page ---------- */
footer .made{margin:6px 0 4px;font-style:italic;color:#d6dcf4}
.contact-page{background:linear-gradient(180deg,var(--bg1) 0%,var(--bg2) 60%,#1b2b5e 100%);min-height:100vh;color:var(--ink)}
.contact-wrap{max-width:560px;margin:0 auto;padding:22px 20px 60px;text-align:center}
.contact-back{margin:0 0 18px;text-align:left}
.contact-back a{color:#f0d27a;text-decoration:none;font-weight:600}
.contact-title{margin:0 0 14px;font:600 clamp(1.7rem,7vw,2.3rem)/1.2 "Playfair Display","Even Digits",Lora,Georgia,serif;color:#f6e2a0}
.contact-lead{margin:0 0 24px;font-size:1.05rem;line-height:1.6;color:#e7e4f2}
.contact-form{text-align:left;padding:22px 18px 24px;border-radius:20px;background:linear-gradient(180deg,rgba(32,52,130,.7),rgba(12,24,76,.82));border:1.5px solid rgba(232,185,76,.7);box-shadow:0 0 26px rgba(240,195,85,.18)}
.contact-form label{display:block;margin:14px 0 6px;font:600 .95rem/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#f4efe2}
.contact-form label:first-child{margin-top:0}
.contact-form label span{font-weight:400;color:#aeb8de}
.contact-form input,.contact-form select,.contact-form textarea{width:100%;padding:12px 14px;border:1px solid rgba(240,210,122,.5);border-radius:12px;background:rgba(5,10,40,.55);color:#fff;font:1rem/1.4 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.contact-form textarea{resize:vertical;min-height:130px}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{outline:3px solid rgba(240,210,122,.6);outline-offset:1px}
.contact-form select option{color:#111}
.contact-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:480px){.contact-row{grid-template-columns:1fr}}
.contact-hp{position:absolute;left:-5000px;width:1px;height:1px;overflow:hidden}
.contact-note{margin:16px 0 0;font-size:.88rem;line-height:1.5;color:#aeb8de}
.contact-err{margin:14px 0 0;padding:10px 14px;border-radius:12px;background:rgba(220,70,70,.18);color:#ffd3d3;font-size:.95rem}
.contact-err[hidden],.contact-done[hidden]{display:none}
.contact-form .goal-btn{display:flex;margin:20px auto 0;width:100%;max-width:300px}
.contact-form .goal-btn::before{display:none}
.contact-form .goal-btn:disabled{opacity:.7;cursor:progress}
.contact-done{padding:30px 10px}

/* ---------- 13 Oct: today's door a third smaller; soft white glow under the round buttons ---------- */
.cell.featured{max-width:150px}
.cell.featured:not(.finale) .fn{font-size:clamp(38px,11vw,56px)}
.cell.featured:not(.finale) .front::after{width:11px;height:11px}
.cell.featured:not(.finale) .hinge{width:8px;height:26px}
.cell.featured:not(.finale) .bt{font-size:13px;padding:0 10px}
.cell.featured:not(.finale) .bd{font-size:11px}
.cell.featured:not(.finale) .door.seen .front .ft{font-size:12px}
.feat-label{margin-bottom:10px}
.reader.night .actions button::before{box-shadow:0 3px 8px rgba(255,255,255,.2),inset 0 2px 3px rgba(255,255,255,.5),inset 0 -3px 6px rgba(0,0,0,.18)}
/* finale (Day 25): the Scripture panel can be lifted with --pull too */
.reader.night.finale .r-head{margin-bottom:var(--pull,0)}
.reader.night.finale .r-videowrap,.reader.night.finale .r-text,.reader.night.finale .r-message,.reader.night.finale .r-block{position:relative;z-index:4}

/* ---------- back-to-the-top Christmas tree ---------- */
.totop{position:fixed;left:max(14px,env(safe-area-inset-left));bottom:max(16px,env(safe-area-inset-bottom));z-index:8;width:62px;height:70px;padding:0;border:0;background:none;cursor:pointer;
  opacity:0;transform:translateY(14px) scale(.85);transition:opacity .25s ease,transform .25s ease;-webkit-tap-highlight-color:transparent;filter:drop-shadow(0 3px 8px rgba(0,0,0,.55)) drop-shadow(0 0 10px rgba(255,235,160,.35))}
.totop[hidden]{display:none}
.totop.on{opacity:1;transform:none}
.totop svg{display:block;width:100%;height:100%;overflow:visible}
.totop:hover{filter:drop-shadow(0 3px 8px rgba(0,0,0,.55)) drop-shadow(0 0 14px rgba(255,235,160,.6))}
.totop:active{transform:scale(.94)}
.totop:focus-visible{outline:3px solid #fff;outline-offset:3px;border-radius:14px}
@media (prefers-reduced-motion:reduce){.totop{transition:none}}
@media print{.totop{display:none}}

/* ---------- slim "views so far" line near the top of the page ---------- */
.goal-top{display:flex;align-items:center;justify-content:center;gap:9px;width:fit-content;max-width:calc(100% - 28px);margin:6px auto 14px;padding:9px 16px;border-radius:999px;text-align:center;text-decoration:none;
  color:#f6e2a0;font:600 .9rem/1.25 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:.01em;background:rgba(14,26,76,.72);border:1px solid rgba(232,185,76,.65);box-shadow:0 0 14px rgba(240,195,85,.18);-webkit-tap-highlight-color:transparent}
.goal-top[hidden]{display:none}
.goal-top svg{flex:0 0 14px;width:14px;height:14px;filter:drop-shadow(0 0 5px rgba(255,220,120,.9))}
.goal-top i{flex:0 0 auto;width:8px;height:8px;margin:-3px 0 0 2px;border-right:2.5px solid #f0c85a;border-bottom:2.5px solid #f0c85a;transform:rotate(45deg);animation:goalNudge 2.2s ease-in-out infinite}
@keyframes goalNudge{0%,100%{transform:translateY(0) rotate(45deg)}50%{transform:translateY(3px) rotate(45deg)}}
.goal-top:hover{border-color:#f6dc8a;color:#fff}
.goal-top:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.goal-top i{animation:none}}
@media print{.goal-top{display:none}}
.goal-top{font-size:.8rem;gap:7px;padding:9px 13px}

/* ---------- today's door: always about 30% larger than the other doors, on any screen ---------- */
@supports (width:1cqw){
  .grid{container-type:inline-size;--cols:3;--gap:17px}
  @media (min-width:560px){.grid{--cols:4;--gap:22px}}
  @media (min-width:860px){.grid{--cols:5;--gap:26px}}
  .cell.featured{--fw:calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 1.3);width:var(--fw);max-width:none}
  .cell.featured:not(.finale) .fn{font-size:calc(var(--fw) * .3)}
  .cell.featured:not(.finale) .front::after{width:calc(var(--fw) * .073);height:calc(var(--fw) * .073)}
  .cell.featured:not(.finale) .hinge{width:calc(var(--fw) * .054);height:calc(var(--fw) * .17)}
  .cell.featured:not(.finale) .bt{font-size:max(12px,calc(var(--fw) * .087))}
  .cell.featured:not(.finale) .bd{font-size:max(11px,calc(var(--fw) * .06))}
  .cell.featured:not(.finale) .door.seen .front .ft{font-size:calc(var(--fw) * .08)}
  /* door 25: only a little bigger than today's door (1.55 x a normal door, today is 1.3 x) */
  .cell.finale{--fw:calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 1.55);width:var(--fw);max-width:none}
  .cell.finale .fn{font-size:calc(var(--fw) * .3)}
  .cell.finale .front::after{width:calc(var(--fw) * .073);height:calc(var(--fw) * .073)}
  .cell.finale .hinge{width:calc(var(--fw) * .054);height:calc(var(--fw) * .17)}
  .cell.finale .bt{font-size:max(12px,calc(var(--fw) * .087))}
  .cell.finale .bd{font-size:max(11px,calc(var(--fw) * .06))}
  .cell.finale .lock{font-size:max(12px,calc(var(--fw) * .07))}
  .cell.finale .door:not(.locked).seen .front .ft{font-size:calc(var(--fw) * .08)}
}


/* ---------- no grey flash when a button is tapped (keyboard focus rings stay) ---------- */
*{-webkit-tap-highlight-color:transparent}
button,a,[role="button"],.door,.x,.rsize{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}
button:focus:not(:focus-visible),a:focus:not(:focus-visible),.door:focus:not(:focus-visible),.x:focus:not(:focus-visible){outline:none}

/* ---------- one long goal bar: the next target is at its end ---------- */
.goal-steps{grid-template-columns:1fr;gap:0;margin:2px auto 4px}
.goal-steps .gs.one{padding-bottom:26px}
.goal-steps .gs.one i{height:16px}
.goal-steps .gs.one::before{height:16px}
.goal-steps .gs.one .gl{left:auto;right:0;text-align:right;font-size:.95rem;font-weight:700;color:#f6e2a0;letter-spacing:.06em}
.goal-steps .gs.one .gl::before{content:"\2726\00a0";color:#f6e2a0}

/* ---------- thank-you pop-up: a round close button and a proper "continue" button ---------- */
.cele-x{position:absolute;top:12px;right:12px;z-index:3;width:44px;height:44px;padding:0;border-radius:50%;border:1.5px solid rgba(240,210,122,.85);cursor:pointer;
  background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.04));box-shadow:0 2px 10px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.25);transition:background .15s ease,transform .1s ease}
.cele-x::before,.cele-x::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:2.5px;border-radius:2px;background:#f6e2a0;transform:translate(-50%,-50%) rotate(45deg)}
.cele-x::after{transform:translate(-50%,-50%) rotate(-45deg)}
.cele-x:hover{background:rgba(255,255,255,.22)}
.cele-x:active{transform:scale(.92)}
.cele-x:focus-visible{outline:3px solid #fff;outline-offset:3px}
.cele-btn{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;width:100%;max-width:300px;min-height:48px;margin:14px auto 0;padding:0 22px;border-radius:999px;cursor:pointer;
  background:rgba(255,255,255,.06);border:1.5px solid rgba(240,210,122,.75);color:#f6e2a0;font:600 1rem/1 "Avenir Next","Trebuchet MS","Segoe UI",system-ui,sans-serif;letter-spacing:.01em;text-decoration:none;
  transition:background .15s ease,transform .1s ease}
.cele-btn:hover{background:rgba(255,255,255,.14);color:#fff}
.cele-btn:active{transform:scale(.97)}
.cele-btn:focus-visible{outline:3px solid #fff;outline-offset:3px}

/* ---------- About page ---------- */
.about-wrap{max-width:640px;text-align:left}
.about-wrap .contact-title,.about-wrap .contact-lead,.about-wrap .goal-star{text-align:center}
.about-wrap .goal-star{margin-left:auto;margin-right:auto}
.about-sec{margin:0 0 26px;padding:22px 20px;border-radius:18px;background:linear-gradient(180deg,rgba(32,52,130,.5),rgba(12,24,76,.62));border:1px solid rgba(232,185,76,.4)}
.about-sec h2{margin:0 0 10px;font:600 1.35rem/1.25 "Playfair Display","Even Digits",Lora,Georgia,serif;color:#f6e2a0}
.about-sec h3{margin:16px 0 4px;font:700 1rem/1.3 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#f4efe2}
.about-sec p,.about-sec li{font-size:1.04rem;line-height:1.65;color:#e7e4f2}
.about-sec p{margin:0 0 12px}.about-sec p:last-child{margin-bottom:0}
.about-sec ul{margin:0;padding-left:1.2em}.about-sec li{margin:0 0 8px}
.about-faq h3:first-of-type{margin-top:4px}
.about-btn{display:inline-flex;text-decoration:none;margin-top:6px}
.about-end{text-align:center;margin:30px 0 0}
.about-btn::before{display:none}
@media print{.about-page{background:#fff;color:#000}}

/* ---------- About and feedback pages shown inside the calendar page ---------- */
.pg{transition:opacity .28s ease}
.pg.fade{opacity:0}
.pg[hidden]{display:none}
.subview{position:relative;z-index:1;min-height:100vh;opacity:0;transition:opacity .28s ease}
.subview.show{opacity:1}
.subview[hidden]{display:none}
.subview .contact-title:focus{outline:none}
body.sub-open .totop{display:none}
@media (prefers-reduced-motion:reduce){.pg,.subview{transition:none}}
@media print{.subview{display:none}}
body.sub-open .fxbtn{display:none}

/* ---------- footer redesign (from William's ChatGPT design) ---------- */
footer.foot{position:relative;overflow:hidden;padding:30px 18px 150px;color:#b9c4ea}
footer.foot .goal{position:relative;z-index:1}
.foot-div{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:16px;max-width:520px;margin:6px auto 22px}
.foot-div i{flex:1;height:1.5px}
.foot-div.gold i:first-child{background:linear-gradient(90deg,transparent,#e8b94c)}
.foot-div.gold i:last-child{background:linear-gradient(270deg,transparent,#e8b94c)}
.foot-div.blue i:first-child{background:linear-gradient(90deg,transparent,#4a73d6)}
.foot-div.blue i:last-child{background:linear-gradient(270deg,transparent,#4a73d6)}
.foot-div svg{flex:0 0 auto;display:block;filter:drop-shadow(0 0 6px rgba(255,220,120,.45))}
.foot-div.gold svg{width:20px;height:34px}
.foot-div.blue{margin:26px auto 18px}.foot-div.blue svg{width:26px;height:26px;filter:none}
footer.foot .foot-share{position:relative;z-index:1;margin:0 0 20px;font:600 clamp(1.25rem,5.4vw,1.6rem)/1.3 "Playfair Display","Even Digits",Lora,Georgia,serif;color:#fbf7ec}
.foot-btn{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:14px;box-sizing:border-box;width:min(100%,430px);min-height:58px;margin:0 auto;padding:0 18px;border-radius:999px;text-decoration:none;
  font:600 clamp(1.02rem,4.4vw,1.2rem)/1.2 "Playfair Display","Even Digits",Lora,Georgia,serif;-webkit-tap-highlight-color:transparent;transition:filter .15s ease,transform .1s ease}
.foot-btn .fb-ic{flex:0 0 auto;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.foot-btn .fb-ch{flex:0 0 auto;width:18px;height:18px;margin-left:auto;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.foot-btn.gold{width:min(88%,340px);color:#f6e2a0;background:linear-gradient(180deg,#3d3320 0%,#2a2416 100%);border:2px solid #e8b94c;box-shadow:0 0 18px rgba(240,195,85,.22),inset 0 0 14px rgba(240,195,85,.08)}
.foot-btn.gold .fb-ic{margin-right:2px}
.foot-btn.blue{width:min(88%,340px);color:#fff;background:linear-gradient(180deg,#2a4ba6 0%,#1a3278 100%);border:2px solid #4a73d6;box-shadow:0 4px 16px rgba(30,70,170,.35),inset 0 1px 0 rgba(255,255,255,.18)}
.foot-btn:hover{filter:brightness(1.12)}.foot-btn:active{transform:scale(.98)}
.foot-btn:focus-visible{outline:3px solid #fff;outline-offset:3px}
.foot-btn span{flex:1;text-align:left}
.foot-btn span{text-align:center}
footer.foot .made{position:relative;z-index:1;margin:18px 0 18px;font:italic 500 clamp(1.05rem,4.6vw,1.3rem)/1.4 Lora,Georgia,"Times New Roman",serif;color:#eef1fb}
footer.foot .small{position:relative;z-index:1;margin:6px auto;max-width:34em;font-size:.95rem;line-height:1.55;color:#9fb0e0}
.foot-hills{position:absolute;left:0;right:0;bottom:0;height:130px;pointer-events:none;z-index:0;
  background:radial-gradient(ellipse 38% 55% at 50% 100%,rgba(255,196,110,.5),rgba(255,196,110,.12) 55%,transparent 75%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 120' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C120 40 220 80 340 58 C470 32 560 74 690 52 C820 30 910 62 1000 44 V120 H0Z' fill='%2314267a' fill-opacity='.75'/%3E%3Cpath d='M0 92 C140 66 260 100 400 82 C540 62 640 98 780 80 C880 68 950 86 1000 76 V120 H0Z' fill='%230c1850' fill-opacity='.95'/%3E%3C/svg%3E") center bottom/100% 100% no-repeat}
@media print{.foot-hills{display:none}}
footer.foot{padding-bottom:124px}
.foot-hills{height:128px}

/* ---------- no pinch-zoom and no double-tap zoom, and the page always opens at its proper size ---------- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;touch-action:manipulation;overflow-x:hidden}
body{overflow-x:clip;max-width:100%}
input,select,textarea{font-size:max(16px,1em)}   /* iPhones zoom in on any smaller text box when it is tapped */

/* progress panel: gold numbers, a dotted trail and a door pill */
.progress{display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:18px}
.progress #progressText{font-family:Lora,Georgia,"Times New Roman",serif;font-size:1.28rem;line-height:1.3;color:#f3efe2}
.progress #progressText em{font-style:normal;color:#f0d27a;font-weight:600}
.pdots{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:min(100%,360px);max-width:100%;padding:0 4px}
.pdots i{flex:0 1 12px;min-width:6px;width:12px;height:auto;aspect-ratio:1;border-radius:50%;box-sizing:border-box;border:2px solid #5a6aa0;background:transparent}
.pdots i.on{background:#f0d27a;border-color:#f0d27a;box-shadow:0 0 8px rgba(240,210,122,.55)}
.pdots u{flex:1 1 0;min-width:0;height:2px;background:#4a5a90}
.pdots u.on{background:#f0d27a}
.progress button#progressGo{display:inline-flex;align-items:center;gap:10px;margin:0;padding:10px 22px;min-height:44px;border:1.5px solid #e2b95a;border-radius:999px;background:linear-gradient(#3a3428,#2a2a3a);color:#f6e3a6;font-family:Lora,Georgia,"Times New Roman",serif;font-weight:400;font-size:1.05rem;text-decoration:none;box-shadow:0 0 14px rgba(240,210,122,.28);-webkit-tap-highlight-color:transparent}
.progress button#progressGo::before{content:"";width:16px;height:24px;flex:0 0 auto;border-radius:8px 8px 1px 1px;background:linear-gradient(#e4b455,#a8741f);box-shadow:inset 0 0 0 2px rgba(255,235,170,.4)}
#thanks .goal-btn::before{display:none}#thanks .cele-text{margin-bottom:18px}

/* languages with longer words: break and hyphenate instead of overflowing */
.reader h2,.reader .r-text,.reader .r-message,.reader .r-ref,.reader .r-block{overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}
.reader.night .r-headtext.longt h2{font-size:clamp(1.35rem,5.6vw,1.75rem);line-height:1.15}
.reader.night .r-headtext.longt{max-width:72%}
/* headings are never hyphenated (it split "Emanuel" into "Ema-nuel" on narrow phones); only the long body text hyphenates */
.reader h2{-webkit-hyphens:manual;hyphens:manual}
.reader.night .r-headtext{min-width:46%}

/* countdown panel: bigger teaser with gold "25 doors.", boxed about line, equal-width buttons, two-part views pill */
.cd-teaser{font-family:Lora,Georgia,"Times New Roman",serif;font-style:normal;font-size:clamp(1.7rem,7.4vw,2.2rem);line-height:1.15;font-weight:500;color:#fff;max-width:11em}
.cd-teaser span{display:block;margin-top:.12em;color:#f0d27a;font-weight:700}
.cd-about{width:min(100% - 32px,340px);box-sizing:border-box;margin:18px auto 0;padding:12px 16px;border:1px solid rgba(120,140,220,.35);border-radius:14px;background:rgba(30,44,110,.5);font-size:1.15rem;line-height:1.4;color:#f2f4fc;text-wrap:balance}
.cd-actions{flex-direction:column;align-items:stretch;gap:14px;width:min(100% - 32px,340px);box-sizing:border-box;margin:20px auto 0;padding:0}
.cd-actions button{justify-content:center;gap:12px;min-height:58px;padding:0 20px;font-size:1.05rem}
.cd-actions button::before{width:24px;height:24px;flex:0 0 24px}
.goal-top{gap:12px;padding:12px 22px;border-width:1.5px;border-radius:999px;font-size:1rem;background:rgba(14,26,76,.8);width:min(100% - 32px,340px);box-sizing:border-box;margin:18px auto 14px}
.goal-top svg{flex:0 0 30px;width:30px;height:30px;filter:none}
.goal-top i{display:none}
#goalTopText{display:flex;align-items:center;justify-content:center;gap:14px;flex:1 1 auto;text-align:left}
#goalTopText .gt-l{white-space:nowrap;color:#fff;font-weight:500;font-size:1.05rem}
#goalTopText .gt-n{font-weight:800;font-size:1.15rem}
#goalTopText .gt-r{display:block;padding-left:14px;border-left:1.5px solid rgba(240,210,122,.5);color:#f6e2a0;font-size:.85rem;line-height:1.25;font-weight:500}
#goalTopText .gt-t{display:block;color:#f0d27a;font-weight:800;font-size:1.1rem}
/* "million goal" panel: larger next-goal line, message and step labels */
.goal-nextline{margin:6px 0 14px;font:700 1.3rem/1.3 Lora,Georgia,"Times New Roman",serif;color:#f6e2a0;letter-spacing:.01em}
.goal-sub{font-size:1.15rem;line-height:1.5;color:#f2f0fa}
.goal-steps .gl{font-size:.9rem}
/* "door not open yet" message: tidy rounded card with a small lock, not an oval */
.toast{display:flex;align-items:center;gap:14px;box-sizing:border-box;width:min(calc(100vw - 32px),360px);max-width:none;padding:14px 18px;border-radius:16px;text-align:left;
  background:linear-gradient(180deg,#1b2a6b,#111c52);border:1px solid rgba(232,185,76,.75);box-shadow:0 10px 30px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.1);
  font:500 1.05rem/1.4 Lora,Georgia,"Times New Roman",serif;color:#f6ecc8;text-wrap:balance}
.toast::before{content:"";flex:0 0 26px;width:26px;height:26px;background:#f0d27a;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3M12 14.5v2.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3M12 14.5v2.5'/%3E%3C/svg%3E") center/contain no-repeat}
.toast.err::before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.2v.3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.2v.3'/%3E%3C/svg%3E") center/contain no-repeat}
/* footer buttons (About this calendar / Send us feedback): compact, like the Share the calendar button */
.foot-btn,.foot-btn.gold,.foot-btn.blue{width:fit-content;max-width:calc(100% - 32px);min-height:52px;padding:0 26px;gap:10px;font-size:1.05rem}
.foot-btn .fb-ic{width:22px;height:22px;margin:0}
.foot-btn .fb-ch{display:none}
.foot-btn span{flex:0 1 auto}

/* views pill and "Door N is waiting" pill: compact enough for wider Android fonts */
.goal-top{padding:10px 16px;gap:10px;font-size:.95rem}
.goal-top svg{flex:0 0 26px;width:26px;height:26px}
#goalTopText{gap:10px;flex-wrap:wrap;row-gap:4px}
#goalTopText .gt-l{font-size:1rem}
#goalTopText .gt-n{font-size:1.1rem}
#goalTopText .gt-r{padding-left:10px;font-size:.8rem;white-space:nowrap}
#goalTopText .gt-t{font-size:1.05rem}
.progress button#progressGo{padding:10px 18px;gap:8px;font-size:clamp(.92rem,4.2vw,1.05rem);max-width:calc(100% - 24px)}
.install-text span svg{color:#f0d27a}
/* top buttons (Remind me each day / Share with a friend): compact, same height as the footer buttons, equal to each other */
.cd-actions{display:grid;grid-template-columns:max-content;justify-content:center;width:auto;max-width:calc(100% - 32px);gap:12px;margin:18px auto 0}
.cd-actions button{width:auto;min-height:52px;padding:0 26px;gap:10px;font-size:1.05rem;justify-content:center}
.cd-actions button::before{width:22px;height:22px;flex:0 0 22px}

/* recording player bar: back 10 s, play / pause, progress line, time */
.r-player{display:flex;align-items:center;gap:10px;box-sizing:border-box;margin:-6px 0 20px;padding:8px 12px;border:1px solid rgba(88,220,194,.55);border-radius:999px;background:rgba(8,28,60,.82);color:#e8fff9}
.r-player[hidden]{display:none}
.r-player button{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;cursor:pointer;color:#fff;background:linear-gradient(180deg,#45cdb2 0%,#1e9580 100%);box-shadow:0 2px 5px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.3);-webkit-tap-highlight-color:transparent}
.r-player button svg{width:22px;height:22px}
.r-player #pBack{background:rgba(255,255,255,.12);box-shadow:none}
.r-player .p-close{width:44px;height:44px;background:transparent;box-shadow:none;font-size:1.5rem;line-height:1;color:#bfe9df}
.r-player #pPlay .ic-play{display:none}
.r-player.is-paused #pPlay .ic-play{display:block}.r-player.is-paused #pPlay .ic-pause{display:none}
.r-player button:focus-visible,.r-player input:focus-visible{outline:3px solid #fff;outline-offset:2px}
.r-player input[type=range]{flex:1 1 auto;min-width:0;height:28px;margin:0;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer}
.r-player input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:linear-gradient(90deg,#f0d27a var(--p,0%),rgba(255,255,255,.25) var(--p,0%))}
.r-player input[type=range]::-moz-range-track{height:6px;border-radius:999px;background:rgba(255,255,255,.25)}
.r-player input[type=range]::-moz-range-progress{height:6px;border-radius:999px;background:#f0d27a}
.r-player input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;margin-top:-6px;border-radius:50%;border:2px solid #fff;background:#f0d27a;box-shadow:0 1px 4px rgba(0,0,0,.5)}
.r-player input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;border:2px solid #fff;background:#f0d27a}
.r-player .p-time{flex:0 0 auto;min-width:5.2em;text-align:right;font:600 .8rem/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-variant-numeric:tabular-nums;color:#cfeee7}
.reader.hasplayer #bListen{display:none}
@media (max-width:380px){.r-player{gap:6px;padding:6px 8px}.r-player .p-time{min-width:4.6em;font-size:.72rem}}
/* player bar: win over the general reader button styles */
.reader.night .r-player{width:100%;min-height:52px}
.reader.night .r-player button,.reader.night .r-player button:hover:not(:disabled){flex:0 0 auto;width:44px;height:44px;min-height:0;padding:0;border:0;border-radius:50%;color:#fff;font-size:1rem;background:linear-gradient(180deg,#45cdb2 0%,#1e9580 100%);box-shadow:0 2px 5px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.3)}
.reader.night .r-player button#pBack,.reader.night .r-player button#pBack:hover:not(:disabled){background:rgba(255,255,255,.14);box-shadow:none}
.reader.night .r-player button.p-close,.reader.night .r-player button.p-close:hover:not(:disabled){width:44px;height:44px;background:transparent;box-shadow:none;font-size:1.5rem;line-height:1;color:#bfe9df}
.reader.night.hasplayer .r-text #bListen{display:none}
@media (max-width:380px){.reader.night .r-player button,.reader.night .r-player button:hover:not(:disabled){width:44px;height:44px}}
/* player bar: same side margins (and so the same width) as the Scripture panel */
.reader.night .r-player{width:auto;margin-left:22px;margin-right:22px}

/* streak line under "You have opened N of M doors" */
.progress .p-streak{display:inline-block;margin-top:-4px;padding:5px 14px;border:1px solid rgba(240,210,122,.55);border-radius:999px;background:rgba(240,210,122,.1);font:600 .9rem/1.2 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:.02em;color:#f0d27a}
.progress .p-streak[hidden]{display:none}
/* the "Door N is waiting" button must really disappear once every door is opened */
.progress button#progressGo[hidden]{display:none}

/* views pill: smaller steps used by fitGoalTop() when the numbers are long */
.goal-top.compact{padding:10px 12px;gap:8px}
.goal-top.compact svg{flex:0 0 22px;width:22px;height:22px}
.goal-top.compact #goalTopText{gap:8px;flex-wrap:nowrap}
.goal-top.compact #goalTopText .gt-l{font-size:.9rem}
.goal-top.compact #goalTopText .gt-n{font-size:1rem}
.goal-top.compact #goalTopText .gt-r{padding-left:8px;font-size:.72rem}
.goal-top.compact #goalTopText .gt-t{font-size:.95rem}
.goal-top.tiny svg{display:none}
.goal-top.tiny{padding:10px 10px}
.goal-top.tiny #goalTopText .gt-l{font-size:.82rem}
.goal-top.tiny #goalTopText .gt-n{font-size:.92rem}
.goal-top.tiny #goalTopText .gt-r{font-size:.68rem}
.goal-top.tiny #goalTopText .gt-t{font-size:.88rem}

.goal-top.tiny #goalTopText{flex-wrap:wrap;justify-content:center}

/* views pill, final version: one line, scaled by fitGoalTop() */
.goal-top #goalTopText{font-size:var(--gs,1rem);flex-wrap:nowrap;white-space:nowrap;justify-content:center;gap:.7em;min-width:0}
.goal-top #goalTopText .gt-l,.goal-top #goalTopText .gt-r{flex:0 0 auto}
.goal-top #goalTopText .gt-l{font-size:1em}
.goal-top #goalTopText .gt-n{font-size:1.1em}
.goal-top #goalTopText .gt-r{font-size:.8em;padding-left:.7em}
.goal-top #goalTopText .gt-t{font-size:1.3em}
.goal-top.noicon svg{display:none}

/* ---------- Story-style day pop-up. Pop-ups with the 'fs' class (day 1 for now) share ONE layout at every screen size. ---------- */
/* inside the pop-up: the same on phone, tablet and desktop */
.reader.night.fs.has-photo:not(.finale){--hh:min(133vw,76vh,640px)}
.reader.night.fs.has-photo:not(.finale) .r-head{min-height:var(--hh)}   /* the whole photograph (3:4) on a phone, capped on big screens */
.reader.night.fs .r-head{display:flex;flex-direction:column;justify-content:flex-end;min-height:min(133vw,76vh,640px);padding:0 22px 22px;margin-bottom:0 !important}
.reader.night.fs .r-head::before{content:"";position:absolute;left:0;right:0;top:0;bottom:auto;height:140px;z-index:1;pointer-events:none;background:linear-gradient(rgba(4,8,28,.62),rgba(4,8,28,0))}
.reader.night.fs .r-art.photo{-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 80%,rgba(0,0,0,0) 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 80%,rgba(0,0,0,0) 100%)}
.reader.night.fs .r-head::after{height:34%;min-height:170px;background:linear-gradient(transparent,var(--c1) 94%)}
.reader.night.fs .r-headtext{position:static;max-width:100% !important;text-align:left}   /* the old per-day text width is ignored */
/* "DAY 1 OF 25" with its little gold line, top left, as it always was */
.reader.night.fs .r-day{position:absolute;top:24px;left:22px;z-index:4;margin:0;text-shadow:0 1px 8px rgba(0,0,0,.8)}
.reader.night.fs .r-day::after{display:block}
/* title and reference across the bottom of the picture; whole words only, balanced lines */
.reader.night.fs h2{margin:0 0 8px;font-size:clamp(2rem,9vw,2.7rem);line-height:1.08;letter-spacing:-.01em;
  -webkit-hyphens:none;hyphens:none;overflow-wrap:normal;word-break:normal;text-wrap:balance;text-shadow:0 2px 14px rgba(0,0,0,.7)}
.reader.night.fs .r-ref{margin:0;font-size:.98rem;font-weight:600;letter-spacing:.02em;color:#f0d27a;text-shadow:0 1px 8px rgba(0,0,0,.75)}
/* no panel round the Scripture: a gold line on the left, a gold Listen pill above the words */
.reader.night.fs .r-text{margin:26px 22px 0;padding:2px 0 2px 18px;border:0;border-left:3px solid #f0d27a;border-radius:0;background:none;box-shadow:none;
  font-size:1.16rem;line-height:1.62;color:#f6f2e6;-webkit-hyphens:none;hyphens:none}
.reader.night.fs .r-text::before{display:none}
.reader.night.fs .r-text #bListen{position:static;display:flex;width:fit-content;margin:0 0 16px;height:44px;padding:0 18px 0 14px;border:0;border-radius:999px;
  background:#f0d27a;color:#2a1c00;text-shadow:none;box-shadow:none;font:700 .95rem/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.reader.night.fs .r-text #bListen:hover:not(:disabled){background:#f6dc8a;color:#2a1c00;filter:none}
.reader.night.fs .r-text #bListen[hidden]{display:none}
/* a faint line under the Scripture, then the message in a bolder sans-serif so it reads as a different voice */
.reader.night.fs .r-message{margin:26px 22px 0;padding-top:24px;border-top:1px solid rgba(255,255,255,.16);-webkit-hyphens:none;hyphens:none;
  font-family:"Outfit",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-weight:500;font-size:1.1rem;line-height:1.62;letter-spacing:.005em;color:#f2f0fa}
.reader.night.fs .r-nav{padding-bottom:calc(8px + env(safe-area-inset-bottom))}

/* one sans-serif for all the small text and the message: Outfit, bundled, so it is identical on every phone */
.reader.night.fs .r-day,.reader.night.fs .r-text #bListen,.reader.night.fs .actions button,.reader.night.fs .r-nav button,.reader.night.fs .r-player .p-time,.reader.night.fs .r-message{
  font-family:"Outfit",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.reader.night.fs .r-day{font-weight:700;letter-spacing:.16em}
/* no hover effects on the Share / Copy link / Save as picture and Day buttons: nothing moves, brightens or changes font */
.reader.night .actions button:hover::before,.reader.night .actions button:hover:not(:disabled)::before{transform:none !important;filter:none !important}
.reader.night .actions button:hover:not(:disabled),.reader.night .r-nav button:hover:not(:disabled){filter:none !important;transform:none !important}
/* (the hover rules above are more specific than the Outfit rule, so they were switching the font back on hover: keep Outfit on hover too) */
.reader.night.fs .actions button,.reader.night.fs .actions button:hover:not(:disabled),.reader.night.fs .r-nav button,.reader.night.fs .r-nav button:hover:not(:disabled){
  font-family:"Outfit",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif !important}
/* audio player on tablet and desktop: it starts exactly where the gold line beside the Scripture ends, with the same side margins; the line gets a little extra length so the words are not squeezed against the player */
.reader.night.fs.hasplayer .r-text{padding-bottom:20px}
.reader.night.fs .r-player{margin:0 22px}
.reader.night.fs.hasplayer .r-text #bListen{display:none}   /* the player replaces the Listen / Stop button */
/* days whose old layout put the title on the right (e.g. day 3) use the same left-aligned layout as every other day */
.reader.night.fs.has-photo.title-right .r-headtext{margin:0;text-align:left;max-width:100%;padding-top:0}
.reader.night.fs.has-photo.title-right .r-day::after{margin-left:0}
.reader.night.fs.has-photo.title-right .r-head::before{background:linear-gradient(rgba(4,8,28,.62),rgba(4,8,28,0))}
/* phones (under 640px): the pop-up is a full-screen page; its buttons and the player float */
@media (max-width:639px){
  .overlay.fs{padding:0;background:#0a1440;align-items:flex-start;overscroll-behavior:contain}   /* flex-start: the page is as tall as its content, so its colour runs all the way down */
  .overlay.fs:not([hidden]){animation:none}
  .reader.night.fs{width:100%;max-width:none;min-height:100%;height:auto;margin:0;border:0;border-radius:0;box-shadow:none;overflow:visible}
  .reader.night.fs .r-day{top:calc(24px + env(safe-area-inset-top))}
  /* close (the usual red button) and text-size buttons keep their look and float over the top right, below the iPhone notch */
  .reader.night.fs .x,.reader.night.fs .rsize{position:fixed;top:calc(12px + env(safe-area-inset-top));z-index:30}
  .reader.night.fs .x{right:max(12px,env(safe-area-inset-right))}
  .reader.night.fs .rsize{right:calc(max(12px,env(safe-area-inset-right)) + 52px)}
  /* the audio player becomes a floating bar at the bottom of the screen and stays there while the page scrolls */
  .reader.night.fs .r-player{position:fixed;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:calc(12px + env(safe-area-inset-bottom));width:auto;margin:0;z-index:25;
    background:rgba(8,28,60,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 6px 22px rgba(0,0,0,.55)}
  .reader.night.fs.hasplayer{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
  .reader.night.fs.hasplayer .r-text{padding-bottom:2px}
}

/* Outfit for the calendar */
@font-face{font-family:"Outfit";font-style:normal;font-weight:300 700;font-display:swap;src:url("../fonts/outfit-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Outfit";font-style:normal;font-weight:300 700;font-display:swap;src:url("../fonts/outfit-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* door numbers: Playfair Display (bundled, the same on every phone) with evenly sized "lining" figures, instead of Times New Roman */
.door .fn{font-family:"Playfair Display",Lora,Georgia,"Times New Roman",serif;font-variant-numeric:lining-nums;font-feature-settings:"lnum" 1;font-weight:700;letter-spacing:0}

/* a door whose inside shows a piece of that day's photograph (a sneak peek of the page behind it) */
.door .back.peek{background-size:cover;background-position:center;background-repeat:no-repeat}   /* the picture itself is set from the script, which knows the right path */
.door .back.peek .scene,.door .back.peek .bstar{display:none !important}
/* peek doors: the photograph fades into a dark band at the bottom, and the day and title sit in that band */
.door .back.peek::after{background:linear-gradient(rgba(8,6,22,0) 38%,rgba(8,6,22,.55) 62%,rgba(8,6,22,.93) 82%,rgba(8,6,22,.97) 100%)}

/* About and Feedback pages: two fonts only. Playfair Display for the titles and headings, Outfit (bundled, identical on every phone) for everything else */
#viewAbout,#viewAbout *,#viewContact,#viewContact *{font-family:"Outfit",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
#viewAbout h1,#viewAbout h2,#viewContact h1,#viewContact h2,#viewAbout [data-about-title],#viewContact [data-about-title]{font-family:"Playfair Display",Lora,Georgia,"Times New Roman",serif}
#viewContact input,#viewContact select,#viewContact textarea,#viewContact option,#viewContact button{font-family:"Outfit",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}


/* "A project of ..." block in the footer: a real button, bigger words */
footer.foot .studio{position:relative;z-index:1;margin:30px auto 8px;padding:26px 18px 6px;max-width:30em;border-top:1px solid rgba(232,185,76,.3)}
footer.foot .studio-name{margin:0 0 6px;font:italic 500 clamp(1.25rem,5.2vw,1.5rem)/1.3 Lora,Georgia,"Times New Roman",serif;color:#f6e2a0}
footer.foot .studio-ask{margin:0 0 18px;font-size:clamp(1.05rem,4.4vw,1.2rem);line-height:1.5;color:#eef1fb}
.foot-btn.sun{width:min(88%,340px);color:#2a1c00;background:linear-gradient(180deg,#ffd978,#f0b030);border:2px solid #ffe3a0;box-shadow:0 6px 20px rgba(240,176,48,.38);font-weight:700}
.foot-btn.sun:hover{filter:brightness(1.06)}

/* ---------- first-name greeting, gift link, readers line (21 Oct 2026) ---------- */
.greet{max-width:34em;margin:14px auto 4px;padding:0 16px;text-align:center}
.greet-line{margin:4px 0 0;font:600 clamp(1.3rem,5.6vw,1.7rem)/1.3 "Playfair Display","Even Digits",Lora,Georgia,serif;color:#f6e2a0}
.greet-btn{display:inline-block;margin:2px auto;padding:10px 14px;border:0;background:none;color:#c9d2f0;font:600 .98rem/1.3 "Outfit",system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.greet-btn:hover{color:#fff}.greet-btn:focus-visible,.greet-save:focus-visible,.gift-alt:focus-visible{outline:3px solid #fff;outline-offset:3px;border-radius:10px}
.greet-form{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center;margin:8px 0}
.greet-form[hidden]{display:none}
.greet-form input,.gift-form input{box-sizing:border-box;min-height:48px;padding:0 16px;border-radius:14px;border:2px solid rgba(232,185,76,.6);background:rgba(8,16,60,.7);color:#fff;font:500 1.1rem/1 "Outfit",system-ui,sans-serif;text-align:center}
.greet-form input{flex:1 1 180px;max-width:240px}
.greet-form input::placeholder,.gift-form input::placeholder{color:#8e9bc8}
.greet-save{min-height:48px;padding:0 22px;border:0;border-radius:999px;background:linear-gradient(180deg,#ffd978,#f0b030);color:#2a1c00;font:700 1.05rem/1 "Outfit",system-ui,sans-serif;cursor:pointer}
.greet-note{flex:1 0 100%;margin:2px 0 0;font-size:.9rem;color:#9fb0e0}
.foot-btn.rose{width:min(88%,340px);margin-bottom:18px;color:#fff;background:linear-gradient(180deg,#c9293c 0%,#8f1626 100%);border:2px solid #ee8a97;box-shadow:0 4px 16px rgba(190,40,60,.4),inset 0 1px 0 rgba(255,255,255,.2)}
.cele .goal-btn.plain-btn::before{display:none}
.gift-form{position:relative;z-index:1;display:flex;flex-direction:column;gap:8px;text-align:left}
.gift-form label{margin:6px 0 0;font:600 .95rem/1.2 "Outfit",system-ui,sans-serif;color:#f6e2a0}
.gift-form input{width:100%;text-align:left}
.gift-form .goal-btn{width:100%;margin:16px 0 0}
.gift-row{display:flex;gap:10px;margin-top:6px}
.gift-alt{flex:1;display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 12px;border:2px solid rgba(255,255,255,.5);border-radius:999px;background:transparent;color:#fff;font:600 1rem/1.1 "Outfit",system-ui,sans-serif;text-decoration:none;cursor:pointer}
.gift-alt:hover{background:rgba(255,255,255,.12)}
.gift-note{margin:6px 0 0;text-align:center;font-size:.98rem;color:#ffe9a8}
.r-readers{margin:18px 22px 0;text-align:center;font:500 1rem/1.4 "Outfit",system-ui,sans-serif;color:#c9d2f0}
.r-readers[hidden]{display:none}

/* the "Send as a gift" button in the countdown: a Christmas-red button with a gift icon */
.cd-actions #bGift{color:#fff;background:linear-gradient(180deg,#c9293c,#8f1626);box-shadow:0 2px 6px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.25)}
.cd-actions #bGift{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='11' width='17' height='9.5' rx='1.6'/%3E%3Crect x='2.5' y='7.5' width='19' height='3.5' rx='1'/%3E%3Cpath d='M12 7.5v13M12 7.5C10.5 4 7 4.5 7.8 6.4 8.3 7.5 10.6 7.5 12 7.5zM12 7.5c1.5-3.5 5-3 4.2-1.1-.5 1.1-2.8 1.1-4.2 1.1z'/%3E%3C/svg%3E")}

/* Day 1 (no Previous/Next row): keep the Share / Copy / Save buttons and the app icons off the bottom edge of the pop-up */
.reader.night.no-nav .share-links{margin-bottom:8px}
.reader.night.no-nav::after{content:"";display:block;height:calc(40px + env(safe-area-inset-bottom))}

/* ===== One size for every button on the page. Colours differ, size never does. The reminder buttons live in their own section near the bottom. ===== */
:root{--btn-w:min(340px,calc(100vw - 64px));--btn-h:56px}
.cd-actions{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;max-width:none;margin:18px auto 0;padding:0;grid-template-columns:none}
.cd-actions button,.foot-btn,.foot-btn.rose,.foot-btn.gold,.foot-btn.blue,.foot-btn.sun,.keep-btns button,footer.foot #goalShare{box-sizing:border-box;width:var(--btn-w);max-width:none;min-height:var(--btn-h);margin-left:auto;margin-right:auto;padding:0 18px;
  font:600 clamp(1.02rem,4.4vw,1.2rem)/1.2 "Playfair Display","Even Digits",Lora,Georgia,serif}
.cd-actions button{display:flex;justify-content:center;gap:12px;border:2px solid #ee8a97;border-radius:999px}
footer.foot #goalShare{display:flex;align-items:center;justify-content:center;padding:0 18px;border-radius:999px;margin-left:0;margin-right:0;position:relative;left:50%;transform:translateX(-50%)}
.cd-actions button::before{width:24px;height:24px;flex:0 0 24px}
.keep{position:relative;z-index:1;margin:24px auto 22px;padding:0 6px}
.keep[hidden]{display:none}
.keep-btns{display:flex;flex-direction:column;align-items:center;gap:12px}
.keep-btns button{display:flex;align-items:center;justify-content:center;gap:12px;border:2px solid #ffe3a0;border-radius:999px;cursor:pointer;color:#2a1c00;
  background:linear-gradient(180deg,#ffd978,#f0b030);box-shadow:0 6px 20px rgba(240,176,48,.38);-webkit-tap-highlight-color:transparent}
.keep-btns button::before{content:"";width:24px;height:24px;flex:0 0 24px;background:currentColor;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
.keep-btns #bRemind{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='2.5'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4M12 13v4M10 15h4'/%3E%3C/svg%3E")}
.keep-btns #bPush{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 0 1 12 0c0 6 2.5 7.5 2.5 7.5h-17S6 15 6 9'/%3E%3Cpath d='M10 20a2 2 0 0 0 4 0'/%3E%3C/svg%3E")}
.keep-btns #bPush[hidden]{display:none}
.keep-btns #bPush.on{color:#fff;background:linear-gradient(180deg,#45cdb2,#1e9580);border-color:#8ee6d3;box-shadow:0 6px 20px rgba(30,149,128,.38)}
.keep-btns button:active{filter:brightness(.93)}
.keep-btns button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.keep .cd-note{margin:14px auto 0}
footer.foot .studio{box-sizing:border-box;width:var(--btn-w);max-width:none;padding-left:0;padding-right:0}

/* ---------- TEST: picture doors (only with ?doorimg=rect or ?doorimg=arch). Remove this whole block to undo. ---------- */
body.doorimg .door .front{background:none}
body.doorimg .door .front::before{content:"";position:absolute;inset:0;border-radius:inherit;background:url("../img/doors/door-red.webp") center/100% 100% no-repeat}
body.doorimg .door.locked .front::before{background-image:url("../img/doors/door-green.webp");filter:brightness(.92)}
body.doorimg .door .line,body.doorimg .door .star,body.doorimg .door .wreath{display:none}
body.doorimg .door .fn{text-shadow:0 2px 6px rgba(70,0,0,.55),0 0 14px rgba(255,220,120,.35)}
body.doorimg.doorimg-rect .door,body.doorimg.doorimg-rect .door .frame,body.doorimg.doorimg-rect .door .back,body.doorimg.doorimg-rect .door .front,body.doorimg.doorimg-rect .door .inner{border-radius:14px 14px 5px 5px}
body.doorimg.doorimg-rect .door.locked::before,body.doorimg.doorimg-rect .door.next::before{border-radius:26px}

/* ---------- TEST: decorated pilot doors (?doorimg=arch&doorset=pilot). Remove the doorpilot blocks to undo. ---------- */
body.doorpilot.doorimg .door .front::before{background-image:url("../img/doors/door-green-bow.webp");filter:none}
body.doorpilot.doorimg .door[data-day="2"] .front::before,body.doorpilot.doorimg .door[data-day="5"] .front::before,body.doorpilot.doorimg .door[data-day="8"] .front::before,body.doorpilot.doorimg .door[data-day="11"] .front::before,body.doorpilot.doorimg .door[data-day="14"] .front::before,body.doorpilot.doorimg .door[data-day="17"] .front::before,body.doorpilot.doorimg .door[data-day="20"] .front::before,body.doorpilot.doorimg .door[data-day="23"] .front::before{background-image:url("../img/doors/door-green-holly.webp")}
body.doorpilot.doorimg .door[data-day="3"] .front::before,body.doorpilot.doorimg .door[data-day="6"] .front::before,body.doorpilot.doorimg .door[data-day="9"] .front::before,body.doorpilot.doorimg .door[data-day="12"] .front::before,body.doorpilot.doorimg .door[data-day="15"] .front::before,body.doorpilot.doorimg .door[data-day="18"] .front::before,body.doorpilot.doorimg .door[data-day="21"] .front::before,body.doorpilot.doorimg .door[data-day="24"] .front::before{background-image:url("../img/doors/door-green-bauble.webp")}
body.doorpilot .door .lock{top:51%;bottom:auto;transform:translate(-50%,-50%);font:600 clamp(11px,3.1vw,14px)/1.1 "Outfit",system-ui,sans-serif;letter-spacing:.03em;color:#f4d98a;text-shadow:0 1px 3px rgba(0,0,0,.7)}

/* ---------- TEST: 25 different decorated doors (?doorimg=arch&doorset=full). Remove the doorfull block to undo. ---------- */
body.doorfull.doorimg .door[data-day="1"] .front::before{background-image:url("../img/doors/door-01.webp")}
body.doorfull.doorimg .door[data-day="2"] .front::before{background-image:url("../img/doors/door-02.webp")}
body.doorfull.doorimg .door[data-day="3"] .front::before{background-image:url("../img/doors/door-03.webp")}
body.doorfull.doorimg .door[data-day="4"] .front::before{background-image:url("../img/doors/door-04.webp")}
body.doorfull.doorimg .door[data-day="5"] .front::before{background-image:url("../img/doors/door-05.webp")}
body.doorfull.doorimg .door[data-day="6"] .front::before{background-image:url("../img/doors/door-06.webp")}
body.doorfull.doorimg .door[data-day="7"] .front::before{background-image:url("../img/doors/door-07.webp")}
body.doorfull.doorimg .door[data-day="8"] .front::before{background-image:url("../img/doors/door-08.webp")}
body.doorfull.doorimg .door[data-day="9"] .front::before{background-image:url("../img/doors/door-09.webp")}
body.doorfull.doorimg .door[data-day="10"] .front::before{background-image:url("../img/doors/door-10.webp")}
body.doorfull.doorimg .door[data-day="11"] .front::before{background-image:url("../img/doors/door-11.webp")}
body.doorfull.doorimg .door[data-day="12"] .front::before{background-image:url("../img/doors/door-12.webp")}
body.doorfull.doorimg .door[data-day="13"] .front::before{background-image:url("../img/doors/door-13.webp")}
body.doorfull.doorimg .door[data-day="14"] .front::before{background-image:url("../img/doors/door-14.webp")}
body.doorfull.doorimg .door[data-day="15"] .front::before{background-image:url("../img/doors/door-15.webp")}
body.doorfull.doorimg .door[data-day="16"] .front::before{background-image:url("../img/doors/door-16.webp")}
body.doorfull.doorimg .door[data-day="17"] .front::before{background-image:url("../img/doors/door-17.webp")}
body.doorfull.doorimg .door[data-day="18"] .front::before{background-image:url("../img/doors/door-18.webp")}
body.doorfull.doorimg .door[data-day="19"] .front::before{background-image:url("../img/doors/door-19.webp")}
body.doorfull.doorimg .door[data-day="20"] .front::before{background-image:url("../img/doors/door-20.webp")}
body.doorfull.doorimg .door[data-day="21"] .front::before{background-image:url("../img/doors/door-21.webp")}
body.doorfull.doorimg .door[data-day="22"] .front::before{background-image:url("../img/doors/door-22.webp")}
body.doorfull.doorimg .door[data-day="23"] .front::before{background-image:url("../img/doors/door-23.webp")}
body.doorfull.doorimg .door[data-day="24"] .front::before{background-image:url("../img/doors/door-24.webp")}
body.doorfull.doorimg .door[data-day="25"] .front::before{background-image:url("../img/doors/door-25.webp")}

/* picture doors test: hinges spread apart like a real door (top one up), knob on the middle rail */
body.doorimg .door .hinge,body.doorimg .cell.featured:not(.finale) .hinge,body.doorimg .cell.finale .hinge{top:26%}
body.doorimg .door .hinge.b{top:auto;bottom:14%}
body.doorimg .cell.featured:not(.finale) .hinge.b,body.doorimg .cell.finale .hinge.b{top:auto;bottom:12%}
body.doorimg .door .front::after{top:56%}

/* ===== Smaller buttons (23 Oct 2026): one calmer size for every button; the three footer buttons sit in one row ===== */
:root{--btn-w:min(250px,calc(100vw - 64px));--btn-h:46px}
.cd-actions button,.foot-btn,.foot-btn.rose,.foot-btn.gold,.foot-btn.blue,.foot-btn.sun,.keep-btns button,footer.foot #goalShare{padding:0 16px;gap:9px;font-size:clamp(.95rem,4vw,1.02rem)}
.cd-actions button::before,.keep-btns button::before{width:20px;height:20px;flex:0 0 20px}
.foot-btn .fb-ic{width:20px;height:20px}
.cd-actions button,.keep-btns button{border-width:1.5px}
.goal-btn{min-height:46px;padding:0 22px;font-size:1rem}
footer.foot .foot-share{margin-bottom:16px}
.foot-row{position:relative;z-index:1;display:flex;gap:8px;justify-content:center;align-items:stretch;width:min(100% - 24px,460px);margin:0 auto 6px}
.foot-row .foot-btn,.foot-row .foot-btn.rose,.foot-row .foot-btn.gold,.foot-row .foot-btn.blue{flex:1 1 0;width:auto;min-width:0;min-height:66px;margin:0;padding:9px 5px;flex-direction:column;justify-content:center;gap:6px;border-radius:16px;font-size:clamp(.8rem,3.5vw,.92rem);line-height:1.15}
.foot-row .foot-btn span{flex:0 0 auto;text-align:center}
.foot-row .foot-btn .fb-ic{width:22px;height:22px}
.foot-row .foot-btn .fb-ch{display:none}

/* ---------- recording player: volume as a second row inside the same bar ---------- */
.r-player{position:relative;flex-wrap:wrap;border-radius:28px;row-gap:2px}
.r-player .p-time{display:inline-flex;align-items:baseline;white-space:nowrap}
.r-player .p-vol{order:10;flex:1 0 100%;display:flex;align-items:center;gap:10px;box-sizing:border-box;padding:0 6px 4px 10px}
.r-player .p-vol[hidden]{display:none}
.reader.night .r-player button.p-mute,.reader.night .r-player button.p-mute:hover:not(:disabled){flex:0 0 auto;width:34px;height:34px;background:transparent;box-shadow:none;color:#cfeee7}
.r-player .p-mute svg{width:22px;height:22px}
.r-player .p-vol.muted .waves{display:none}
.r-player .p-vol #pVolPct{flex:0 0 auto;min-width:2.8em;text-align:right;font:600 .8rem/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-variant-numeric:tabular-nums;color:#cfeee7}
@media (max-width:639px){.reader.night.fs.hasplayer{padding-bottom:calc(128px + env(safe-area-inset-bottom))}}
/* keep the first row (back, play, line, time, close) on ONE line; the volume row is the second line */
.r-player #pSeek{flex:1 1 0;min-width:56px}
@media (max-width:440px){
  .r-player #pDur{display:none}
  .r-player .p-time{min-width:2.9em;justify-content:flex-end}
  .r-player{column-gap:6px}
  .reader.night .r-player button,.reader.night .r-player button:hover:not(:disabled),.reader.night .r-player button.p-close{width:40px;height:40px}
}

/* ---------- door 25: normal size, centred when alone in the last row; big only when it is today ---------- */
@media (max-width:859px){.cell.lone{grid-column:1/-1;justify-self:center;width:calc((100% - (var(--cols,3) - 1) * var(--gap,17px)) / var(--cols,3))}}
body.doorimg .cell.finale .door:not(.locked) .fn{color:#f4d98a;text-shadow:0 2px 6px rgba(70,0,0,.55),0 0 14px rgba(255,220,120,.35)}

/* footer notes (Scripture credit and privacy): bigger, brighter, easier to read on a phone */
footer.foot .small{font:400 clamp(1rem,4.3vw,1.1rem)/1.6 "Outfit",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#dbe3f8;max-width:30em;margin:10px auto;padding:0 6px}
footer.foot #privacyNote{margin-top:14px}
/* the "A project of" block uses the full width, so the name stays on one line */
footer.foot .studio{width:min(100% - 24px,30em);box-sizing:border-box;padding-left:6px;padding-right:6px}
footer.foot .studio-name{font-size:clamp(1.15rem,5vw,1.45rem)}

/* ---------- opened doors: the title sits under the number (like the date on locked doors), the decoration stays clear ---------- */
body.doorpilot .door.seen .front .ft{left:11% !important;right:11% !important;top:37% !important;bottom:auto !important;font:600 clamp(10px,2.8vw,11.5px)/1.15 "Outfit",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#f4e6b8 !important;text-shadow:0 1px 3px rgba(0,0,0,.75) !important;-webkit-line-clamp:3}
body.doorpilot .door.seen:not(.locked) .fn{top:14%}
body.doorpilot .cell.featured .door.seen .front .ft,body.doorpilot .cell.finale .door.seen .front .ft{top:40% !important;font-family:"Outfit",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-weight:600;line-height:1.15}
body.doorpilot .cell.featured .door.seen:not(.locked) .fn,body.doorpilot .cell.finale .door.seen:not(.locked) .fn{top:16%}

/* ---------- "A project of ..." card, and the name form (24 Oct 2026) ---------- */
footer.foot .studio{display:flex;flex-direction:column;align-items:center;gap:18px;width:min(100% - 24px,780px);box-sizing:border-box;margin:30px auto 8px;padding:24px 20px;text-align:center;border:1px solid rgba(232,185,76,.5);border-radius:18px;background:rgba(10,20,70,.5)}
footer.foot .studio-text{min-width:0}
footer.foot .studio-name{margin:0 0 8px;font:italic 500 clamp(1.3rem,5.6vw,1.75rem)/1.25 Lora,Georgia,"Times New Roman",serif;color:#fff}
footer.foot .studio-name .vx{font-weight:700;color:#f6c84f}
footer.foot .studio-ask{margin:0;font:400 clamp(1.05rem,4.4vw,1.25rem)/1.4 Lora,Georgia,"Times New Roman",serif;color:#f0f2fb}
.foot-btn .fb-ar{flex:0 0 auto;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
@media (min-width:640px){
  footer.foot .studio{flex-direction:row;justify-content:space-between;gap:28px;padding:26px 34px;text-align:left}
  footer.foot .studio .foot-btn.sun{flex:0 0 auto;margin:0}
}
.greet-form{flex-direction:column;align-items:center;gap:14px}
.greet-form input{flex:0 0 auto;width:min(260px,100%);max-width:none;text-align:center}
.greet-actions{display:flex;align-items:center;justify-content:center;gap:18px}
/* the card text: stays tidy on small phones */
footer.foot .studio{padding-left:14px;padding-right:14px}
footer.foot .studio-name{font-size:clamp(1.08rem,4.9vw,1.75rem);text-wrap:balance}
footer.foot .studio-ask{font-size:clamp(.98rem,4.2vw,1.25rem);text-wrap:balance}
@media (min-width:640px){footer.foot .studio{padding-left:34px;padding-right:34px}}
/* name form: Save and Remove are two equal buttons under the field */
.greet-actions{width:min(260px,100%);gap:12px}
.greet-actions>button{flex:1 1 0;min-width:0;min-height:46px;margin:0;padding:0 8px;border-radius:999px;font:700 .98rem/1.1 "Outfit",system-ui,sans-serif;text-decoration:none;cursor:pointer}
.greet-actions .greet-save{border:0}
.greet-actions .greet-btn{border:1.5px solid rgba(255,255,255,.55);background:transparent;color:#e6ebfb;font-weight:600}
.greet-actions .greet-btn:hover{background:rgba(255,255,255,.12);color:#fff}
.greet-actions .greet-btn{font-size:.9rem;letter-spacing:0}

/* feedback form intro: keep the line break between the two sentences */
.contact-lead[data-t="ct_this_calendar_is_made_by"]{white-space:pre-line}

/* ---------- "A project of ..." card, version 2 (centred, signature name, cream button) ---------- */
footer.foot .studio{display:flex;flex-direction:column;align-items:center;gap:0;width:min(100% - 24px,460px);box-sizing:border-box;margin:30px auto 8px;padding:30px 22px 28px;text-align:center;border:1px solid rgba(232,185,76,.28);border-radius:24px;background:radial-gradient(120% 80% at 50% 0%,rgba(46,66,150,.5),rgba(10,18,62,.55) 62%),rgba(8,14,48,.55);box-shadow:0 10px 34px rgba(0,0,0,.35)}
@media (min-width:640px){footer.foot .studio{flex-direction:column;justify-content:flex-start;gap:0;padding:34px 30px 30px;text-align:center}}
footer.foot .studio-kicker{margin:0 0 4px;font:600 .82rem/1 "Outfit",system-ui,sans-serif;letter-spacing:.34em;text-indent:.34em;text-transform:uppercase;color:#d9e0f5}
footer.foot .studio-name{margin:0;font:italic 700 clamp(2.2rem,10.5vw,3rem)/1.12 "Playfair Display",Lora,Georgia,serif;color:#fff;white-space:nowrap}
footer.foot .studio-name .vx-a{color:#fff}
footer.foot .studio-name .vx-b{color:#f6c84f}
.studio-swoosh{display:block;width:64%;max-width:260px;height:14px;margin:-2px 0 14px}
footer.foot .studio-ask{margin:0 0 8px;max-width:15em;font:600 clamp(1.2rem,5.4vw,1.55rem)/1.25 "Outfit",system-ui,sans-serif;color:#fff;text-wrap:balance}
footer.foot .studio-sub{margin:0 0 22px;max-width:19em;font:400 1rem/1.5 "Outfit",system-ui,sans-serif;color:#c3cce6;text-wrap:balance}
footer.foot .studio-sub[hidden]{display:none}
footer.foot .studio-ask:last-of-type{margin-bottom:22px}
.foot-btn.cream{color:#101a4c;background:linear-gradient(180deg,#fff7e3,#ffe7b8);border:0;box-shadow:0 6px 22px rgba(255,214,130,.28);font-family:"Outfit",system-ui,sans-serif;font-weight:700}
.foot-btn.cream:hover{filter:brightness(1.03)}
.foot-btn.cream .fb-ic{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

.studio-swoosh{margin:0 0 14px}
/* the name as a clean spaced wordmark (William's picture): VERAXIO white, STUDIOS gold */
footer.foot .studio-name{margin:8px 0 18px;font:400 clamp(1.1rem,5.7vw,1.95rem)/1.2 "Outfit",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:.2em;text-indent:.2em;word-spacing:.18em;text-transform:uppercase;white-space:nowrap;color:#fff}
.studio-swoosh{display:none}
/* the "A project of" card: quieter, so it sits at the bottom without dominating */
footer.foot .studio{width:min(100% - 24px,420px);padding:24px 18px 22px;margin-top:26px;background:radial-gradient(120% 80% at 50% 0%,rgba(40,58,138,.38),rgba(10,18,62,.45) 62%),rgba(8,14,48,.4);border-color:rgba(232,185,76,.22);box-shadow:none}
@media (min-width:640px){footer.foot .studio{padding:26px 24px 24px}}
footer.foot .studio-kicker{font-size:.7rem;letter-spacing:.3em;text-indent:.3em;color:#c9d2ee}
footer.foot .studio-name{margin:6px 0 14px;font-size:clamp(.95rem,4.5vw,1.55rem);letter-spacing:.18em;text-indent:.18em}
footer.foot .studio-ask{margin:0 0 6px;font-size:clamp(1rem,4.4vw,1.2rem);font-weight:500}
footer.foot .studio-sub{margin:0 0 18px;font-size:.9rem;line-height:1.45}
/* the Get in touch button: smaller, and as wide as the last sentence above it */
footer.foot .studio{--sw:208px}
footer.foot .studio .studio-sub{width:var(--sw);max-width:100%;margin-left:auto;margin-right:auto}
footer.foot .studio .foot-btn.cream{width:var(--sw);max-width:100%;min-height:40px;padding:0 14px;gap:8px;margin:0 auto;font-size:.95rem}
footer.foot .studio .foot-btn.cream .fb-ic,footer.foot .studio .foot-btn.cream .fb-ar{width:18px;height:18px}
/* "Share the calendar" in the million-views card: smaller, only as wide as its words */
footer.foot #goalShare{width:auto;min-width:0;min-height:42px;padding:0 22px;gap:9px;font-size:.98rem}
footer.foot #goalShare::before{width:18px;height:18px}
/* "Tap a door to open it.": bigger, a firmer font, easier to read */
.hint:not([hidden]){font:500 clamp(1.08rem,4.7vw,1.22rem)/1.4 "Outfit",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-style:normal;letter-spacing:.01em;color:#f3d98a;text-shadow:0 1px 8px rgba(0,0,0,.45)}

/* ---------- fonts: Lora (reading serif, bundled, SIL OFL: fonts/OFL-Lora.txt) replaces Georgia; every button uses Outfit ---------- */
@font-face{font-family:"Lora";font-style:normal;font-weight:400 700;font-display:swap;src:url("../fonts/lora-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Lora";font-style:normal;font-weight:400 700;font-display:swap;src:url("../fonts/lora-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Lora";font-style:italic;font-weight:400 700;font-display:swap;src:url("../fonts/lora-italic-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Lora";font-style:italic;font-weight:400 700;font-display:swap;src:url("../fonts/lora-italic-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
.foot-btn,.foot-btn.rose,.foot-btn.gold,.foot-btn.blue,.foot-btn.sun,.foot-btn.cream,.keep-btns button,.cd-actions button,footer.foot #goalShare,.goal-btn,.reader.night .actions button,.cele-btn,.greet-save,.greet-btn{font-family:"Outfit",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.foot-row .foot-btn{font-weight:600;font-size:clamp(.82rem,3.6vw,.94rem)}
/* Scripture in Lora italic: one step heavier (500) so it reads as firmly as Georgia did */
.reader.night .r-text,.reader.night.fs .r-text{font-weight:500}
/* the feedback form and the About boxes: solid colours, so the stars no longer show through them */
.contact-form{background:linear-gradient(180deg,#1b2e77,#0e1b52)}
.contact-form input,.contact-form select,.contact-form textarea{background:#0d1844}
.about-sec{background:linear-gradient(180deg,#1a2c74,#0f1d58)}
/* the feedback / About pages sit ABOVE the star layer (they were painted underneath it, so stars crossed the text and the form) */
.contact-wrap{position:relative;z-index:3}

/* "Open a new door" card (29 Oct 2026, approved from preview): photo header, gold headline, star divider */
#cdAbout.pv{width:min(100% - 32px,340px);box-sizing:border-box;margin:18px auto 0;padding:0 0 22px;overflow:hidden;text-align:center;border:1.5px solid rgba(242,217,140,.65);border-radius:18px;box-shadow:0 0 0 3px rgba(242,217,140,.08),0 10px 30px rgba(0,0,0,.45),0 0 40px rgba(242,200,90,.12);background:radial-gradient(120% 60% at 50% 30%,#26398f 0%,#16255f 55%,#0e1a50 100%);font-size:1rem}
.pv .pv-img{position:relative;height:178px;background:url(../img/open-door-header.webp) center 30%/cover no-repeat}
.pv .pv-img::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(14,26,80,0) 45%,#16255f 100%)}
.pv .pv-body{position:relative;z-index:1;margin-top:-6px;padding:0 18px}
.pv .pv-h1{font:400 2.3rem/1.15 "Lobster","Playfair Display",Georgia,serif;white-space:nowrap;letter-spacing:.01em;color:#f6d77a;text-shadow:0 2px 0 #7a5410,0 3px 12px rgba(0,0,0,.55)}
.pv .pv-sw2{width:200px;max-width:70%;height:2px;margin:8px auto 0;background:linear-gradient(90deg,rgba(242,217,140,0),#f2d98c 30%,#f2d98c 70%,rgba(242,217,140,0))}
.pv .pv-h2{margin-top:8px;font:600 1.25rem/1.3 Lora,Georgia,serif;color:#fff;text-wrap:balance}
.pv .pv-div{display:flex;align-items:center;gap:10px;margin:16px auto;max-width:240px;color:#f2d98c}
.pv .pv-div i{flex:1;height:1px;background:rgba(242,217,140,.55)}
.pv .pv-div svg{width:16px;height:16px;flex:0 0 16px}
.pv .pv-p{font:400 1.05rem/1.5 Lora,Georgia,serif;color:#dbe3f8;text-wrap:balance}

/* reminder buttons (29 Oct 2026, approved from preview): same size as "Share the calendar" (205 x 42) */
.keep-btns button{width:205px;max-width:100%;min-height:42px;height:42px;padding:0 10px;font-size:14.2px;gap:7px;white-space:nowrap}
.keep-btns button::before{width:16px;height:16px;flex:0 0 16px}

/* countdown heading style B (30 Oct 2026, approved from preview): script "wonderful" on its own line (Great Vibes), star ornaments above and below */
@font-face{font-family:"Great Vibes";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/great-vibes.woff2") format("woff2")}
#cdTeaser.tb{max-width:none;margin:18px auto 0;padding:0 8px;text-align:center;color:#fff;font-style:normal}
#cdTeaser.tb span{display:block}
#cdTeaser.tb .orn{display:flex;align-items:center;gap:10px;max-width:250px;margin:0 auto 10px;color:#f2d98c}
#cdTeaser.tb .orn i{flex:1;height:1px;background:linear-gradient(90deg,rgba(242,217,140,0),rgba(242,217,140,.85))}
#cdTeaser.tb .orn i:last-child{background:linear-gradient(270deg,rgba(242,217,140,0),rgba(242,217,140,.85))}
#cdTeaser.tb .orn svg{width:30px;height:30px;flex:0 0 30px;filter:drop-shadow(0 0 8px rgba(242,217,140,.8))}
#cdTeaser.tb .orn.bot{margin:12px auto 0}
#cdTeaser.tb .orn.bot svg{width:18px;height:18px;flex-basis:18px}
#cdTeaser.tb .l1{font:500 clamp(1.7rem,8vw,2.1rem)/1.15 "Playfair Display",Georgia,serif;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.5)}
#cdTeaser.tb .l2{font:400 clamp(3.4rem,19vw,4.6rem)/1.05 "Great Vibes","Playfair Display",cursive;white-space:nowrap;color:#f6d77a;text-shadow:0 0 18px rgba(246,200,90,.5),0 2px 10px rgba(0,0,0,.5);margin-top:-2px}
#cdTeaser.tb .l3{font:500 clamp(1.35rem,6.4vw,1.7rem)/1.2 "Playfair Display",Georgia,serif;white-space:nowrap;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.5);margin-top:-6px}
#cdTeaser.tb .l4{font:700 clamp(2.5rem,12vw,3.1rem)/1.1 "Playfair Display",Georgia,serif;white-space:nowrap;color:#f8d978;text-shadow:0 0 20px rgba(246,200,90,.6),0 2px 10px rgba(0,0,0,.5);margin-top:4px}

/* "A Closer Look" header above the message (live for all 25 days, 30 Oct 2026) */
.reader .r-closer{position:relative;display:flex;align-items:center;gap:12px;margin:26px 22px 0;padding:24px 0 10px;border-top:1px solid rgba(255,255,255,.16);font:700 1.3rem/1.2 Lora,Georgia,serif;color:#fff}
.reader .r-closer[hidden]{display:none}
.reader .r-closer::before{content:"";width:30px;height:30px;flex:0 0 30px;background:#f3d98a;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.5C10 4.8 7 4.2 3.5 4.5v13c3.5-.3 6.5.3 8.5 2M12 6.5c2-1.7 5-2.3 8.5-2v13c-3.5-.3-6.5.3-8.5 2M12 6.5v13'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.5C10 4.8 7 4.2 3.5 4.5v13c3.5-.3 6.5.3 8.5 2M12 6.5c2-1.7 5-2.3 8.5-2v13c-3.5-.3-6.5.3-8.5 2M12 6.5v13'/%3E%3C/svg%3E") center/contain no-repeat}
.reader .r-closer::after{content:"";position:absolute;left:0;bottom:0;width:150px;height:2px;background:linear-gradient(90deg,#f2d98c,rgba(242,217,140,0))}
.reader .r-closer:not([hidden]) + .r-message{border-top:0;margin-top:0;padding-top:16px}
/* other languages (30 Oct 2026): the third heading line and the card headline may wrap when the translation is longer than English */
#cdTeaser.tb .l3{white-space:normal;text-wrap:balance}
.pv .pv-h1{white-space:normal;text-wrap:balance}

/* Ascendant Production logo in the "A project of" card */
footer .studio-name .studio-link{display:block;border:0;text-decoration:none}
footer .studio-name .studio-link:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:6px}
footer .studio-name .studio-logo,footer.foot .studio-name .studio-logo{display:block;width:min(300px,92%);height:auto;margin:8px auto 14px;letter-spacing:normal}

/* contact form drop-down: readable list on desktop (dark list, light text) */
.contact-form select{color-scheme:dark}
.contact-form select option{background-color:#0d1844;color:#fff}

/* Day 25: words before and after the prayer box. Plain sans type, a gold-edged panel on top and a gold heading below, so they read as
   separate from the prayer itself (serif, in its own box). The text comes from the day's prayerIntro / prayerAfter:
   **words** are gold and bold; a line break splits the first line from the second (second line of the intro = the gold ribbon; first line of the bottom text = its heading). */
.reader .r-invite,.reader .r-church{margin:20px 22px 0;text-align:center;font:500 1rem/1.55 "Outfit",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-style:normal;letter-spacing:.005em;color:#f3f0fa;text-wrap:balance;-webkit-hyphens:none;hyphens:none;overflow-wrap:break-word}
.reader .r-invite[hidden],.reader .r-church[hidden]{display:none}
.reader .r-invite{position:relative;margin-top:26px;padding-top:34px}
.reader .r-invite::before{content:"";position:absolute;top:0;left:0;right:0;height:22px;background:linear-gradient(90deg,rgba(246,215,122,0),#f6d77a) left center/38% 2px no-repeat,linear-gradient(270deg,rgba(246,215,122,0),#f6d77a) right center/38% 2px no-repeat}
.reader .r-invite::after{content:"✦";position:absolute;top:0;left:0;right:0;height:22px;line-height:22px;font-size:1.15rem;color:#f6d77a;text-shadow:0 0 10px rgba(255,226,150,.75)}
.reader .pw-main,.reader .pw-rest,.reader .pw-lead{display:block}
.reader .pw-main{font-size:1.1em;line-height:1.6}
.reader .pw-main strong{color:#f6d77a;font-weight:700}
.reader .pw-ribbon{display:block;margin:16px auto 0;font-weight:800;font-size:.86em;line-height:1.45;letter-spacing:.09em;text-transform:uppercase;color:#f6d77a;text-shadow:0 1px 8px rgba(0,0,0,.35)}
.reader .pw-ribbon::after{content:"";display:block;width:9px;height:9px;margin:14px auto 0;border-right:2px solid #f6d77a;border-bottom:2px solid #f6d77a;transform:rotate(45deg)}
.reader .r-church{position:relative;margin-top:28px;padding-top:26px}
.reader .r-church::before{content:"";position:absolute;top:0;left:50%;width:64%;height:2px;margin-left:-32%;background:linear-gradient(90deg,rgba(242,217,140,0),#f6d77a,rgba(242,217,140,0))}
.reader .pw-lead{margin-bottom:8px;font-weight:800;font-size:1.28em;line-height:1.3;color:#f6d77a}
.reader.night.finale .r-invite,.reader.night.finale .r-church,.reader.night.has-photo .r-invite,.reader.night.has-photo .r-church{position:relative;z-index:4}
.reader.night.finale .r-invite,.reader.night.finale .r-church{font-size:1.04rem}
html[data-fs="1"] .reader.night .r-invite,html[data-fs="1"] .reader.night .r-church{font-size:1.14rem}
html[data-fs="2"] .reader.night .r-invite,html[data-fs="2"] .reader.night .r-church{font-size:1.28rem}
/* the prayer itself: one weight heavier (medium) so it reads clearly, and a larger PRAYER label */
.reader #rPrayer{font-weight:500}
.reader #rPrayerH{font-size:1.1rem}
