/* ==========================================================================
   Dědkova Crew — November theme ("Podzimní večer")
   ==========================================================================
   Seasonal overlay loaded AFTER dedkovacrew.css. It only overrides colours
   and decorations; the base neon design stays untouched underneath.

   To switch the theme off: remove the theme-november.css <link> and the
   {% include "includes/falling_leaves.html" %} line from templates/base.html.
   ========================================================================== */

:root {
  /* ── Surfaces: warm dark brown / plum ── */
  --dp-ink: #140d0b;
  --dp-ink-2: #1e1411;
  --dp-ink-3: #2b1c17;
  --dp-line: rgba(255, 214, 170, 0.09);

  /* ── Primary accent (was neon pink): amber autumn leaf ── */
  --dp-pink: #ff8f2e;
  --dp-pink-dim: #d96a16;
  --dp-pink-soft: rgba(255, 143, 46, 0.13);
  --dp-pink-border: rgba(255, 143, 46, 0.45);
  --dp-glow-pink: 0 0 8px rgba(255, 143, 46, 0.45), 0 0 26px rgba(255, 120, 30, 0.18);
  --dp-glow-pink-strong: 0 0 10px rgba(255, 143, 46, 0.55), 0 0 34px rgba(255, 120, 30, 0.25), 0 0 70px rgba(255, 100, 20, 0.10);

  /* ── Secondary accent (was neon cyan): cranberry / St. Martin's wine ── */
  --dp-cyan: #ec5f6e;
  --dp-cyan-dim: #c7404f;
  --dp-cyan-soft: rgba(236, 95, 110, 0.11);
  --dp-cyan-border: rgba(236, 95, 110, 0.42);
  --dp-glow-cyan: 0 0 8px rgba(236, 95, 110, 0.42), 0 0 24px rgba(200, 50, 70, 0.18);
  --dp-glow-cyan-strong: 0 0 10px rgba(236, 95, 110, 0.5), 0 0 34px rgba(200, 50, 70, 0.24), 0 0 70px rgba(160, 30, 50, 0.10);

  /* ── Gold: a touch warmer ── */
  --dp-gold: #f2b544;
  --dp-gold-soft: rgba(242, 181, 68, 0.14);
  --dp-gold-border: rgba(242, 181, 68, 0.38);

  /* ── Text: warm parchment ── */
  --dp-text: #f4ebe1;
  --dp-text-dim: #b09d8f;
  --dp-text-faint: #64524a;

  --bs-primary-rgb: 255, 143, 46;
}

/* Streamer / social colour-coding: every slot re-tinted to a muted autumn
   shade so the schedule fits the theme, while each slot stays distinct.
   pink/cyan are the UI accents above, so their slot colours are re-set
   locally on the colour-coded classes only. */
