/* Calczora Fun: the Christmas theme (Secret Santa). Loaded after fun.css, only on Christmas pages.
   Two looks: Snow (white and Santa red, snow falling) and Cozy (gold and pine green, string lights). */

/* ================= colours ================= */
html[data-fun="xmas"] {
  --fun: #d33a3a; --fun-2: #ef6a5f; --fun-ink: #a8222a; --fun-soft: #ffe7e4; --fun-line: rgba(211, 58, 58, .3);
  --go-a: #c62f33; --go-b: #9a1d24; --x-pine: #1f7a52; --x-gold: #e8b33f;
}
html[data-fun="xmas"][data-fun-alt] {
  --fun: #1f7a52; --fun-2: #38a370; --fun-ink: #135a39; --fun-soft: #e3f3e8; --fun-line: rgba(31, 122, 82, .32);
  --go-a: #1d7a50; --go-b: #12583a;
}
html[data-fun="xmas"][data-theme="dark"] { --fun-2: #ff7d73; --fun-soft: rgba(255, 125, 115, .14); }
html[data-fun="xmas"][data-fun-alt][data-theme="dark"] { --fun-2: #5fd096; --fun-soft: rgba(95, 208, 150, .14); }

/* ================= the sky: winter white by day, midnight blue at night (Snow); honey dusk, then pine night (Cozy) ================= */
[data-fun="xmas"] body { background: #eaf4fc; }
[data-fun="xmas"] .sky { --s1: #8fc0ea !important; --s2: #cfe6f8 !important; --s3: #f7fbff !important; }
[data-fun="xmas"][data-sky="clear"] .sky { --s1: #7db6e8 !important; --s2: #c6e2f8 !important; --s3: #f5faff !important; }
[data-fun="xmas"][data-sky="cloudy"] .sky { --s1: #a5bfd6 !important; --s2: #d7e4ef !important; --s3: #f4f7fa !important; }
[data-fun="xmas"][data-theme="dark"] body { background: #0a2238; }
[data-fun="xmas"][data-theme="dark"] .sky { --s1: #04101e !important; --s2: #0a2238 !important; --s3: #16395a !important; }
[data-fun="xmas"][data-theme="dark"][data-sky="clear"] .sky { --s1: #020a14 !important; --s2: #071b30 !important; --s3: #113252 !important; }
[data-fun="xmas"][data-theme="dark"][data-sky="cloudy"] .sky { --s1: #0e1a26 !important; --s2: #1a2c3d !important; --s3: #2a4257 !important; }
[data-fun="xmas"][data-fun-alt] body { background: #f5cf9f; }
[data-fun="xmas"][data-fun-alt] .sky { --s1: #e09a55 !important; --s2: #f3cb98 !important; --s3: #fff4e4 !important; }
[data-fun="xmas"][data-fun-alt][data-sky="clear"] .sky { --s1: #dc8e45 !important; --s2: #f1c28a !important; --s3: #fff2df !important; }
[data-fun="xmas"][data-fun-alt][data-sky="cloudy"] .sky { --s1: #c9a07a !important; --s2: #e7cfb3 !important; --s3: #faf1e6 !important; }
[data-fun="xmas"][data-fun-alt][data-theme="dark"] body { background: #10291d; }
[data-fun="xmas"][data-fun-alt][data-theme="dark"] .sky { --s1: #050f0a !important; --s2: #0e2419 !important; --s3: #1a3a29 !important; }
[data-fun="xmas"][data-fun-alt][data-theme="dark"][data-sky="clear"] .sky { --s1: #030a06 !important; --s2: #0b1f15 !important; --s3: #163423 !important; }
[data-fun="xmas"][data-fun-alt][data-theme="dark"][data-sky="cloudy"] .sky { --s1: #111914 !important; --s2: #1d2b22 !important; --s3: #2c4033 !important; }
[data-fun="xmas"] .orb { display: none; }
[data-fun="xmas"] .c use { fill: #fff; }
[data-fun="xmas"][data-theme="dark"] .c use { fill: #1d3d5c; }
[data-fun="xmas"][data-fun-alt] .c use { fill: #fff7ec; }
[data-fun="xmas"][data-fun-alt][data-theme="dark"] .c use { fill: #1c3a2a; }
[data-fun="xmas"][data-fun-alt] .stars { filter: sepia(.6) saturate(1.6); }

/* ================= sky decorations ================= */
/* Snow: soft flakes near and far, a few crystals, and drifts along the bottom */
.fun-fx .sn { position: absolute; top: -12px; width: var(--s); height: var(--s); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff 0 45%, rgba(255, 255, 255, 0) 72%); animation: snowFall var(--t) linear var(--d) infinite; }
.fun-fx .fl { position: absolute; top: -30px; width: var(--s); height: var(--s); fill: none; stroke: #fff; stroke-width: 1.5px; stroke-linecap: round; opacity: 0;
  filter: drop-shadow(0 1px 2px rgba(60, 110, 170, .35)); animation: snowFall var(--t) linear var(--d) infinite, spin calc(var(--t) * .6) linear infinite; }
@keyframes snowFall {
  0% { opacity: 0; translate: 0 0; }
  8% { opacity: var(--o, .8); }
  50% { translate: var(--x) 52vh; }
  92% { opacity: var(--o, .8); }
  100% { opacity: 0; translate: calc(var(--x) * -.4) 106vh; }
}
@keyframes spin { to { rotate: 360deg; } }
.fun-fx .drift { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 72px; }
.fun-fx .drift path { fill: rgba(255, 255, 255, .7); }
.fun-fx .drift .d2 { fill: #fff; }
[data-theme="dark"] .fun-fx .drift path { fill: rgba(200, 225, 250, .14); }
[data-theme="dark"] .fun-fx .drift .d2 { fill: rgba(220, 236, 252, .2); }
[data-theme="dark"] .fun-fx .sn { background: radial-gradient(circle, #eef6ff 0 45%, rgba(238, 246, 255, 0) 72%); }
[data-theme="dark"] .fun-fx .fl { stroke: #dbeaff; filter: none; }

/* Cozy: a string of lights along the top and slow warm glows */
.fun-fx .lights, .fun-fx .bk { display: none; }
.fun-fx .lights { position: absolute; left: 0; top: 52px; width: 100%; height: 70px; overflow: visible; }
.fun-fx .lights .wire { fill: none; stroke: #4a3b2a; stroke-width: 1.6; opacity: .7; }
.fun-fx .lights .b { fill: var(--c); filter: drop-shadow(0 0 6px var(--c)); animation: twinkle 3.2s ease-in-out var(--d) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 45% { opacity: .55; } 55% { opacity: .95; } }
.fun-fx .bk { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; opacity: .0;
  background: radial-gradient(circle, rgba(var(--c), .5), rgba(var(--c), 0) 68%); animation: bokeh var(--t) ease-in-out var(--d) infinite alternate; }
@keyframes bokeh { 0% { opacity: .15; translate: 0 10px; scale: .9; } 100% { opacity: .55; translate: 0 -24px; scale: 1.1; } }
[data-fun-alt] .fun-fx .lights, [data-fun-alt] .fun-fx .bk { display: block; }
[data-fun-alt] .fun-fx .sn, [data-fun-alt] .fun-fx .fl, [data-fun-alt] .fun-fx .drift { display: none; }
[data-fun-alt][data-theme="dark"] .fun-fx .lights .wire { stroke: #8a7a5a; opacity: .5; }
@media (max-width: 700px) { .fun-fx .lights { top: 2px; height: 46px; } .fun-fx .sn:nth-child(3n) { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .fun-fx .sn, .fun-fx .fl, .fun-fx .bk { animation: none; display: none !important; }
  .fun-fx .lights .b { animation: none; }
}

/* ================= the logo: a snowflake (or a bauble) for the "o", and a Santa hat on the cloud ================= */
html[data-fun="xmas"] { --lo-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' d='M0 0V-8.5M-1.4-6.6 0-5.3 1.4-6.6M0 0 7.4-4.2M5-4.5 4.6-2.6 6.4-2M0 0 7.4 4.2M6.4 2 4.6 2.6 5 4.5M0 0V8.5M1.4 6.6 0 5.3-1.4 6.6M0 0-7.4 4.2M-5 4.5-4.6 2.6-6.4 2M0 0-7.4-4.2M-6.4-2-4.6-2.6-5-4.5'/%3E%3C/svg%3E"); }
html[data-fun="xmas"][data-fun-alt] { --lo-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -11 20 21'%3E%3Cpath d='M0-5.5a7.5 7.5 0 1 1-.01 0zM-2.8-8.8h5.6v3.8h-5.6z'/%3E%3C/svg%3E"); }
html[data-fun="xmas"] .tw .lo { width: .62em; height: .62em; vertical-align: -.03em; }
html[data-fun="xmas"] .lo-badge.lo-hat { left: 9px; top: -9px; width: 30px; height: 23px; fill: none; stroke: none; rotate: -16deg; transform-origin: 40% 90%;
  filter: drop-shadow(0 2px 2px rgba(60, 20, 20, .3)); animation: hatTip 5s ease-in-out infinite; }
.lo-hat .lh-cone { fill: #d33a3a; stroke: #9a1d24; stroke-width: 1.2px; stroke-linejoin: round; }
.lo-hat .lh-fur, .lo-hat .lh-pom { fill: #fff; stroke: #c9d7e6; stroke-width: 1px; }
[data-fun-alt] .lo-hat .lh-cone { fill: #c23a3a; }
@keyframes hatTip { 0%, 80%, 100% { transform: none; } 86% { transform: rotate(-8deg); } 93% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { html[data-fun="xmas"] .lo-badge.lo-hat { animation: none; } }
/* Cozy by day: the honey sky needs the deeper pine for the logo */
html[data-fun="xmas"][data-fun-alt]:not([data-theme="dark"]) .hd .tw b, html[data-fun="xmas"][data-fun-alt]:not([data-theme="dark"]) .tw .lo { color: var(--fun-ink); }
html[data-fun="xmas"][data-fun-alt]:not([data-theme="dark"]) .tw .lo { background: var(--fun-ink); }
html[data-fun="xmas"]:not([data-fun-alt]):not([data-theme="dark"]) .hd .tw b { color: var(--fun-ink); }
html[data-fun="xmas"]:not([data-fun-alt]):not([data-theme="dark"]) .tw .lo { background: var(--fun-ink); }

/* ================= the love theme's pinks, swapped for this theme's colours ================= */
html[data-fun="xmas"][data-theme="dark"] .eyebrow { color: var(--fun-2); }
html[data-fun="xmas"] .cf-in:focus-within, html[data-fun="xmas"] .fun-name:focus { border-color: var(--fun); box-shadow: 0 0 0 3px var(--fun-line); }
html[data-fun="xmas"] .btn.fun-go { box-shadow: 0 12px 22px -14px rgba(120, 20, 20, .7), inset 0 1px 0 rgba(255, 255, 255, .3); }
html[data-fun="xmas"][data-fun-alt] .btn.fun-go { box-shadow: 0 12px 22px -14px rgba(10, 60, 35, .75), inset 0 1px 0 rgba(255, 255, 255, .3); }
@media (hover: hover) { html[data-fun="xmas"] .btn.soft:hover { color: var(--fun-ink); background: color-mix(in srgb, var(--fun-soft) 60%, var(--fun-2)); } }
html[data-fun="xmas"][data-theme="dark"] .btn.soft { color: #ffd9d5; background: rgba(255, 125, 115, .14); box-shadow: inset 0 0 0 1px rgba(255, 125, 115, .26); }
html[data-fun="xmas"][data-fun-alt][data-theme="dark"] .btn.soft { color: #cdf1dc; background: rgba(95, 208, 150, .13); box-shadow: inset 0 0 0 1px rgba(95, 208, 150, .26); }
@media (hover: hover) { html[data-fun="xmas"][data-theme="dark"] .btn.soft:hover { color: #fff; background: rgba(255, 255, 255, .14); } }
html[data-fun="xmas"][data-theme="dark"] .fun-block .fb-head p { color: #d6e6f5; }
html[data-fun="xmas"][data-fun-alt][data-theme="dark"] .fun-block .fb-head p { color: #d9ead9; }

/* ================= night cards: midnight frost (Snow) and pine (Cozy) ================= */
html[data-fun="xmas"][data-theme="dark"] {
  --frost: rgba(14, 38, 62, .86); --quiet: rgba(14, 38, 62, .78); --glass: rgba(14, 38, 62, .86);
  --hero-a: rgba(28, 64, 98, .84); --hero-b: rgba(12, 32, 54, .8);
  --field: rgba(6, 20, 36, .9); --solid: rgba(6, 20, 36, .86); --grade: #1d3c5a;
  --tint: rgba(150, 200, 255, .1); --tint-strong: rgba(150, 200, 255, .18);
  --edge: rgba(190, 220, 250, .18); --hairline: rgba(210, 230, 250, .12); --field-line: rgba(190, 220, 250, .3);
}
html[data-fun="xmas"][data-fun-alt][data-theme="dark"] {
  --frost: rgba(18, 44, 32, .86); --quiet: rgba(18, 44, 32, .78); --glass: rgba(18, 44, 32, .86);
  --hero-a: rgba(30, 70, 50, .84); --hero-b: rgba(14, 36, 26, .8);
  --field: rgba(6, 20, 13, .9); --solid: rgba(6, 20, 13, .86); --grade: #1f4433;
  --tint: rgba(232, 179, 63, .1); --tint-strong: rgba(232, 179, 63, .18);
  --edge: rgba(210, 235, 215, .18); --hairline: rgba(220, 240, 225, .12); --field-line: rgba(200, 230, 210, .3);
}
html[data-fun="xmas"][data-theme="dark"] .tool > .result::after, html[data-fun="xmas"][data-theme="dark"] .reveal-card::after { background: radial-gradient(70% 46% at 50% 30%, rgba(150, 200, 255, .16), rgba(150, 200, 255, 0) 70%); }
html[data-fun="xmas"][data-fun-alt][data-theme="dark"] .tool > .result::after, html[data-fun="xmas"][data-fun-alt][data-theme="dark"] .reveal-card::after { background: radial-gradient(70% 46% at 50% 30%, rgba(232, 179, 63, .16), rgba(232, 179, 63, 0) 70%); }

/* ================= the buddy: Santa hat, a present, and a scarf when it's cozy ================= */
.santa-mascot .ht-cone { fill: #d33a3a; stroke: #9a1d24; }
.santa-mascot .ht-fur, .santa-mascot .ht-pom { fill: #fff; stroke: #bccbdc; }
.santa-mascot .ht-fluff { stroke: #d5e0ec; }
.santa-mascot .gf-box { fill: #d33a3a; stroke: #9a1d24; }
.santa-mascot .gf-lid { fill: #e24a48; stroke: #9a1d24; }
.santa-mascot .gf-rb { stroke: #fff; }
.santa-mascot .gf-bow { fill: #fff; stroke: #bccbdc; }
.santa-mascot .scarf { display: none; }
.santa-mascot .sc-band, .santa-mascot .sc-tail { fill: #c23a3a; stroke: #8f1f27; }
.santa-mascot .sc-st { stroke: #fff3d6; }
[data-fun-alt] .santa-mascot .scarf { display: inline; }
[data-fun-alt] .santa-mascot .gf-box { fill: #1f7a52; stroke: #12583a; }
[data-fun-alt] .santa-mascot .gf-lid { fill: #2a8d61; stroke: #12583a; }
[data-fun-alt] .santa-mascot .gf-rb { stroke: #e8b33f; }
[data-fun-alt] .santa-mascot .gf-bow { fill: #f2c65a; stroke: #b5841c; }
.santa-mascot .ht-pom { transform-box: fill-box; transform-origin: 30% 0; animation: pomSwing 4s ease-in-out infinite; }
@keyframes pomSwing { 0%, 100% { rotate: 0deg; } 50% { rotate: 10deg; } }
.santa-mascot .gift { transform-box: fill-box; transform-origin: 50% 100%; }
[data-mood="star"] .santa-mascot .gift, .santa-mascot[data-mood="star"] .gift { animation: giftHop .9s cubic-bezier(.3, 1.5, .5, 1) 2; }
@keyframes giftHop { 40% { translate: 0 -6px; rotate: -6deg; } }
@media (prefers-reduced-motion: reduce) { .santa-mascot .ht-pom, .santa-mascot .gift { animation: none !important; } }

/* ================= presents (gift icons used on the list, the pile and the links) ================= */
.gift-ico { display: block; width: 40px; height: 40px; overflow: visible; }
.gift-ico .gb { fill: var(--g, #d33a3a); }
.gift-ico .gl { fill: var(--g2, #e24a48); }
.gift-ico .gr { stroke: var(--rb, #fff); stroke-width: 5px; }
.gift-ico .gw { fill: var(--rb, #fff); stroke: rgba(0, 0, 0, .18); stroke-width: 1px; }
.g0 { --g: #d33a3a; --g2: #e5524f; --rb: #fff; }
.g1 { --g: #1f7a52; --g2: #2a8d61; --rb: #f2c65a; }
.g2 { --g: #e8b33f; --g2: #f2c65a; --rb: #c23a3a; }
.g3 { --g: #3d8fd6; --g2: #5aa5e6; --rb: #fff; }
.g4 { --g: #fff; --g2: #f3f6fa; --rb: #d33a3a; }
.g5 { --g: #8f1f27; --g2: #a8323a; --rb: #f2c65a; }
.g4 .gift-ico .gb, .g4 .gift-ico .gl { stroke: #c9d6e4; stroke-width: 1px; }

/* ================= Santa's list ================= */
.santa-list { position: relative; overflow: hidden; padding-top: 26px; }
/* a candy-cane edge (Snow) or a ribbon of pine and gold (Cozy) along the top */
.sl-stripe { position: absolute; left: 0; right: 0; top: 0; height: 9px;
  background: repeating-linear-gradient(-45deg, #d33a3a 0 12px, #fff 12px 24px); }
[data-fun-alt] .sl-stripe { background: repeating-linear-gradient(-45deg, #1f7a52 0 12px, #e8b33f 12px 18px, #1f7a52 18px 30px, #fff7e6 30px 36px); }
[data-theme="dark"] .sl-stripe { opacity: .85; }
.santa-list .card-head h2 { font: 800 23px/1.2 var(--display, "Bricolage Grotesque"), system-ui, sans-serif; }
.sl-help { margin-top: 4px; font-size: 14.5px; color: var(--body-soft, #3d4a6b); }
[data-theme="dark"] .sl-help { color: var(--navy-2); }
.name-add { display: flex; gap: 8px; margin-top: 14px; }
.name-add .fun-name { flex: 1; min-width: 0; }
.btn.add-btn { flex: none; min-width: 92px; min-height: 50px; margin: 0; gap: 6px; color: #fff; border-radius: 14px;
  background-color: var(--go-b); background-image: linear-gradient(180deg, var(--go-a), var(--go-b)); box-shadow: 0 8px 16px -10px rgba(80, 20, 20, .6); }
.btn.add-btn:disabled { opacity: .5; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 0; list-style: none; }
.tag { position: relative; display: inline-flex; align-items: center; gap: 2px; max-width: 100%; min-height: 38px; padding: 0 4px 0 22px; rotate: var(--r, 0deg);
  border-radius: 6px 12px 12px 6px; background: var(--field); box-shadow: inset 0 0 0 1.5px var(--fun-line), 0 4px 10px -8px rgba(20, 40, 80, .5);
  font: 700 15px/1.1 "Figtree", system-ui, sans-serif; color: var(--navy); animation: tagIn .32s cubic-bezier(.2, .9, .3, 1.3) backwards; }
/* the hole of a gift tag, in the person's wrapping-paper colour */
.tag::before { content: ""; position: absolute; left: 8px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 2px var(--field), 0 0 0 3px var(--fun-line); }
.tag > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-x { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--navy-2); cursor: pointer; }
@media (hover: hover) { .tag-x:hover:not(:disabled) { color: var(--fun-ink); background: var(--fun-soft); } }
.tag-x:disabled { opacity: .35; cursor: default; }
@keyframes tagIn { from { opacity: 0; scale: .7; } }
.tag-count { margin-top: 10px; font-size: 13.5px; font-weight: 650; color: var(--navy-2); }
.tag-count.ready { color: var(--fun-ink); }
[data-theme="dark"] .tag-count.ready { color: var(--fun-2); }
.sl-grid { margin-top: 6px; border-top: 1px solid var(--hairline); }
.sl-grid .cf:last-of-type { border-bottom: 1px solid var(--hairline); padding-bottom: 14px; }
.cf-in.wide { width: min(240px, 58%); }
.cf-in.wide input[type="text"] { text-align: right; font: 700 16.5px/1 "Figtree", system-ui, sans-serif; }
.cf-in.wide input::placeholder { color: var(--navy-2); opacity: .75; font-weight: 600; }
.santa-list .chips button { min-height: 36px; font-size: 14px; }
.santa-list .chips button[aria-pressed="true"], .idea-tabs button[aria-pressed="true"] { background: var(--go-b); border-color: var(--go-b); color: #fff; }
[data-theme="dark"] .santa-list .chips button[aria-pressed="true"], [data-theme="dark"] .idea-tabs button[aria-pressed="true"] { background: var(--fun-2); border-color: var(--fun-2); color: #10223a; }
/* keep apart */
.apart { margin-top: 12px; border-radius: 14px; background: var(--tint); }
.apart summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-height: 48px; padding: 13px 14px; cursor: pointer; list-style: none; font-weight: 700; font-size: 15px; }
.apart summary::-webkit-details-marker { display: none; }
.apart summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate .2s; }
.apart[open] summary::after { rotate: 225deg; translate: 0 3px; }
.apart summary small { font-size: 13px; font-weight: 500; color: var(--navy-2); }
.apart > :not(summary) { margin-left: 14px; margin-right: 14px; }
.ap-help { font-size: 13.5px; color: var(--navy-2); }
.ap-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding-bottom: 6px; }
.ap-row select { flex: 1 1 110px; min-width: 0; height: 44px; padding: 0 10px; border: 1.5px solid var(--field-line); border-radius: 12px; background: var(--field); color: var(--navy); font: 650 15px/1 "Figtree", system-ui, sans-serif; }
.ap-row > span { font-size: 13.5px; color: var(--navy-2); }
.ap-row .btn { flex: 1 1 100%; margin: 0; min-height: 44px; }
.apart.few .ap-row { opacity: .5; pointer-events: none; }
.ap-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; padding: 0; list-style: none; }
.ap-list li { display: inline-flex; align-items: center; gap: 2px; padding-left: 12px; border-radius: 99px; background: var(--field); box-shadow: inset 0 0 0 1px var(--fun-line); font-size: 14px; font-weight: 650; }
.ap-list i { font-style: normal; color: var(--fun); }
.ap-list:empty { display: none; }
@media (min-width: 520px) { .ap-row .btn { flex: none; } }
.santa-list .fun-go { gap: 8px; }
.fun-go .gift-ico.go { width: 24px; height: 24px; --g: rgba(255, 255, 255, .95); --g2: #fff; --rb: var(--go-b); }
.fun-go .gift-ico.go .gw { stroke: none; }
/* after the draw the list is locked */
.lock-note { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin: 10px 0 2px; padding: 10px 10px 10px 14px; border-radius: 14px;
  background: var(--fun-soft); color: var(--fun-ink); font-size: 14px; font-weight: 650; }
[data-theme="dark"] .lock-note { color: #fff; }
.lock-note .btn { margin: 0; min-height: 40px; padding: 0 14px; background: var(--field); }
.santa-list.locked .name-add, .santa-list.locked .sl-grid, .santa-list.locked .apart, .santa-list.locked .sl-help { opacity: .55; }
.santa-list.locked .tags { opacity: .8; }

/* ================= the stage: a pile of presents, then everyone's link ================= */
.santa-stage { min-height: 380px; justify-content: flex-start; }
.santa-stage .result-mascot.santa-mascot { position: relative !important; top: auto; right: auto; width: 150px !important; height: 104px !important; margin: 6px auto 0; animation: none; }
.santa-stage .eyebrow { align-self: center; padding-right: 0; }
.pile-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; }
.pile { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 10px 6px; width: 100%; margin-top: 10px; padding: 4px 0 12px; min-height: 40px;
  border-bottom: 3px solid var(--fun-line); }
.pg { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 66px; rotate: var(--r); }
.pg .gift-ico { width: 48px; height: 48px; filter: drop-shadow(0 6px 6px rgba(40, 30, 60, .22)); }
.pg span { max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 750; color: var(--navy); }
.pile.many .pg { width: 54px; } .pile.many .pg .gift-ico { width: 38px; height: 38px; } .pile.many .pg span { max-width: 54px; font-size: 11.5px; }
.pg.drop { animation: giftDrop .62s cubic-bezier(.3, 1.4, .5, 1) calc(var(--i) * 60ms) backwards; }
@keyframes giftDrop { 0% { opacity: 0; translate: 0 -60px; } 55% { opacity: 1; translate: 0 4px; scale: 1.08 .9; } 80% { translate: 0 -3px; scale: .98 1.03; } 100% { translate: 0 0; scale: 1; } }
.pg.leave { animation: giftOut .22s ease-in forwards; }
@keyframes giftOut { to { opacity: 0; scale: .5; } }
.pile-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 4px; font-size: 15px; color: var(--body-soft, #3d4a6b); }
[data-theme="dark"] .pile-empty { color: var(--navy-2); }
.pile-empty .btn { margin: 0; min-height: 44px; }
.pile-empty[hidden] { display: none; }
.pile:empty { border-bottom: 0; min-height: 0; padding: 0; }
.pile-sub { margin-top: 10px; font-size: 14px; font-weight: 650; color: var(--navy-2); }
.pile-sub:empty { display: none; }
/* the draw: presents shake, the buddy concentrates */
.santa-stage.shaking .pg { animation: giftShake .26s ease-in-out calc(var(--n, 0) * 30ms) 4; }
.santa-stage.shaking .pg:nth-child(2n) { animation-delay: 60ms; }
.santa-stage.shaking .pg:nth-child(3n) { animation-delay: 120ms; }
@keyframes giftShake { 25% { rotate: -9deg; translate: 0 -4px; } 75% { rotate: 9deg; translate: 0 -2px; } }
/* links */
.links { display: flex; flex-direction: column; align-items: center; width: 100%; }
.links[hidden] { display: none; }
.links .big { margin-top: 4px; font-size: clamp(38px, 10vw, 50px); }
.santa-stage.landed .links .big { animation: land .6s cubic-bezier(.2, .9, .3, 1.35); }
.sent-bar { width: 100%; height: 8px; margin-top: 14px; border-radius: 99px; background: var(--tint-strong); overflow: hidden; }
.sent-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--go-a), var(--fun-2)); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.sent-count { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--navy-2); }
.links.all-sent .sent-count { color: var(--fun-ink); }
[data-theme="dark"] .links.all-sent .sent-count { color: var(--fun-2); }
.link-list { width: 100%; margin: 12px 0 0; padding: 0; list-style: none; text-align: left; }
.lk { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--hairline); }
.lk:first-child { border-top: 0; }
.lk .gift-ico { width: 34px; height: 34px; }
.lk-n b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; color: var(--navy); }
.lk-n small { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 650; color: var(--navy-2); }
.lk.sent .lk-n small { color: var(--fun-ink); }
[data-theme="dark"] .lk.sent .lk-n small { color: var(--fun-2); }
.calc-tool .result .lk .btn { margin: 0; min-height: 42px; padding: 0 12px; gap: 6px; font-size: 14.5px; }
.calc-tool .result .lk .lk-copy { width: 44px; padding: 0; }
.lk.rise { animation: lkRise .42s cubic-bezier(.2, .9, .3, 1.1) calc(var(--i) * 55ms) backwards; }
@keyframes lkRise { from { opacity: 0; translate: 0 10px; } }
.lk.sent .lk-send { box-shadow: inset 0 0 0 1px var(--fun-line); background: transparent; }
.link-note { margin-top: 10px; font-size: 13.5px; color: var(--navy-2); }
.santa-stage .res-actions.three #announceBtn { grid-column: 1 / -1; }
.btn .gift-ico.sm { width: 18px; height: 18px; --g: currentColor; --g2: currentColor; --rb: var(--fun-soft); }
.btn.armed { color: #fff !important; background: var(--go-b) !important; }
@media (max-width: 340px) { .calc-tool .result .lk .lk-send span { display: none; } .calc-tool .result .lk .lk-send { width: 44px; padding: 0; } }
@media (prefers-reduced-motion: reduce) { .tag, .pg.drop, .lk.rise, .santa-stage.shaking .pg { animation: none; } }

/* ================= the scratch card (someone opened their link) ================= */
main[data-mode="reveal"] .santa-list, main[data-mode="reveal"] .santa-stage { display: none; }
.reveal-card { position: relative; isolation: isolate; grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 620px; width: 100%; margin: 0 auto;
  padding: 26px 20px 22px; border-radius: 28px; background: linear-gradient(150deg, var(--hero-a), var(--hero-b));
  -webkit-backdrop-filter: blur(22px) saturate(1.45); backdrop-filter: blur(22px) saturate(1.45); }
.reveal-card[hidden] { display: none; }
.reveal-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
.reveal-card .result-mascot.santa-mascot { position: relative !important; top: auto; right: auto; width: 140px !important; height: 97px !important; margin: 0 auto 2px; animation: none; }
.reveal-card .eyebrow { align-self: center; padding-right: 0; }
.rv-hi { margin-top: 4px; font: 800 clamp(30px, 8vw, 40px)/1.1 var(--display, "Bricolage Grotesque"), system-ui, sans-serif; letter-spacing: -.03em; color: var(--navy); }
[data-theme="dark"] .rv-hi { color: #fff; }
.rv-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.rv-meta li { padding: 5px 12px; border-radius: 99px; background: var(--fun-soft); color: var(--fun-ink); font-size: 13.5px; font-weight: 750; }
[data-theme="dark"] .rv-meta li { color: #fff; }
.rv-meta:empty { display: none; }
.rv-step { width: 100%; margin-top: 18px; }
.rv-step[hidden] { display: none; }
.rv-q { font-size: 17px; color: var(--navy); }
.rv-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.rv-btns .btn { margin: 0; min-height: 52px; }
.rv-btns .btn.fun-go { margin: 0; }
.rv-stop { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--tint); font-size: 14.5px; }
.scratch { position: relative; width: 100%; height: 210px; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 34px -22px rgba(40, 20, 30, .7), inset 0 0 0 1.5px var(--fun-line); }
.sc-under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px;
  background: radial-gradient(120% 90% at 50% 0%, #fff, var(--fun-soft)); }
[data-theme="dark"] .sc-under { background: radial-gradient(120% 90% at 50% 0%, rgba(150, 200, 255, .22), rgba(150, 200, 255, .04) 70%), var(--hero-b); }
[data-theme="dark"][data-fun-alt] .sc-under { background: radial-gradient(120% 90% at 50% 0%, rgba(232, 179, 63, .2), rgba(232, 179, 63, .03) 70%), var(--hero-b); }
.sc-k { font-size: 14.5px; font-weight: 700; color: var(--navy-2); }
.sc-name { max-width: 100%; overflow-wrap: anywhere; font: 800 clamp(34px, 10vw, 52px)/1.05 var(--display, "Bricolage Grotesque"), system-ui, sans-serif; letter-spacing: -.035em; color: var(--fun-ink); }
[data-theme="dark"] .sc-name { color: #fff; }
.sc-under .gift-ico { width: 34px; height: 34px; }
.sc-cover { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .5s; }
.sc-cover:active { cursor: grabbing; }
.sc-cover.gone { opacity: 0; pointer-events: none; }
.scratch.wiggle { animation: cardWiggle .8s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes cardWiggle { 20% { rotate: -2deg; } 45% { rotate: 1.6deg; } 70% { rotate: -.8deg; } }
.sc-hint { margin-top: 10px; font-size: 14px; font-weight: 650; color: var(--navy-2); transition: opacity .3s; }
.sc-hint.off { opacity: 0; }
.btn.sc-skip { margin: 6px auto 0; min-height: 42px; padding: 0 16px; font-size: 14.5px; }
/* the burst when the card is scratched off: snow, or confetti in Cozy */
.bt { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: var(--c); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); animation: burst 1.3s cubic-bezier(.15, .7, .3, 1) var(--d) forwards; }
.bt.fk { border-radius: 2px; width: 7px; height: 12px; rotate: var(--r); }
@keyframes burst { 0% { opacity: 1; translate: 0 0; scale: .4; } 70% { opacity: 1; } 100% { opacity: 0; translate: var(--x) calc(var(--y) + 60px); scale: 1; } }
.rv-secret { font-size: 15.5px; color: var(--navy); }
.rv-secret b { color: var(--fun-ink); }
[data-theme="dark"] .rv-secret b { color: var(--fun-2); }
.rv-plan { margin-top: 6px; font-size: 15px; color: var(--body-soft, #3d4a6b); }
[data-theme="dark"] .rv-plan { color: var(--navy-2); }
.rv-plan b { color: var(--navy); }
.rv-ideas { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font-weight: 750; color: var(--fun-ink); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .rv-ideas { color: var(--fun-2); }
.wish { margin-top: 14px; padding: 16px; border-radius: 18px; background: var(--tint); text-align: left; }
.wish label { display: block; font-weight: 750; font-size: 16px; color: var(--navy); }
.wish label small { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--navy-2); }
.wish textarea { display: block; width: 100%; min-height: 88px; margin-top: 10px; padding: 12px 14px; border: 1.5px solid var(--field-line); border-radius: 14px; background: var(--field); color: var(--navy);
  font: 600 16px/1.4 "Figtree", system-ui, sans-serif; resize: vertical; }
.wish textarea:focus { outline: none; border-color: var(--fun); box-shadow: 0 0 0 3px var(--fun-line); }
.wish .res-actions .btn { margin: 0; min-height: 48px; }
.wish .res-actions .btn.fun-go { margin: 0; font-size: 15.5px; gap: 6px; }
.rv-own { margin-top: 18px; font-size: 14px; }
.rv-own a { color: var(--navy-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) { .rv-btns, .wish .res-actions { grid-template-columns: 1fr; } .scratch { height: 190px; } }
@media (prefers-reduced-motion: reduce) { .scratch.wiggle, .bt { animation: none; } .bt { display: none; } }

/* ================= desktop: list on the left, the pile on the right ================= */
@media (min-width: 960px) {
  html[data-fun="xmas"] .tool.calc-tool { grid-template-columns: minmax(0, 1fr) minmax(400px, 1fr); }
  .santa-stage { position: sticky !important; top: 86px !important; }
  .scratch { height: 240px; }
}

/* ================= gift ideas ================= */
.idea-tabs { margin-top: 16px; }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.ideas li { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 14px; border-radius: 18px;
  background: var(--glass); box-shadow: inset 0 0 0 1.5px var(--fun-line), 0 10px 24px -20px rgba(20, 40, 80, .6); animation: lkRise .4s ease-out calc(var(--i) * 35ms) backwards; }
.ideas .ie { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--fun-soft); font-size: 22px; }
.ideas b { font-size: 15.5px; color: var(--navy); }
.ideas small { font-size: 13px; color: var(--navy-2); }
@media (prefers-reduced-motion: reduce) { .ideas li { animation: none; } }

/* ================= footer and header pop-ups follow the theme ================= */
html[data-fun="xmas"] .sitefoot { background: linear-gradient(180deg, #eef6fd, #dcecf9); }
html[data-fun="xmas"][data-fun-alt] .sitefoot { background: linear-gradient(180deg, #fbefd9, #f3dcb5); }
html[data-fun="xmas"][data-theme="dark"] .sitefoot { background: linear-gradient(180deg, #14385a, #0b2540); color: #d6e6f5; }
html[data-fun="xmas"][data-fun-alt][data-theme="dark"] .sitefoot { background: linear-gradient(180deg, #1d4433, #112c20); color: #d9ead9; }
html[data-fun="xmas"][data-theme="dark"] .sitefoot li a, html[data-fun="xmas"][data-theme="dark"] .sitefoot p { color: #d6e6f5; }
html[data-fun="xmas"][data-fun-alt][data-theme="dark"] .sitefoot li a, html[data-fun="xmas"][data-fun-alt][data-theme="dark"] .sitefoot p { color: #d9ead9; }
html[data-fun="xmas"][data-theme="dark"] .sitefoot .base { border-color: rgba(220, 235, 250, .12); }
html[data-fun="xmas"] { --pop: #f7fbff; --pop-seg: #e4f0fa; --pop-on: #fff; --pop-ink: #12243f; --pop-soft: #4a5f7c; --pop-ring: rgba(211, 58, 58, .25); }
html[data-fun="xmas"][data-fun-alt] { --pop: #fffaf1; --pop-seg: #f6ead3; --pop-on: #fff; --pop-ink: #1f2a1f; --pop-soft: #5a5a44; --pop-ring: rgba(31, 122, 82, .28); }
html[data-fun="xmas"][data-theme="dark"] { --pop: #10304d; --pop-seg: rgba(150, 200, 255, .1); --pop-on: rgba(255, 255, 255, .94); --pop-ink: #eaf3fc; --pop-soft: #b7cbe0; }
html[data-fun="xmas"][data-fun-alt][data-theme="dark"] { --pop: #143526; --pop-seg: rgba(95, 208, 150, .1); --pop-on: rgba(255, 255, 255, .94); --pop-ink: #e8f4ea; --pop-soft: #b9d3bf; }
html[data-fun="xmas"] .hd-pop { box-shadow: 0 30px 60px -26px rgba(10, 30, 60, .55), 0 0 0 1px var(--fun-line); }
html[data-fun="xmas"][data-theme="dark"] .mega-cat small { background: rgba(255, 255, 255, .12); color: #fff; }
html[data-fun="xmas"][data-theme="dark"] .hd-btn[aria-expanded="true"] { background: rgba(150, 200, 255, .22); }
html[data-fun="xmas"][data-fun-alt][data-theme="dark"] .hd-btn[aria-expanded="true"] { background: rgba(95, 208, 150, .22); }
@media (hover: hover) { html[data-fun="xmas"][data-theme="dark"] .hd-btn:hover { background: rgba(150, 200, 255, .16); } html[data-fun="xmas"][data-fun-alt][data-theme="dark"] .hd-btn:hover { background: rgba(95, 208, 150, .16); } }
html[data-fun="xmas"][data-theme="dark"] .hd-seg button[aria-pressed="true"] { color: #10223a; }
html[data-fun="xmas"] .sitefoot .ft b { color: var(--fun-ink); }
html[data-fun="xmas"][data-theme="dark"] .sitefoot .ft b { color: var(--fun-2); }

/* the hero's coloured word: Santa red (Snow) or pine (Cozy) on the pale sky, gold at night; the underline in the other colour */
html[data-fun="xmas"]:not([data-theme="dark"]) .hero h1 em { color: var(--fun); text-shadow: 0 2px 12px rgba(255, 255, 255, .7); }
html[data-fun="xmas"][data-fun-alt]:not([data-theme="dark"]) .hero h1 em { color: var(--fun-ink); }
html[data-fun="xmas"] .under path { stroke: var(--x-gold); }
html[data-fun="xmas"][data-fun-alt] .under path { stroke: #c23a3a; }
/* phones: keep "Santa's list" on one line next to the currency */
.santa-list .card-head h2 { white-space: nowrap; }
@media (max-width: 430px) { .santa-list .card-head .cur select { max-width: 150px; padding-right: 28px; font-size: 15px; } .santa-list .card-head h2 { font-size: 21px; } }
