/* ==========================================================================
   NEON AUDIO — WINTER EXTRAS (opt-in, on top of winter.css)
   The SAME running motifs as halloween-extras.css, re-dressed for winter, so the
   site keeps one personality from holiday to holiday (Tyler, 2026-11-03):
     jack-o'-lantern mark -> snowflake mark     the bat     -> a sleigh + reindeer
     October bar          -> Winterscape bar
     404 headstone        -> 404 "gone sledding" drift
   Ooze and cobweb corners have NO winter version on purpose: Tyler cut the
   icicles and frost corners on 2026-11-03 ("cheap" / no cobwebs for winter).
   Pure CSS, no markup change, no JS, no image files. Blocks are independent.
   All motion is disabled under prefers-reduced-motion at the bottom.
   ========================================================================== */

/* ── 1. SNOWFLAKE MARK ──────────────────────────────────────────────────────
   Masks the EXISTING sun logo down to a snowflake, so it keeps its gradient and
   colour cycle. Stroke width is heavy on purpose: at 22px a thin flake vanishes. */
.sunmark,.sun{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='2.6'%3E%3Cpath transform='rotate(0)' d='M0 0L0-9M0-4.5L-2.6-7M0-4.5L2.6-7M0-6.8L-1.6-8.4M0-6.8L1.6-8.4'/%3E%3Cpath transform='rotate(60)' d='M0 0L0-9M0-4.5L-2.6-7M0-4.5L2.6-7M0-6.8L-1.6-8.4M0-6.8L1.6-8.4'/%3E%3Cpath transform='rotate(120)' d='M0 0L0-9M0-4.5L-2.6-7M0-4.5L2.6-7M0-6.8L-1.6-8.4M0-6.8L1.6-8.4'/%3E%3Cpath transform='rotate(180)' d='M0 0L0-9M0-4.5L-2.6-7M0-4.5L2.6-7M0-6.8L-1.6-8.4M0-6.8L1.6-8.4'/%3E%3Cpath transform='rotate(240)' d='M0 0L0-9M0-4.5L-2.6-7M0-4.5L2.6-7M0-6.8L-1.6-8.4M0-6.8L1.6-8.4'/%3E%3Cpath transform='rotate(300)' d='M0 0L0-9M0-4.5L-2.6-7M0-4.5L2.6-7M0-6.8L-1.6-8.4M0-6.8L1.6-8.4'/%3E%3C/g%3E%3C/svg%3E");
          mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='2.6'%3E%3Cpath transform='rotate(0)' d='M0 0L0-9M0-4.5L-2.6-7M0-4.5L2.6-7M0-6.8L-1.6-8.4M0-6.8L1.6-8.4'/%3E%3Cpath transform='rotate(60)' d='M0 0L0-9M0-4.5L-2.6-7M0-4.5L2.6-7M0-6.8L-1.6-8.4M0-6.8L1.6-8.4'/%3E%3Cpath transform='rotate(120)' d='M0 0L0-9M0-4.5L-2.6-7M0-4.5L2.6-7M0-6.8L-1.6-8.4M0-6.8L1.6-8.4'/%3E%3Cpath transform='rotate(180)' d='M0 0L0-9M0-4.5L-2.6-7M0-4.5L2.6-7M0-6.8L-1.6-8.4M0-6.8L1.6-8.4'/%3E%3Cpath transform='rotate(240)' d='M0 0L0-9M0-4.5L-2.6-7M0-4.5L2.6-7M0-6.8L-1.6-8.4M0-6.8L1.6-8.4'/%3E%3Cpath transform='rotate(300)' d='M0 0L0-9M0-4.5L-2.6-7M0-4.5L2.6-7M0-6.8L-1.6-8.4M0-6.8L1.6-8.4'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-size:contain; mask-size:contain; -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
}

/* ── 2. A SLEIGH CROSSES THE HERO ───────────────────────────────────────────
   The bat's slot and timing contract: ONE crossing, slow, behind the copy, every
   40s, climbing as it goes. Two reindeer, not nine: at this size nine is a smudge. */