:root {
  --dp-gold: #f2b544; /* zlaté listí */
  --dp-glow-gold: 0 0 6px rgba(242, 181, 68, 0.45), 0 0 20px rgba(242, 181, 68, 0.18);
  --dp-purple: #a865d4; /* švestková */
  --dp-glow-purple: 0 0 6px rgba(168, 101, 212, 0.45), 0 0 20px rgba(168, 101, 212, 0.18);
  --dp-green: #8cc063; /* mechová */
  --dp-glow-green: 0 0 6px rgba(140, 192, 99, 0.45), 0 0 20px rgba(140, 192, 99, 0.18);
  --dp-red: #e8452c; /* jeřabinová */
  --dp-glow-red: 0 0 6px rgba(232, 69, 44, 0.45), 0 0 20px rgba(232, 69, 44, 0.18);
  --dp-orange: #ff8a2a; /* dýňová */
  --dp-glow-orange: 0 0 6px rgba(255, 138, 42, 0.45), 0 0 20px rgba(255, 138, 42, 0.18);
  --dp-yellow: #f3dc5a; /* kdoulová */
  --dp-glow-yellow: 0 0 6px rgba(243, 220, 90, 0.45), 0 0 20px rgba(243, 220, 90, 0.18);
  --dp-lime: #bcc04e; /* olivová */
  --dp-glow-lime: 0 0 6px rgba(188, 192, 78, 0.45), 0 0 20px rgba(188, 192, 78, 0.18);
  --dp-teal: #3fb59d; /* jedlová */
  --dp-glow-teal: 0 0 6px rgba(63, 181, 157, 0.45), 0 0 20px rgba(63, 181, 157, 0.18);
  --dp-blue: #6c8ef0; /* soumraková */
  --dp-glow-blue: 0 0 6px rgba(108, 142, 240, 0.45), 0 0 20px rgba(108, 142, 240, 0.18);
  --dp-indigo: #b9a7e8; /* levandulová */
  --dp-glow-indigo: 0 0 6px rgba(185, 167, 232, 0.45), 0 0 20px rgba(185, 167, 232, 0.18);
  --dp-magenta: #d55aa8; /* ostružinová */
  --dp-glow-magenta: 0 0 6px rgba(213, 90, 168, 0.45), 0 0 20px rgba(213, 90, 168, 0.18);
  --dp-rose: #f2867a; /* šípková */
  --dp-glow-rose: 0 0 6px rgba(242, 134, 122, 0.45), 0 0 20px rgba(242, 134, 122, 0.18);
  --dp-white: #efe4d2; /* mlhová */
  --dp-glow-white: 0 0 6px rgba(239, 228, 210, 0.45), 0 0 20px rgba(239, 228, 210, 0.18);
  --dp-brown: #c98a55; /* kaštanová */
  --dp-glow-brown: 0 0 6px rgba(201, 138, 85, 0.45), 0 0 20px rgba(201, 138, 85, 0.18);
  --dp-sage: #9fc2a0; /* šalvějová */
  --dp-glow-sage: 0 0 6px rgba(159, 194, 160, 0.45), 0 0 20px rgba(159, 194, 160, 0.18);
  --dp-wine: #c4456b; /* vínová */
  --dp-glow-wine: 0 0 6px rgba(196, 69, 107, 0.45), 0 0 20px rgba(196, 69, 107, 0.18);
  --dp-heather: #dba3d2; /* vřesová */
  --dp-glow-heather: 0 0 6px rgba(219, 163, 210, 0.45), 0 0 20px rgba(219, 163, 210, 0.18);
}
.dp-social-card-pink, .dp-social-card-icon-pink, .dp-social-card-list-pink, .dp-social-card-btn-pink, .dp-schedule-dot-pink, .dp-schedule-name-pink, .dp-schedule-btn-pink {
  --dp-pink: #e8506a; /* brusinková */
  --dp-glow-pink: 0 0 6px rgba(232, 80, 106, 0.45), 0 0 20px rgba(232, 80, 106, 0.18);
}
.dp-social-card-cyan, .dp-social-card-icon-cyan, .dp-social-card-list-cyan, .dp-social-card-btn-cyan, .dp-schedule-dot-cyan, .dp-schedule-name-cyan, .dp-schedule-btn-cyan {
  --dp-cyan: #86b9e3; /* mrazivá obloha */
  --dp-glow-cyan: 0 0 6px rgba(134, 185, 227, 0.45), 0 0 20px rgba(134, 185, 227, 0.18);
}

/* ── Page background: warm lamplight vignette ── */
body {
  background:
    radial-gradient(ellipse 80% 50% at 85% 0%, rgba(255, 130, 40, 0.07), transparent 70%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(180, 40, 60, 0.07), transparent 70%),
    var(--dp-ink);
  background-attachment: fixed;
}

/* ── Navbar ── */
.dp-navbar {
  background: rgba(20, 13, 11, 0.92);
  box-shadow: 0 4px 40px rgba(255, 143, 46, 0.08);
}
.dp-navbar::after {
  background: linear-gradient(90deg, var(--dp-pink), var(--dp-gold), var(--dp-cyan), var(--dp-pink));
}
.dp-navbar .dropdown-menu {
  box-shadow: 0 8px 30px rgba(255, 143, 46, 0.12);
}

/* ── Buttons ── */
.btn-dp-gold {
  box-shadow: var(--dp-glow-cyan), inset 0 0 20px rgba(236, 95, 110, 0.06);
}
.btn-dp-gold:hover {
  background: rgba(236, 95, 110, 0.14);
  box-shadow: var(--dp-glow-cyan-strong), inset 0 0 30px rgba(236, 95, 110, 0.1);
}
.btn-dp-outline {
  box-shadow: var(--dp-glow-cyan-strong), inset 0 0 30px rgba(236, 95, 110, 0.1);
}
.btn-dp-outline:hover {
  background: rgba(236, 95, 110, 0.15);
  box-shadow: var(--dp-glow-cyan-strong), inset 0 0 35px rgba(236, 95, 110, 0.12);
}
.btn-dp-gold-cta {
  box-shadow: var(--dp-glow-pink-strong), inset 0 0 30px rgba(255, 143, 46, 0.1);
}
.btn-dp-gold-cta:hover {
  background: rgba(255, 143, 46, 0.16);
  box-shadow: var(--dp-glow-pink-strong), inset 0 0 35px rgba(255, 143, 46, 0.14);
}

