/* Halloween ist eine wählbare Gestaltung der Zahl des Tages (Alex, 19.10.2026: „etwas anderes aussehen, Schriftarten usw. sollen nicht anders sein“, „lila schwarz mit Hexen die umherfliegen, Spinnen die herumlaufen“).
   Schrift, Aufbau, Karten, Knöpfe und Leiste bleiben wie in Standard; es ändern sich Farben, Hintergrund, Kopfbild und Schmuck.
   Hexen und Spinnen zeichnet halloween.js in eine Ebene hinter allen Inhalten (z-index -1), darum braucht body hier keinen eigenen Hintergrund. */
html.zdt-halloween {
  --frame: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%22120%22 viewBox=%220 0 120 120%22%3E%3Cpath d=%22M31.30 4.80Q60.70 5.05 90.50 4.80Q117.50 4.80 117.50 31.80Q117.98 61.22 117.50 90.80Q117.50 117.80 90.50 117.80Q61.15 117.91 31.30 117.80Q4.30 117.80 4.30 90.80Q3.90 61.05 4.30 31.80Q4.30 4.80 31.30 4.80Z%22 fill=%22%23f6f0fc%22/%3E%3Cpath d=%22M30.00 3.00Q59.93 2.28 90.00 3.00Q117.00 3.00 117.00 30.00Q117.06 59.53 117.00 90.00Q117.00 117.00 90.00 117.00Q60.56 117.56 30.00 117.00Q3.00 117.00 3.00 90.00Q3.65 59.89 3.00 30.00Q3.00 3.00 30.00 3.00Z%22 fill=%22none%22 stroke=%22%234a2a78%22 stroke-width=%222.9%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E");
  --frame-ok: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%22120%22 viewBox=%220 0 120 120%22%3E%3Cpath d=%22M31.30 4.80Q60.61 4.32 90.50 4.80Q117.50 4.80 117.50 31.80Q116.91 61.30 117.50 90.80Q117.50 117.80 90.50 117.80Q60.37 117.75 31.30 117.80Q4.30 117.80 4.30 90.80Q3.84 60.71 4.30 31.80Q4.30 4.80 31.30 4.80Z%22 fill=%22%23f6f0fc%22/%3E%3Cpath d=%22M30.00 3.00Q61.09 3.52 90.00 3.00Q117.00 3.00 117.00 30.00Q117.63 60.86 117.00 90.00Q117.00 117.00 90.00 117.00Q60.14 117.32 30.00 117.00Q3.00 117.00 3.00 90.00Q2.08 59.68 3.00 30.00Q3.00 3.00 30.00 3.00Z%22 fill=%22none%22 stroke=%22%2316a34a%22 stroke-width=%224.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E");
  --frame-warn: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%22120%22 viewBox=%220 0 120 120%22%3E%3Cpath d=%22M31.30 4.80Q61.22 4.59 90.50 4.80Q117.50 4.80 117.50 31.80Q117.33 61.67 117.50 90.80Q117.50 117.80 90.50 117.80Q60.38 117.42 31.30 117.80Q4.30 117.80 4.30 90.80Q4.62 60.84 4.30 31.80Q4.30 4.80 31.30 4.80Z%22 fill=%22%23f6f0fc%22/%3E%3Cpath d=%22M30.00 3.00Q60.08 3.05 90.00 3.00Q117.00 3.00 117.00 30.00Q118.01 58.93 117.00 90.00Q117.00 117.00 90.00 117.00Q58.97 116.91 30.00 117.00Q3.00 117.00 3.00 90.00Q4.08 60.36 3.00 30.00Q3.00 3.00 30.00 3.00Z%22 fill=%22none%22 stroke=%22%23ea6c0c%22 stroke-width=%224.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E");
  --frame-open: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%22120%22 viewBox=%220 0 120 120%22%3E%3Cpath d=%22M31.30 4.80Q61.15 5.02 90.50 4.80Q117.50 4.80 117.50 31.80Q117.41 61.48 117.50 90.80Q117.50 117.80 90.50 117.80Q61.29 118.05 31.30 117.80Q4.30 117.80 4.30 90.80Q4.49 61.76 4.30 31.80Q4.30 4.80 31.30 4.80Z%22 fill=%22%23f6f0fc%22/%3E%3Cpath d=%22M30.00 3.00Q60.16 3.92 90.00 3.00Q117.00 3.00 117.00 30.00Q117.82 59.48 117.00 90.00Q117.00 117.00 90.00 117.00Q60.61 117.10 30.00 117.00Q3.00 117.00 3.00 90.00Q3.96 59.50 3.00 30.00Q3.00 3.00 30.00 3.00Z%22 fill=%22none%22 stroke=%22%23a3abbb%22 stroke-width=%223.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E");
}
html.zdt-halloween {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='260'%3E%3Cg fill='%23efe6ff'%3E%3Ccircle cx='22' cy='30' r='1.1' opacity='.55'/%3E%3Ccircle cx='96' cy='74' r='.8' opacity='.4'/%3E%3Ccircle cx='170' cy='18' r='1.3' opacity='.5'/%3E%3Ccircle cx='250' cy='58' r='.9' opacity='.35'/%3E%3Ccircle cx='300' cy='140' r='1.2' opacity='.45'/%3E%3Ccircle cx='58' cy='160' r='.9' opacity='.35'/%3E%3Ccircle cx='140' cy='206' r='1.1' opacity='.4'/%3E%3Ccircle cx='214' cy='122' r='.7' opacity='.35'/%3E%3Ccircle cx='276' cy='232' r='1' opacity='.4'/%3E%3Ccircle cx='12' cy='236' r='.8' opacity='.3'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(1100px 620px at 8% -14%, #3b2160 0, transparent 62%),
    radial-gradient(900px 600px at 104% 112%, #2c1749 0, transparent 60%),
    #150d21;
}
html.zdt-halloween body { background: transparent !important; }
html.zdt-halloween .task-label { color: #ecdfff; }
html.zdt-halloween .target:not(.is-answer)::before { filter: hue-rotate(-72deg) saturate(.85) brightness(1.04); }
html.zdt-halloween .target-input { background: #f6f0fc; }
html.zdt-halloween .zdt-season-art { display: block; }
html.zdt-halloween.zdt-free .zdt-no-frame>.card { background: #f6f0fc !important; border-radius: 18px; }
html.zdt-halloween .zdt-guide { background: #c9a6ff; }
html.zdt-halloween :focus-visible { outline-color: #b98cff; }
html.zdt-halloween .card :focus-visible { outline-color: #5b2bb0; }
@media (min-width:641px) and (max-width:1100px) { html.zdt-halloween .zdt-season-art { width: 96px; } }
@media (max-width:640px) {
  html.zdt-halloween .topbar { padding-top: 53px !important; }
  html.zdt-halloween .zdt-season-art { width: 82px; height: 50px; top: 2px; left: calc(50% - 41px); }
}

/* Ebene für Mond, Hexen und Spinnen (halloween.js). Fängt keine Klicks ab und liegt hinter Karten, Kopfzeile und Leiste. */
.zdt-spuk { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.zdt-spuk > * { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; background-repeat: no-repeat; }
.zdt-spuk .spuk-faden { width: 1px; background: linear-gradient(#e7dcf7cc, #e7dcf799); transform-origin: 50% 0; will-change: transform, opacity; }
html:not(.zdt-halloween) .zdt-spuk { display: none; }