.hero{position:relative}
.hero::after{
  content:"";position:absolute;top:22%;left:-14%;width:118px;height:26px;z-index:0;
  pointer-events:none;background:var(--ink);opacity:.45;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 113 25'%3E%3Cg fill='%23fff'%3E%3Cellipse cx='12' cy='16' rx='8.5' ry='3.6'/%3E%3Cpath d='M17 14 L20.5 7.5 L23 8.5 L20.5 16 Z'/%3E%3Cellipse cx='23.2' cy='7.6' rx='3' ry='1.9'/%3E%3Cpath d='M25 7 L28 8.2 L25.5 9.2 Z'/%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M22 6 L19.5 1 M20.6 3.4 L22.6 1.2 M23.4 6 L24.6 0.8'/%3E%3Cpath d='M18 18 L25 20.5 M16.5 18.8 L21.5 23'/%3E%3Cpath d='M6.5 18 L0.5 19.5 M7.5 18.8 L2.5 23'/%3E%3C/g%3E%3Cpath d='M3.6 14.6 L1.4 12.6 L4.4 13.4 Z'/%3E%3Cellipse cx='41' cy='16' rx='8.5' ry='3.6'/%3E%3Cpath d='M46 14 L49.5 7.5 L52 8.5 L49.5 16 Z'/%3E%3Cellipse cx='52.2' cy='7.6' rx='3' ry='1.9'/%3E%3Cpath d='M54 7 L57 8.2 L54.5 9.2 Z'/%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M51 6 L48.5 1 M49.6 3.4 L51.6 1.2 M52.4 6 L53.6 0.8'/%3E%3Cpath d='M47 18 L54 20.5 M45.5 18.8 L50.5 23'/%3E%3Cpath d='M35.5 18 L29.5 19.5 M36.5 18.8 L31.5 23'/%3E%3C/g%3E%3Cpath d='M32.6 14.6 L30.4 12.6 L33.4 13.4 Z'/%3E%3Cpath d='M72 6 Q71 13 75 19 L101 19 Q106 19 107 13 L104 12 Q101 15 95 15 L80 15 Q78 10 79 6 Z'/%3E%3Ccircle cx='86' cy='8.5' r='3.2'/%3E%3Cpath d='M82 15 L82 10 Q86 7.5 90 10 L90 15 Z'/%3E%3Cpath d='M73 8 Q72 3 76.5 3.5 Q80 4.5 79 9 Z'/%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M69 24 L105 24 Q111 24 111.5 18.5'/%3E%3Cpath d='M77 19 L76 24 M99 19 L100 24'/%3E%3Cpath d='M27 15 L31 15 M55 15 L73 13'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
          mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 113 25'%3E%3Cg fill='%23fff'%3E%3Cellipse cx='12' cy='16' rx='8.5' ry='3.6'/%3E%3Cpath d='M17 14 L20.5 7.5 L23 8.5 L20.5 16 Z'/%3E%3Cellipse cx='23.2' cy='7.6' rx='3' ry='1.9'/%3E%3Cpath d='M25 7 L28 8.2 L25.5 9.2 Z'/%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M22 6 L19.5 1 M20.6 3.4 L22.6 1.2 M23.4 6 L24.6 0.8'/%3E%3Cpath d='M18 18 L25 20.5 M16.5 18.8 L21.5 23'/%3E%3Cpath d='M6.5 18 L0.5 19.5 M7.5 18.8 L2.5 23'/%3E%3C/g%3E%3Cpath d='M3.6 14.6 L1.4 12.6 L4.4 13.4 Z'/%3E%3Cellipse cx='41' cy='16' rx='8.5' ry='3.6'/%3E%3Cpath d='M46 14 L49.5 7.5 L52 8.5 L49.5 16 Z'/%3E%3Cellipse cx='52.2' cy='7.6' rx='3' ry='1.9'/%3E%3Cpath d='M54 7 L57 8.2 L54.5 9.2 Z'/%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M51 6 L48.5 1 M49.6 3.4 L51.6 1.2 M52.4 6 L53.6 0.8'/%3E%3Cpath d='M47 18 L54 20.5 M45.5 18.8 L50.5 23'/%3E%3Cpath d='M35.5 18 L29.5 19.5 M36.5 18.8 L31.5 23'/%3E%3C/g%3E%3Cpath d='M32.6 14.6 L30.4 12.6 L33.4 13.4 Z'/%3E%3Cpath d='M72 6 Q71 13 75 19 L101 19 Q106 19 107 13 L104 12 Q101 15 95 15 L80 15 Q78 10 79 6 Z'/%3E%3Ccircle cx='86' cy='8.5' r='3.2'/%3E%3Cpath d='M82 15 L82 10 Q86 7.5 90 10 L90 15 Z'/%3E%3Cpath d='M73 8 Q72 3 76.5 3.5 Q80 4.5 79 9 Z'/%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M69 24 L105 24 Q111 24 111.5 18.5'/%3E%3Cpath d='M77 19 L76 24 M99 19 L100 24'/%3E%3Cpath d='M27 15 L31 15 M55 15 L73 13'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-size:contain; mask-size:contain; -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  animation:sleighfly 40s linear infinite;
}
@keyframes sleighfly{
  0%{transform:translate(0,30px) rotate(-3deg)}   30%{transform:translate(36vw,6px) rotate(-4deg)}
  60%{transform:translate(72vw,-14px) rotate(-2deg)} 100%{transform:translate(124vw,-34px) rotate(-5deg)}}