/* ── Hero: foggy autumn evening ── */
.dp-hero {
  box-shadow: 0 2px 40px rgba(255, 120, 30, 0.12);
  background:
    radial-gradient(ellipse 45% 60% at 78% 45%, rgba(255, 140, 40, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(170, 40, 55, 0.14), transparent 70%),
    linear-gradient(170deg, #1a100d 0%, #1f120f 35%, #26140f 65%, #160d0b 100%);
}

/* Drifting fog instead of scan lines */
/* The fog layer is wider than the hero (inset 0 -20%) so that while it
   drifts sideways its hard edges stay outside the visible area — with
   inset 0 the clipped gradient edges showed up as vertical strips. */
.dp-hero::before {
  inset: 0 -20%;
  background:
    radial-gradient(ellipse 43% 18% at 31% 30%, rgba(255, 235, 215, 0.05), transparent 70%),
    radial-gradient(ellipse 39% 16% at 68% 70%, rgba(255, 235, 215, 0.06), transparent 70%),
    radial-gradient(ellipse 50% 20% at 46% 95%, rgba(255, 235, 215, 0.07), transparent 70%);
  opacity: 1;
  animation: dp-nov-fog 26s ease-in-out infinite alternate;
}

@keyframes dp-nov-fog {
  from { transform: translateX(-3%); }
  to   { transform: translateX(3%); }
}

/* Warm ground glow + dark leaf silhouettes along the bottom edge */
.dp-hero::after {
  height: 180px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='60' viewBox='0 0 400 60'%3E%3Cg fill='%230d0807'%3E%3Cpath d='M0 60V44c20-8 30 4 48-4s30-10 50 0 34 2 52-2 40 6 60 0 32-8 52 0 36 4 56-2 40 2 82 6v18z'/%3E%3Cellipse cx='40' cy='42' rx='14' ry='6' transform='rotate(-20 40 42)'/%3E%3Cellipse cx='130' cy='40' rx='12' ry='5' transform='rotate(25 130 40)'/%3E%3Cellipse cx='225' cy='41' rx='15' ry='6' transform='rotate(-10 225 41)'/%3E%3Cellipse cx='318' cy='39' rx='13' ry='5' transform='rotate(30 318 39)'/%3E%3C/g%3E%3C/svg%3E") bottom left / 400px 60px repeat-x,
    linear-gradient(to top, rgba(255, 120, 30, 0.14) 0%, rgba(170, 40, 55, 0.08) 30%, transparent 100%);
}

/* ── Autumn trees on both sides of the hero (templates/includes/hero_trees.html).
   Behind the fog (z 1 < fog z 2) and behind the content (z 3). ── */
.dp-hero-trees {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.dp-tree-wrap {
  position: absolute;
  bottom: 0;
  height: 92%;
  width: clamp(240px, 23vw, 440px);
  opacity: 0.55;
}
.dp-tree-wrap-left  { left: -70px; }
.dp-tree-wrap-right { right: -60px; height: 100%; }

.dp-tree {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: saturate(0.85) brightness(0.85);
}

/* Crown sways gently around the top of the trunk */
.dp-tree-crown {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: dp-nov-crown 7s ease-in-out infinite alternate;
}
.dp-tree-right .dp-tree-crown { animation-duration: 9s; animation-delay: -3s; }

@keyframes dp-nov-crown {
  from { transform: rotate(-1.2deg); }
  to   { transform: rotate(1.4deg); }
}

/* Leaves falling from the crowns */
.dp-tree-leaves i {
  position: absolute;
  top: 25%;
  width: 14px;
  height: 14px;
  opacity: 0;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ea7a1f' d='M12 1l2 4 3-1-1 4 4 1-3 3 2 2-5 1v4h-1.4v-4l-5-1 2-2-3-3 4-1-1-4 3 1z'/%3E%3C/svg%3E");
  animation: dp-nov-treefall 9s ease-in infinite;
}
.dp-tree-leaves i:nth-child(3n+2) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b8323f' d='M12 2C6 6 4 12 6.5 18c1.2 2.2 3 3.2 5.5 4 2.5-.8 4.3-1.8 5.5-4C20 12 18 6 12 2z'/%3E%3C/svg%3E"); }
.dp-tree-leaves i:nth-child(3n)   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f2b544' d='M12 2C6 6 4 12 6.5 18c1.2 2.2 3 3.2 5.5 4 2.5-.8 4.3-1.8 5.5-4C20 12 18 6 12 2z'/%3E%3C/svg%3E"); }

.dp-tree-leaves i:nth-child(1) { left: 30%; top: 30%; animation-delay: 0s;   animation-duration: 9s; }
.dp-tree-leaves i:nth-child(2) { left: 62%; top: 22%; animation-delay: 2.5s; animation-duration: 11s; width: 11px; height: 11px; }
.dp-tree-leaves i:nth-child(3) { left: 45%; top: 40%; animation-delay: 5s;   animation-duration: 8s; }
.dp-tree-leaves i:nth-child(4) { left: 75%; top: 35%; animation-delay: 6.5s; animation-duration: 10s; width: 12px; height: 12px; }
.dp-tree-leaves i:nth-child(5) { left: 20%; top: 42%; animation-delay: 3.8s; animation-duration: 12s; }
.dp-tree-leaves i:nth-child(6) { left: 55%; top: 18%; animation-delay: 8s;   animation-duration: 9.5s; width: 12px; height: 12px; }
/* Right tree: leaves drift left (towards the middle), own rhythm */
.dp-tree-wrap-right .dp-tree-leaves i { animation-name: dp-nov-treefall-left; }
.dp-tree-wrap-right .dp-tree-leaves i:nth-child(1) { animation-delay: 1.4s; }
.dp-tree-wrap-right .dp-tree-leaves i:nth-child(2) { animation-delay: 4.2s; }
.dp-tree-wrap-right .dp-tree-leaves i:nth-child(3) { animation-delay: 7.1s; }
.dp-tree-wrap-right .dp-tree-leaves i:nth-child(4) { animation-delay: 0.3s; }
.dp-tree-wrap-right .dp-tree-leaves i:nth-child(5) { animation-delay: 5.6s; }
.dp-tree-wrap-right .dp-tree-leaves i:nth-child(6) { animation-delay: 9.4s; }

/* The leaf drifts sideways (outwards from the screen edge, towards the
   middle) while falling to the ground and fades out on the way down. */
@keyframes dp-nov-treefall {
  0%   { transform: translate(0, 0) rotate(0deg);        opacity: 0; }
  10%  { opacity: 0.9; }
  35%  { transform: translate(30px, 120px) rotate(120deg); }
  65%  { transform: translate(5px, 260px) rotate(230deg); }
  85%  { opacity: 0.7; }
  100% { transform: translate(45px, 420px) rotate(340deg); opacity: 0; }
}
@keyframes dp-nov-treefall-left {
  0%   { transform: translate(0, 0) rotate(0deg);          opacity: 0; }
  10%  { opacity: 0.9; }
  35%  { transform: translate(-30px, 120px) rotate(-120deg); }
  65%  { transform: translate(-5px, 260px) rotate(-230deg); }
  85%  { opacity: 0.7; }
  100% { transform: translate(-45px, 420px) rotate(-340deg); opacity: 0; }
}

/* On medium screens the trees would sit behind the text / mascot —
   keep them fainter; on phones there is no room at all. */
@media (max-width: 1399.98px) {
  .dp-tree-wrap { opacity: 0.32; }
}
@media (max-width: 991.98px) {
  .dp-hero-trees { display: none; }
}

/* Warm lantern glow on the heading, no glitch jitter */
.dp-hero h1 {
  animation: none;
  text-shadow:
    0 0 30px rgba(255, 143, 46, 0.45),
    0 0 70px rgba(255, 110, 20, 0.22),
    0 2px 0 rgba(0, 0, 0, 0.35);
}

.dp-hero .dp-eyebrow::before {
  content: '🍂';
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
  border-radius: 0;
  animation: none;
  font-size: 1rem;
}

/* ── Mascot (dědek stays!) — warm candlelight glow ── */
.dp-hero-mascot {
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(0 0 22px rgba(255, 143, 46, 0.45))
    drop-shadow(0 0 60px rgba(255, 110, 20, 0.22));
  animation: dp-nov-mascot-glow 4s ease-in-out infinite alternate;
}

@keyframes dp-nov-mascot-glow {
  0%   { filter: drop-shadow(0 0 20px rgba(255, 143, 46, 0.40)) drop-shadow(0 0 55px rgba(255, 110, 20, 0.20)); }
  100% { filter: drop-shadow(0 0 30px rgba(255, 160, 60, 0.55)) drop-shadow(0 0 80px rgba(220, 70, 40, 0.28)); }
}

/* Pile of leaves at the mascot's feet */
.dp-hero .col-lg-6.text-center::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: min(380px, 90%);
  height: 60px;
  z-index: 2;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='60' viewBox='0 0 380 60'%3E%3Cg%3E%3Cellipse cx='60' cy='44' rx='22' ry='9' fill='%23c2410c' transform='rotate(-18 60 44)'/%3E%3Cellipse cx='105' cy='48' rx='20' ry='8' fill='%23e8a33a' transform='rotate(12 105 48)'/%3E%3Cellipse cx='150' cy='42' rx='24' ry='9' fill='%239f1d35' transform='rotate(-8 150 42)'/%3E%3Cellipse cx='196' cy='49' rx='22' ry='8' fill='%23ea7a1f' transform='rotate(20 196 49)'/%3E%3Cellipse cx='240' cy='43' rx='23' ry='9' fill='%23b45309' transform='rotate(-25 240 43)'/%3E%3Cellipse cx='284' cy='48' rx='20' ry='8' fill='%23d97706' transform='rotate(15 284 48)'/%3E%3Cellipse cx='325' cy='45' rx='18' ry='7' fill='%237c2d12' transform='rotate(-12 325 45)'/%3E%3Cellipse cx='128' cy='52' rx='16' ry='6' fill='%23f2b544' transform='rotate(-30 128 52)'/%3E%3Cellipse cx='262' cy='53' rx='17' ry='6' fill='%23c2410c' transform='rotate(28 262 53)'/%3E%3C/g%3E%3C/svg%3E") center bottom / contain no-repeat;
  opacity: 0.9;
}

/* Glitch X near the mascot → a gently swaying maple-ish leaf */
.dp-hero-glitch-x {
  width: 56px;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff8f2e' d='M12 1l2 4 3-1-1 4 4 1-3 3 2 2-5 1v4h-1.4v-4l-5-1 2-2-3-3 4-1-1-4 3 1z'/%3E%3Cpath fill='none' stroke='%237c2d12' stroke-width='.6' d='M12.3 3v18'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(255, 143, 46, 0.5));
  animation: dp-nov-sway 5s ease-in-out infinite alternate;
}
.dp-hero-glitch-x::before,
.dp-hero-glitch-x::after,
.dp-hero-glitch-bar {
  display: none;
}

@keyframes dp-nov-sway {
  from { transform: rotate(-14deg) translateY(0); }
  to   { transform: rotate(12deg) translateY(6px); }
}

/* ── Stats, cards, tables ── */
.dp-stat .dp-stat-number {
  color: var(--dp-gold);
  text-shadow: var(--dp-glow-gold);
}
.dp-card:hover {
  box-shadow: 0 4px 22px rgba(236, 95, 110, 0.10);
}
.dp-content-card:hover {
  box-shadow: 0 4px 25px rgba(255, 143, 46, 0.12);
}
/* Schedule table header: golden autumn leaf instead of cranberry */
.dp-table thead th {
  color: var(--dp-gold);
  text-shadow: 0 0 10px rgba(242, 181, 68, 0.35);
  border-bottom-color: var(--dp-gold-border);
}
.dp-table tbody tr.dp-schedule-row-hover {
  --bs-table-bg: rgba(255, 143, 46, 0.05);
}

/* ── Section dividers: amber → gold → wine ── */
.dp-section-head::after {
  background: linear-gradient(90deg, var(--dp-pink), var(--dp-gold), var(--dp-cyan));
}
.dp-divider,
.dp-footer::before {
  background: linear-gradient(90deg, transparent, var(--dp-pink), var(--dp-gold), var(--dp-cyan), transparent);
}

.dp-community-cta {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 143, 46, 0.07) 0%, transparent 60%),
    var(--dp-ink-2);
}

