/* HowManyDaysTill — immersive holiday themes */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: var(--bg-solid);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -3; background: var(--bg); }
body::after { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(1200px 600px at 80% -10%, var(--glow), transparent 60%), radial-gradient(900px 500px at -10% 110%, var(--glow2), transparent 60%); }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted, .note { color: var(--muted); }
.note { font-size: 13.5px; margin: 14px 0 0; }

/* ---------- themes ---------- */
.t-home, body { --bg-solid: #0b1020; --bg: linear-gradient(165deg, #0b1020 0%, #22195a 55%, #3a1660 100%); --text: #f4f2ff; --muted: #b9b3dc;
  --card: rgba(255,255,255,.07); --card-b: rgba(255,255,255,.14); --accent: #ffd34d; --accent-2: #ff6bd6; --glow: rgba(255,107,214,.22); --glow2: rgba(77,140,255,.2); --tile: rgba(255,255,255,.09); }
.t-date { --bg-solid: #0f1630; --bg: linear-gradient(165deg, #0f1630, #2a2f6b 55%, #6b3fa0); --accent: #ffd34d; --glow: rgba(255,211,77,.18); --glow2: rgba(107,63,160,.35); }
.t-christmas { --bg-solid: #0b1e33; --bg: linear-gradient(170deg, #071629 0%, #0c3326 55%, #3b0d18 100%); --text: #f7f3e8; --muted: #c6d4c8;
  --accent: #ffd34d; --accent-2: #e33b4b; --glow: rgba(255,211,77,.18); --glow2: rgba(227,59,75,.25); }
.t-christmas-eve { --bg-solid: #120d2e; --bg: linear-gradient(170deg, #0d0a24, #2b1b4a 55%, #5a1626); --accent: #ffd34d; --accent-2: #ff6b6b; --glow: rgba(255,211,77,.16); --glow2: rgba(255,107,107,.2); }
.t-new-year { --bg-solid: #05060f; --bg: linear-gradient(170deg, #04050d, #121a46 55%, #3b1660); --accent: #ffd34d; --accent-2: #ff6bd6; --glow: rgba(255,107,214,.25); --glow2: rgba(77,120,255,.25); }
.t-halloween { --bg-solid: #0d0614; --bg: linear-gradient(175deg, #0b0512 0%, #2a0f3d 55%, #8a3208 100%); --text: #fff4e8; --muted: #d9c2b0;
  --accent: #ff8a1c; --accent-2: #a35cff; --glow: rgba(163,92,255,.25); --glow2: rgba(255,138,28,.35); }
.t-thanksgiving { --bg-solid: #2b1206; --bg: linear-gradient(170deg, #241005, #5e250b 55%, #b5611c); --text: #fff5ea; --muted: #f0cfae;
  --accent: #ffcf6b; --accent-2: #ff8a3d; --glow: rgba(255,207,107,.22); --glow2: rgba(255,138,61,.3); }
.t-valentine { --bg-solid: #3a0618; --bg: linear-gradient(165deg, #2e0414, #7a0f33 55%, #e04a78); --text: #fff1f5; --muted: #ffc9d8;
  --accent: #ffd1dc; --accent-2: #ff5c8a; --glow: rgba(255,92,138,.35); --glow2: rgba(255,209,220,.2); }
.t-easter { color-scheme: light; --bg-solid: #f3e9ff; --bg: linear-gradient(165deg, #efe4ff, #dff6f0 55%, #fff1cf); --text: #2b2350; --muted: #5d5785;
  --card: rgba(255,255,255,.62); --card-b: rgba(124,92,255,.18); --accent: #7c5cff; --accent-2: #2bb3a3; --glow: rgba(124,92,255,.18); --glow2: rgba(43,179,163,.18); --tile: rgba(255,255,255,.75); }
.t-st-patricks { --bg-solid: #052616; --bg: linear-gradient(170deg, #041f12, #0b4f27 55%, #1d8a4a); --text: #f1fff4; --muted: #bfe8cb;
  --accent: #ffd34d; --accent-2: #7cff9e; --glow: rgba(124,255,158,.2); --glow2: rgba(255,211,77,.18); }
.t-july4, .t-patriotic { --bg-solid: #050b2a; --bg: linear-gradient(170deg, #040928, #13246b 55%, #7a0f20); --text: #f5f7ff; --muted: #c3cbf0;
  --accent: #ff4d5a; --accent-2: #ffffff; --glow: rgba(255,77,90,.25); --glow2: rgba(77,120,255,.3); }
.t-patriotic { --bg: linear-gradient(170deg, #0a1430, #1c2f66 60%, #4a0f1e); }
.t-civic { --bg-solid: #101326; --bg: linear-gradient(170deg, #0e1124, #2a2350 55%, #4a3a7a); --accent: #ffd34d; --accent-2: #9fb4ff; --glow: rgba(255,211,77,.16); --glow2: rgba(159,180,255,.2); }
.t-summer { color-scheme: light; --bg-solid: #2aa7ff; --bg: linear-gradient(180deg, #1e9bff 0%, #74d2ff 50%, #ffe39a 100%); --text: #08243f; --muted: #23527a;
  --card: rgba(255,255,255,.55); --card-b: rgba(255,255,255,.7); --accent: #ff6a00; --accent-2: #ffb703; --glow: rgba(255,240,150,.45); --glow2: rgba(255,183,3,.25); --tile: rgba(255,255,255,.7); }
.t-spring { color-scheme: light; --bg-solid: #fde7f1; --bg: linear-gradient(165deg, #fde3ef, #e8f8e6 55%, #d6efff); --text: #23324a; --muted: #566684;
  --card: rgba(255,255,255,.62); --card-b: rgba(255,92,154,.18); --accent: #ff4f93; --accent-2: #2f9e57; --glow: rgba(255,92,154,.18); --glow2: rgba(47,158,87,.15); --tile: rgba(255,255,255,.78); }
.t-fall { --bg-solid: #2a0e05; --bg: linear-gradient(170deg, #250c04, #6e260b 55%, #c9651a); --text: #fff4e6; --muted: #f2cfa8;
  --accent: #ffd166; --accent-2: #ff7b2e; --glow: rgba(255,209,102,.22); --glow2: rgba(255,123,46,.3); }
.t-winter { --bg-solid: #0b1a33; --bg: linear-gradient(175deg, #08152b, #1b4373 55%, #7fb7ea); --text: #f2f9ff; --muted: #c4dcf2;
  --accent: #bfe6ff; --accent-2: #ffffff; --glow: rgba(191,230,255,.25); --glow2: rgba(255,255,255,.12); }
.t-mothers-day { color-scheme: light; --bg-solid: #fff0f5; --bg: linear-gradient(165deg, #fff0f6, #ffd3e2 55%, #ffe6d1); --text: #3a1a2a; --muted: #7a4a5e;
  --card: rgba(255,255,255,.6); --card-b: rgba(224,69,123,.18); --accent: #e0457b; --accent-2: #ff9a6b; --glow: rgba(224,69,123,.18); --glow2: rgba(255,154,107,.18); --tile: rgba(255,255,255,.78); }
.t-fathers-day { --bg-solid: #0b1e33; --bg: linear-gradient(170deg, #0a1b2f, #18406b 55%, #2f7aa8); --accent: #ffd34d; --accent-2: #8fd3ff; --glow: rgba(143,211,255,.22); --glow2: rgba(255,211,77,.15); }
.t-labor { --bg-solid: #0f1f3d; --bg: linear-gradient(170deg, #0d1b36, #1e4fa0 60%, #c99504); --accent: #ffd34d; --accent-2: #8fd3ff; --glow: rgba(255,211,77,.25); --glow2: rgba(143,211,255,.2); }
.t-earth { --bg-solid: #031a2c; --bg: linear-gradient(170deg, #031726, #0b4a6b 55%, #1f8a5a); --accent: #7fffb0; --accent-2: #6fc3ff; --glow: rgba(127,255,176,.2); --glow2: rgba(111,195,255,.25); }
.t-fiesta { --bg-solid: #3a0a3d; --bg: linear-gradient(165deg, #33093a, #b0174f 55%, #f08a00); --accent: #ffeb3b; --accent-2: #3dd6ff; --glow: rgba(255,235,59,.25); --glow2: rgba(61,214,255,.2); }
.t-mardi-gras { --bg-solid: #1a0833; --bg: linear-gradient(165deg, #170630, #4b1a80 55%, #1f6b2a); --accent: #ffd34d; --accent-2: #7cff6b; --glow: rgba(255,211,77,.22); --glow2: rgba(124,255,107,.18); }
.t-shopping { --bg-solid: #07040f; --bg: linear-gradient(165deg, #06030d, #1c0a33 55%, #5a0f7a); --accent: #ff4fd8; --accent-2: #3dd6ff; --glow: rgba(255,79,216,.28); --glow2: rgba(61,214,255,.22); }
.t-fun, .t-birthday { --bg-solid: #1b0b3a; --bg: linear-gradient(165deg, #190a36, #5228c9 55%, #e8457f); --accent: #ffd34d; --accent-2: #3dd6ff; --glow: rgba(255,211,77,.25); --glow2: rgba(61,214,255,.2); }
.t-kwanzaa { --bg-solid: #120804; --bg: linear-gradient(170deg, #100703, #3a1206 55%, #0d4a24); --accent: #ff4b4b; --accent-2: #3fbf6f; --glow: rgba(255,75,75,.2); --glow2: rgba(63,191,111,.2); }
.t-lunar-new-year { --bg-solid: #2a0306; --bg: linear-gradient(170deg, #240205, #7a0913 55%, #c9241a); --text: #fff6e6; --muted: #ffd2bf;
  --accent: #ffd34d; --accent-2: #ffb703; --glow: rgba(255,211,77,.3); --glow2: rgba(255,90,79,.3); }
.t-hanukkah { --bg-solid: #04112e; --bg: linear-gradient(170deg, #030e28, #0b2e6b 55%, #1d5fbf); --accent: #f2c14e; --accent-2: #9fd0ff; --glow: rgba(242,193,78,.22); --glow2: rgba(159,208,255,.22); }
.t-diwali { --bg-solid: #10052a; --bg: linear-gradient(170deg, #0e0424, #3d1166 55%, #b2400c); --accent: #ffcf4d; --accent-2: #ff6b2e; --glow: rgba(255,207,77,.3); --glow2: rgba(255,107,46,.3); }
.t-holi { color-scheme: light; --bg-solid: #ffe3f3; --bg: linear-gradient(135deg, #ffd6ee 0%, #fff4c4 35%, #d4f6ff 70%, #e6dcff 100%); --text: #2a1240; --muted: #5e4a78;
  --card: rgba(255,255,255,.62); --card-b: rgba(176,77,255,.2); --accent: #b04dff; --accent-2: #ff3d9a; --glow: rgba(255,61,154,.2); --glow2: rgba(61,214,255,.2); --tile: rgba(255,255,255,.78); }
.t-ramadan { --bg-solid: #020c18; --bg: linear-gradient(175deg, #020a15, #0b2c44 55%, #15514f); --accent: #f2d16b; --accent-2: #8fe3d6; --glow: rgba(242,209,107,.2); --glow2: rgba(143,227,214,.18); }
.t-football { --bg-solid: #06160c; --bg: linear-gradient(170deg, #051209, #0f4d22 55%, #2a7a3a); --accent: #ffffff; --accent-2: #ffd34d; --glow: rgba(255,255,255,.12); --glow2: rgba(255,211,77,.18); }
.t-time { --bg-solid: #0b1530; --bg: var(--sky, linear-gradient(180deg, #0b1530 0%, #263a80 55%, #ff9a5c 100%)); --accent: #ffd34d; --accent-2: #9fd0ff; --glow: rgba(255,211,77,.18); --glow2: rgba(159,208,255,.2); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20 !important; backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: color-mix(in srgb, var(--bg-solid) 55%, transparent); border-bottom: 1px solid var(--card-b); }
.hdr { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; color: var(--accent); }
.brand span { color: var(--text); font-size: 17px; }
.brand b { color: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--tile); }
.fx-toggle { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--card-b); background: var(--tile); color: var(--accent); cursor: pointer; display: grid; place-items: center; }
.fx-toggle[aria-pressed="false"] { color: var(--muted); opacity: .7; }
@media (max-width: 720px) { .hdr { gap: 10px; } .brand span { display: none; } .nav a { padding: 7px 9px; font-size: 14px; } }

/* ---------- hero ---------- */
.hero { padding: 34px 0 26px; }
.hero.slim { padding: 40px 0 10px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 30px; align-items: center; min-height: min(72vh, 640px); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; } .hero-art { order: -1; max-width: 170px; margin: 0 auto -6px; } }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs span { opacity: .6; margin: 0 4px; }
h1 { font-size: clamp(34px, 6.2vw, 66px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 14px; font-weight: 800; text-wrap: balance;
  text-shadow: 0 2px 30px color-mix(in srgb, var(--accent) 25%, transparent); }
.answer { font-size: clamp(18px, 2.3vw, 23px); margin: 0 0 20px; color: var(--text); max-width: 640px; }
.answer strong { color: var(--accent); }
.answer .sub { display: block; font-size: 15px; color: var(--muted); margin-top: 4px; }
.answer a { text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.hero-art { display: grid; place-items: center; }
.art { width: 100%; max-width: 380px; height: auto; filter: drop-shadow(0 20px 50px color-mix(in srgb, var(--accent) 35%, transparent)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
.art .twinkle { animation: twinkle 2.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.art .lights circle { animation: twinkle 1.6s ease-in-out infinite; } .art .lights circle:nth-child(2n) { animation-delay: .8s; }
.art .glow { animation: glow 2.5s ease-in-out infinite; } .art .beat { animation: beat 1.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.art .flicker { animation: flicker 1.3s ease-in-out infinite; transform-origin: bottom center; transform-box: fill-box; }
.art .spin { animation: spin 30s linear infinite; transform-origin: 100px 100px; } .art .spin-slow { animation: spin 60s linear infinite; transform-origin: 100px 100px; }
.art .burst { animation: twinkle 1.8s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .45; transform: scale(.92); } }
@keyframes glow { 50% { fill: #ffb703; } }
@keyframes beat { 15% { transform: scale(1.08); } 30% { transform: scale(1); } 45% { transform: scale(1.06); } }
@keyframes flicker { 50% { transform: scaleY(.85) scaleX(1.05); opacity: .85; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- clock ---------- */
.clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 640px; margin: 0 0 22px; }
.clock.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { background: var(--tile); border: 1px solid var(--card-b); border-radius: 20px; padding: 16px 8px 12px; text-align: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 40px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.12); }
.tile .num { display: block; font-size: clamp(36px, 7.5vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tile .num.sm { font-size: clamp(26px, 4.6vw, 42px); }
.tile .lbl { display: block; margin-top: 8px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tile.wide { padding: 14px; }
.tile .num.tick { animation: tick .35s ease; }
@keyframes tick { from { transform: translateY(-3px); opacity: .75; } }
@media (max-width: 480px) { .clock { gap: 8px; } .tile { border-radius: 14px; padding: 12px 4px 9px; } .tile .lbl { font-size: 10.5px; letter-spacing: .08em; } }

/* ---------- buttons & forms ---------- */
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 700; font-size: 15px;
  padding: 11px 18px; border-radius: 999px; color: #1a1030; background: var(--accent); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn.ghost { background: var(--tile); color: var(--text); border: 1px solid var(--card-b); box-shadow: none; }
.search, .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; max-width: 560px; }
input, select { font: inherit; color: var(--text); background: var(--tile); border: 1px solid var(--card-b); border-radius: 14px; padding: 11px 14px; min-width: 0; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search input { flex: 1 1 240px; }
select option { color: #111; }
.result { font-size: 18px; margin: 12px 0 0; } .result.big { font-size: 24px; }
.result strong { color: var(--accent); }
.cc { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.cc label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--muted); }
.cc .row { grid-column: 1 / -1; max-width: none; }

/* ---------- content cards ---------- */
.content { display: grid; gap: 18px; padding-bottom: 50px; }
.card { background: var(--card); border: 1px solid var(--card-b); border-radius: 24px; padding: 24px 26px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.card h2 { margin: 0 0 14px; font-size: clamp(21px, 2.6vw, 27px); letter-spacing: -.02em; line-height: 1.2; }
.card h3 { margin: 18px 0 8px; font-size: 18px; }
.card.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .card.two { grid-template-columns: 1fr; } .card { padding: 20px 18px; border-radius: 20px; } }
.prose p { margin: 0 0 14px; font-size: 17px; } .prose h2 { margin-top: 22px; } .prose h2:first-child { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--tile); border: 1px solid var(--card-b); border-radius: 16px; padding: 14px; }
.stat .v { display: block; font-weight: 800; font-size: 21px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .k { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 4px; }
.progress { height: 14px; border-radius: 99px; background: var(--tile); overflow: hidden; border: 1px solid var(--card-b); margin-bottom: 12px; }
.progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--card-b); }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.facts { margin: 0; padding-left: 20px; } .facts li { margin-bottom: 8px; font-size: 16.5px; }
.kv { list-style: none; margin: 0; padding: 0; } .kv li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--card-b); }
.kv span { color: var(--muted); } .kv b { text-align: right; }
.cols { columns: 2; column-gap: 24px; padding-left: 18px; margin: 0; } .cols li { margin-bottom: 6px; }
details { border-bottom: 1px solid var(--card-b); } details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 700; padding: 14px 30px 14px 0; position: relative; list-style: none; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; color: var(--accent); }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.mini { display: grid; gap: 2px; text-decoration: none; padding: 14px 14px 12px; border-radius: 18px; background: var(--bg); color: var(--text); border: 1px solid var(--card-b);
  box-shadow: 0 8px 26px rgba(0,0,0,.18); transition: transform .15s ease; position: relative; overflow: hidden; }
.mini:hover { transform: translateY(-3px); }
.mini .e { font-size: 26px; line-height: 1; } .mini .n { font-weight: 700; font-size: 16px; margin-top: 6px; } .mini .d { font-size: 13.5px; color: var(--muted); }
.mini .d b { color: var(--accent); font-size: 15px; }
.daylinks { display: flex; flex-wrap: wrap; gap: 8px; }
.daylinks a { text-decoration: none; padding: 8px 12px; border-radius: 12px; background: var(--tile); border: 1px solid var(--card-b); font-size: 14.5px; }
.daylinks a:hover { border-color: var(--accent); }
.pager { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pager a { text-decoration: none; padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--card-b); font-weight: 600; }
.cal { width: 100%; text-align: center; } .cal caption { font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.cal th, .cal td { text-align: center; padding: 6px 0; border: 0; } .cal td a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; text-decoration: none; }
.cal td a:hover { background: var(--tile); } .cal td.hl a, .cal td.hl { background: var(--accent); color: #1a1030; border-radius: 10px; font-weight: 800; }
.grid-months { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-months h2 a { text-decoration: none; }
.hours { display: grid; gap: 10px; } .hour { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hour b { width: 36px; color: var(--accent); font-size: 18px; } .hour a { text-decoration: none; padding: 6px 9px; border-radius: 10px; background: var(--tile); border: 1px solid var(--card-b); font-size: 14px; font-variant-numeric: tabular-nums; }
.hour a:hover { border-color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { margin-top: 20px; padding: 36px 0 24px; background: color-mix(in srgb, var(--bg-solid) 70%, transparent); border-top: 1px solid var(--card-b); backdrop-filter: blur(10px); }
.foot { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 26px; }
.foot h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; } .foot li { margin-bottom: 6px; } .foot a { text-decoration: none; } .foot a:hover { text-decoration: underline; }
.foot .cols { columns: 2; padding: 0; }
.copy { font-size: 13px; margin-top: 22px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* ---------- modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 50 !important; display: grid; place-items: center; background: rgba(0,0,0,.55); padding: 20px; }
.modal .box { background: var(--bg-solid); border: 1px solid var(--card-b); border-radius: 20px; padding: 22px; max-width: 560px; width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.modal textarea { width: 100%; min-height: 110px; font: 13px/1.5 ui-monospace, Consolas, monospace; color: var(--text); background: var(--tile); border: 1px solid var(--card-b); border-radius: 12px; padding: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60 !important; background: var(--accent); color: #1a1030; font-weight: 700; padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }

/* ---------- embed ---------- */
.embed { padding: 14px; text-align: center; } .embed .clock { margin: 10px auto; } .embed-link { font-weight: 800; font-size: 18px; text-decoration: none; }
.embed-by { font-size: 12px; color: var(--muted); }

/* ---------- celebration ---------- */
body.today .hero h1 { animation: pop 1s ease; } @keyframes pop { 40% { transform: scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  #fx { display: none; }
}

/* time pages: the days tile is always 0 */
.t-time .hero .clock:not(.two) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t-time .hero .clock:not(.two) .tile:first-child { display: none; }

/* ================= review fixes (design critique 2026-11-25) ================= */
body { --page-tile: var(--tile); --page-b: var(--card-b); --accent-text: var(--accent); }
.t-summer { --accent-text: #a63f00; } .t-spring { --accent-text: #b0124f; } .t-easter { --accent-text: #4b2fc4; }
.t-holi { --accent-text: #7a1fd1; } .t-mothers-day { --accent-text: #a51f50; }
.t-summer .site-header { background: color-mix(in srgb, #1e9bff 70%, transparent); }
.brand { color: #ffd34d; } .brand b { color: var(--accent-text); }
.t-summer .brand b { color: #fff3c4; }
.answer strong, .result strong, .lead-till span[data-live="days"] { color: var(--accent-text); }
.t-easter .crumbs, .t-summer .crumbs, .t-spring .crumbs, .t-mothers-day .crumbs, .t-holi .crumbs { color: var(--text); }
.t-easter .crumbs span, .t-summer .crumbs span, .t-spring .crumbs span, .t-mothers-day .crumbs span, .t-holi .crumbs span { opacity: 1; }
.t-easter h1, .t-summer h1, .t-spring h1, .t-mothers-day h1, .t-holi h1 { text-shadow: none; }
.t-easter .site-header, .t-spring .site-header, .t-mothers-day .site-header, .t-holi .site-header { border-bottom-color: transparent; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
summary::after { color: var(--accent-text); }

/* keep particles out of the reading column on desktop */
@media (min-width: 861px) { #fx { -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.28) 0 48%, #000 70%); mask-image: linear-gradient(90deg, rgba(0,0,0,.28) 0 48%, #000 70%); } }
body.no-fx .art, body.no-fx .art * { animation: none !important; }
.fx-toggle .i-off { display: none; } .fx-toggle[aria-pressed="false"] .i-on { display: none; } .fx-toggle[aria-pressed="false"] .i-off { display: block; }

/* clock caption, answer stability */
.clock-cap { margin: -6px 0 10px; font-size: 13.5px; color: var(--muted); letter-spacing: .01em; }
.time-answer { min-height: 3.3em; }
.lead-till { margin: -4px 0 14px; font-size: 17px; }

/* mini cards: one consistent glass base, theme shown by a top stripe */
.mini { background: var(--page-tile); color: inherit; border: 1px solid var(--page-b); border-top: 4px solid var(--accent); }
.mini .d { color: inherit; opacity: .78; }
.mini .d b { color: inherit; }
.mini .e { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--bg); font-size: 22px; }

/* progress */
.progress { position: relative; height: 18px; }
.progress i { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 14px; line-height: 1; }
.progress-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin: -4px 0 8px; }
.prose p { max-width: 70ch; } .card.prose h2 { font-size: clamp(20px, 2.3vw, 24px); }

/* search suggestions */
.search { position: relative; }
.search input { height: 52px; font-size: 17px; padding-left: 16px; }
.sugg { position: absolute; top: 58px; left: 0; right: 0; z-index: 30; list-style: none; margin: 0; padding: 6px; border-radius: 16px;
  background: var(--bg-solid); border: 1px solid var(--card-b); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.sugg a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.sugg li.on a, .sugg a:hover { background: var(--tile); }

/* embed dialog */
dialog.modal-d { border: 1px solid var(--card-b); border-radius: 20px; padding: 22px; width: min(560px, 92vw); color: var(--text); background: var(--bg-solid); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
dialog.modal-d::backdrop { background: rgba(5,5,15,.6); backdrop-filter: blur(6px); }
dialog.modal-d h2 { margin: 0 0 6px; } dialog.modal-d .x { position: absolute; right: 12px; top: 10px; border: 0; background: none; color: var(--muted); font-size: 26px; cursor: pointer; }
dialog.modal-d .pv { width: 100%; height: 200px; border: 0; border-radius: 14px; margin: 6px 0 12px; background: var(--tile); }
dialog.modal-d textarea { width: 100%; min-height: 96px; font: 12.5px/1.5 ui-monospace, Consolas, monospace; color: var(--text); background: var(--tile); border: 1px solid var(--card-b); border-radius: 12px; padding: 10px; margin-bottom: 12px; }

/* countdown creator in the hero */
.hero .cc { max-width: 620px; margin-bottom: 8px; }
.cc-live[hidden], .cc[hidden] { display: none !important; }
.cc-live .actions + .actions { margin-top: 10px; }

/* forms */
.bd-form { margin-bottom: 18px; }
.calc-form label, .cc label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--muted); }

/* mobile */
@media (max-width: 720px) {
  .nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
@media (max-width: 480px) {
  .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mini { padding: 12px; } .mini .n { font-size: 15px; } .mini .e { width: 32px; height: 32px; font-size: 19px; }
  .hero .actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero .actions .btn { justify-content: center; flex-direction: column; gap: 4px; padding: 10px 6px; font-size: 13px; border-radius: 16px; }
  .calc-form { display: grid; grid-template-columns: 1fr; } .calc-form input { width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .stat { padding: 11px; } .stat .v { font-size: 18px; }
  .hour { display: grid; grid-template-columns: 30px repeat(6, minmax(0, 1fr)); } .hour a { text-align: center; padding: 6px 2px; font-size: 13px; }
  .search input { flex-basis: 100%; }
}