@media(max-width:720px){.hero::after{width:88px;height:20px;top:16%}}

/* ── 3. THE 404: A TREE, A SNOWMAN, AND A "GONE SLEDDING" SIGN ─────────────
   Same :has() scope as the headstone — p.code exists on 404.html only. One
   multi-colour SVG drawn as a background (NOT a mask, it needs its own colours).
   Tyler 2026-11-03: "SNOWED IN" text-on-a-mound was lame; he picked the big
   tree with gifts + the snowman, together. Source: scratchpad x404/mk2.py.
   The line under 404 ties it to the sleigh crossing the homepage hero. */
body:has(p.code) main{position:relative;padding-top:min(232px,calc(92vw * 210 / 340 + 22px))}
body:has(p.code) main::before{
  content:"";position:absolute;top:8px;left:50%;transform:translateX(-50%);
  width:340px;max-width:92vw;aspect-ratio:340/210;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 210'%3E%3Cellipse cx='170' cy='196' rx='168' ry='14' fill='%23dbe9f7'/%3E%3Cg transform='translate(-10 0)'%3E%3Crect x='111' y='168' width='18' height='18' fill='%236b4a32'/%3E%3Cpath d='M120 22 L74 82 H166Z M120 52 L58 126 H182Z M120 88 L42 172 H198Z' fill='%232c7a5f'/%3E%3Cpath d='M120 22 L120 172' stroke='%23256a52' stroke-width='0'/%3E%3Ccircle cx='96' cy='70' r='2.6' fill='%23ffd36b'/%3E%3Ccircle cx='140' cy='64' r='2.6' fill='%23ff6b8b'/%3E%3Ccircle cx='84' cy='108' r='2.6' fill='%237fd8ff'/%3E%3Ccircle cx='152' cy='100' r='2.6' fill='%23ffd36b'/%3E%3Ccircle cx='70' cy='150' r='2.6' fill='%23ff6b8b'/%3E%3Ccircle cx='118' cy='140' r='2.6' fill='%237fd8ff'/%3E%3Ccircle cx='168' cy='146' r='2.6' fill='%23b98cff'/%3E%3Cpath d='M120 6 l4.5 9.5 10.5 1.2 -7.8 7 2.2 10.3 -9.4-5.3 -9.4 5.3 2.2-10.3 -7.8-7 10.5-1.2z' fill='%23ffd36b'/%3E%3Cpath d='M68 104 L104 82 M172 108 L136 82' stroke='%23e2324f' stroke-width='3' fill='none'/%3E%3Cg transform='rotate(-5 120 112)'%3E%3Crect x='45.0' y='96' width='150' height='32' rx='4' fill='%239a6f48' stroke='%235e4129' stroke-width='2.5'/%3E%3Cpath d='M51.0 106 H189.0 M51.0 120 H189.0' stroke='%2387603d' stroke-width='1.2'/%3E%3Cpath d='M49.0 96 q71.0 -7 142 0' fill='%23f4f8fc'/%3E%3Ctext x='120' y='117' text-anchor='middle' font-size='13.5' letter-spacing='1.6' fill='%23fbf3e4' font-family='ui-monospace,Menlo,Consolas,monospace' font-weight='700'%3EGONE SLEDDING%3C/text%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(196 30) scale(.84)'%3E%3Ccircle cx='92' cy='158' r='34' fill='%23eef5fc'/%3E%3Ccircle cx='92' cy='106' r='24' fill='%23f4f9fd'/%3E%3Ccircle cx='92' cy='68' r='17' fill='%23f8fbfe'/%3E%3Crect x='76' y='40' width='32' height='5' fill='%231b2230'/%3E%3Crect x='81' y='22' width='22' height='20' fill='%231b2230'/%3E%3Crect x='81' y='35' width='22' height='4' fill='%23e2324f'/%3E%3Ccircle cx='86' cy='65' r='2' fill='%231b2230'/%3E%3Ccircle cx='98' cy='65' r='2' fill='%231b2230'/%3E%3Cpath d='M92 70 l-11 3 11 2z' fill='%23f08a2c'/%3E%3Cpath d='M84 76 q8 5 16 0' stroke='%231b2230' stroke-width='1.6' fill='none'/%3E%3Cpath d='M72 86 q20 8 40 0 v8 q-20 8 -40 0z M84 92 l-6 22 h8z' fill='%23e2324f'/%3E%3Ccircle cx='92' cy='104' r='2.2' fill='%231b2230'/%3E%3Ccircle cx='92' cy='116' r='2.2' fill='%231b2230'/%3E%3Cpath d='M70 104 L40 98 M46 99 l-7 -6 M46 99 l-6 5' stroke='%236b4a32' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M114 102 L136 72 M132 77 l8 -3 M132 77 l-1 -9' stroke='%236b4a32' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/g%3E%3Crect x='16' y='160' width='38' height='30' rx='2' fill='%23e2324f'/%3E%3Crect x='33.0' y='160' width='4' height='30' fill='%23f4f1ea'/%3E%3Crect x='16' y='171.4' width='38' height='4' fill='%23f4f1ea'/%3E%3Cpath d='M35.0 160 q-9 -9 -9 -2 q0 5 9 2 q9 3 9 -2 q0 -7 -9 2z' fill='%23f4f1ea'/%3E%3Crect x='54' y='172' width='26' height='20' rx='2' fill='%233fb2e6'/%3E%3Crect x='65.0' y='172' width='4' height='20' fill='%23f4f1ea'/%3E%3Crect x='54' y='179.6' width='26' height='4' fill='%23f4f1ea'/%3E%3Cpath d='M67.0 172 q-9 -9 -9 -2 q0 5 9 2 q9 3 9 -2 q0 -7 -9 2z' fill='%23f4f1ea'/%3E%3Crect x='160' y='166' width='36' height='26' rx='2' fill='%238f5be0'/%3E%3Crect x='176.0' y='166' width='4' height='26' fill='%23f4f1ea'/%3E%3Crect x='160' y='175.88' width='36' height='4' fill='%23f4f1ea'/%3E%3Cpath d='M178.0 166 q-9 -9 -9 -2 q0 5 9 2 q9 3 9 -2 q0 -7 -9 2z' fill='%23f4f1ea'/%3E%3Crect x='196' y='178' width='22' height='14' rx='2' fill='%23e8b23a'/%3E%3Crect x='205.0' y='178' width='4' height='14' fill='%23e2324f'/%3E%3Crect x='196' y='183.32' width='22' height='4' fill='%23e2324f'/%3E%3Cpath d='M207.0 178 q-9 -9 -9 -2 q0 5 9 2 q9 3 9 -2 q0 -7 -9 2z' fill='%23e2324f'/%3E%3Crect x='300' y='174' width='26' height='18' rx='2' fill='%233fb2e6'/%3E%3Crect x='311.0' y='174' width='4' height='18' fill='%23f4f1ea'/%3E%3Crect x='300' y='180.84' width='26' height='4' fill='%23f4f1ea'/%3E%3Cpath d='M313.0 174 q-9 -9 -9 -2 q0 5 9 2 q9 3 9 -2 q0 -7 -9 2z' fill='%23f4f1ea'/%3E%3C/svg%3E") center/contain no-repeat;
}
body:has(p.code) main p.code{position:relative;text-align:center}
body:has(p.code) main p.code::after{
  content:"the reindeer are out looking for it";display:block;margin-top:6px;
  font-size:.85em;letter-spacing:.04em;text-transform:none;color:var(--muted);opacity:.85}

/* ── 4. THE WINTERSCAPE PROMO BAR ───────────────────────────────────────────
   Homepage only, first child of <body> (winter-promo.html). NOT sticky. */
#winterbar{position:static;display:flex;gap:6px 10px;flex-wrap:wrap;
  justify-content:center;align-items:center;padding:9px 14px;
  font-family:var(--mono);font-size:12.5px;line-height:1.5;letter-spacing:.03em;
  color:var(--ink);
  background:linear-gradient(90deg,rgba(127,224,255,.14),rgba(167,123,255,.14));
  border-bottom:1px solid var(--line)}
#winterbar b{color:var(--signal);font-weight:600}
#winterbar a{color:var(--ink);text-underline-offset:3px}
#winterbar a:hover{color:var(--signal)}
/* Give the hero back the height the bar takes (see halloween-extras.css for why). */
body:has(#winterbar) .hero{padding-top:44px}
@media(max-width:720px){
  #winterbar{font-size:11.5px;padding:8px 12px;gap:4px 8px}
  body:has(#winterbar) .hero{padding-top:34px}
}

/* ── motion opt-out, same contract as the base theme ───────────────────────── */
@media(prefers-reduced-motion:reduce){
  .hero::after{animation:none;opacity:0}
}