::selection {
  background: rgba(255, 143, 46, 0.25);
  color: #fff;
}

/* ==========================================================================
   Falling leaves (markup: templates/includes/falling_leaves.html)
   ========================================================================== */

.dp-leaves {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1020; /* above content, below Bootstrap dropdowns/modals */
}

.dp-leaves span {
  position: absolute;
  top: -40px;
  width: 20px;
  height: 20px;
  opacity: 0;
  background: center / contain no-repeat;
  animation: dp-nov-fall 16s linear infinite;
}

.dp-leaves span:nth-child(4n+1) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ea7a1f' d='M12 1l2 4 3-1-1 4 4 1-3 3 2 2-5 1v4h-1.4v-4l-5-1 2-2-3-3 4-1-1-4 3 1z'/%3E%3C/svg%3E"); }
.dp-leaves span:nth-child(4n+2) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b8323f' d='M12 2C6 6 4 12 6.5 18c1.2 2.2 3 3.2 5.5 4 2.5-.8 4.3-1.8 5.5-4C20 12 18 6 12 2z'/%3E%3Cpath stroke='%235a1720' stroke-width='.7' d='M12 4v19'/%3E%3C/svg%3E"); }
.dp-leaves span:nth-child(4n+3) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f2b544' d='M12 2C6 6 4 12 6.5 18c1.2 2.2 3 3.2 5.5 4 2.5-.8 4.3-1.8 5.5-4C20 12 18 6 12 2z'/%3E%3Cpath stroke='%23946211' stroke-width='.7' d='M12 4v19'/%3E%3C/svg%3E"); }
.dp-leaves span:nth-child(4n)   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%239a4a1c' d='M12 1l2 4 3-1-1 4 4 1-3 3 2 2-5 1v4h-1.4v-4l-5-1 2-2-3-3 4-1-1-4 3 1z'/%3E%3C/svg%3E"); }

.dp-leaves span:nth-child(1)  { left: 4%;  animation-duration: 17s; animation-delay: 0s;   width: 22px; height: 22px; }
.dp-leaves span:nth-child(2)  { left: 14%; animation-duration: 21s; animation-delay: 6s;   width: 16px; height: 16px; }
.dp-leaves span:nth-child(3)  { left: 25%; animation-duration: 15s; animation-delay: 11s; }
.dp-leaves span:nth-child(4)  { left: 37%; animation-duration: 19s; animation-delay: 3s;   width: 18px; height: 18px; }
.dp-leaves span:nth-child(5)  { left: 49%; animation-duration: 23s; animation-delay: 9s;   width: 24px; height: 24px; }
.dp-leaves span:nth-child(6)  { left: 60%; animation-duration: 16s; animation-delay: 14s;  width: 15px; height: 15px; }
.dp-leaves span:nth-child(7)  { left: 71%; animation-duration: 20s; animation-delay: 1s; }
.dp-leaves span:nth-child(8)  { left: 81%; animation-duration: 18s; animation-delay: 7s;   width: 22px; height: 22px; }
.dp-leaves span:nth-child(9)  { left: 90%; animation-duration: 22s; animation-delay: 12s;  width: 17px; height: 17px; }
.dp-leaves span:nth-child(10) { left: 96%; animation-duration: 17s; animation-delay: 4s; }

@keyframes dp-nov-fall {
  0%   { transform: translate(0, 0) rotate(0deg);           opacity: 0; }
  8%   { opacity: 0.6; }
  25%  { transform: translate(40px, 25vh) rotate(90deg); }
  50%  { transform: translate(-20px, 52vh) rotate(200deg); }
  75%  { transform: translate(50px, 78vh) rotate(290deg); }
  90%  { opacity: 0.5; }
  100% { transform: translate(10px, 108vh) rotate(380deg);  opacity: 0; }
}

/* Fewer leaves on phones */
@media (max-width: 767.98px) {
  .dp-leaves span:nth-child(n+6) { display: none; }
}

/* Respect "reduce motion" — static, no falling leaves, no fog drift */
@media (prefers-reduced-motion: reduce) {
  .dp-leaves { display: none; }
  .dp-hero::before,
  .dp-hero-mascot,
  .dp-hero-glitch-x,
  .dp-tree-crown { animation: none; }
  .dp-tree-leaves { display: none; }
}
