/* สร้างจาก make_season.py อย่าแก้ไฟล์นี้ตรงๆ */

/* ---------- สีของแต่ละธีม ---------- */
:root[data-season="christmas"] {
  --bg: #0a111c; --panel: #101a2a; --raised: #17253a; --line: #243855;
  --accent: #7fd8ff; --accent-soft: rgba(127, 216, 255, .13); --code: #0d1624; --header: rgba(10, 17, 28, .9);
  --flake: #ffffff; --glow: rgba(90, 170, 255, .16); --stripe-a: #e5484d; --stripe-b: #f4f8ff;
}
:root[data-season="christmas"][data-theme="light"] {
  --bg: #f8fbff; --panel: #edf5fd; --raised: #e0eefb; --line: #cbdff2;
  --accent: #0a6fa8; --accent-soft: rgba(10, 111, 168, .11); --code: #f0f7fe; --header: rgba(248, 251, 255, .92);
  --flake: #7fb8e8; --glow: rgba(90, 170, 255, .22); --stripe-b: #cfe3f7;
}
:root[data-season="halloween"] {
  --bg: #100b16; --panel: #191123; --raised: #231831; --line: #38264c;
  --accent: #ff9433; --accent-soft: rgba(255, 148, 51, .13); --code: #150e1d; --header: rgba(16, 11, 22, .9);
  --glow: rgba(150, 80, 255, .18); --stripe-a: #ff8a1f; --stripe-b: #6d3bb0; --bat: #9a72e8;
}
:root[data-season="halloween"][data-theme="light"] {
  --bg: #fffaf4; --panel: #fff1e3; --raised: #ffe6cf; --line: #f1d3b3;
  --accent: #b35300; --accent-soft: rgba(179, 83, 0, .11); --code: #fff4e9; --header: rgba(255, 250, 244, .92);
  --glow: rgba(255, 150, 60, .2); --bat: #4d2786;
}
:root:not([data-season="classic"]) body { background: radial-gradient(1100px 460px at 50% 0, var(--glow), transparent 70%) no-repeat, var(--bg); }
:root:not([data-season="classic"]) { scrollbar-color: var(--line) transparent; }

/* ---------- ของตกแต่ง: ธีมปกติซ่อนหมด ---------- */
.deco, .scene { display: none; pointer-events: none; }
.logo { position: relative; display: block; }
.logo img { display: block; }
/* ฉากท้ายหน้าอยู่ในคอลัมน์เนื้อหา (ถ้าวางใต้ทั้งหน้า เมนูข้างจะถูกดันขึ้นตอนเลื่อนสุด) ขอบซ้ายขวาจางหาย */
:root:not([data-season="classic"]) .scene { display: block; height: 120px; margin: 20px -40px -64px; background-position: center bottom; background-repeat: repeat-x; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
:root[data-season="christmas"] .scene { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22640%22 height=%22120%22 viewBox=%220 0 640 120%22%3E%3Cpath d=%22M0 90C80 66 160 104 240 84S400 64 480 88S600 102 640 90V120H0Z%22 fill=%22%239fc3e4%22 opacity=%22.55%22/%3E%3Crect x=%2241%22 y=%2292%22 width=%226%22 height=%2210%22 fill=%22%236b4226%22/%3E%3Cpath d=%22M44 77.0L63.8 94.9Q44 99.9 24.2 94.9Z%22 fill=%22%2317643f%22/%3E%3Cpath d=%22M44 57.8L59.9 78.2Q44 83.2 28.1 78.2Z%22 fill=%22%231e7a4c%22/%3E%3Cpath d=%22M44 36.0L55.9 61.6Q44 66.6 32.1 61.6Z%22 fill=%22%2325915b%22/%3E%3Ccircle cx=%2236.1%22 cy=%2287.2%22 r=%222.6%22 fill=%22%23ff5a5f%22/%3E%3Ccircle cx=%2250.7%22 cy=%2280.8%22 r=%222.6%22 fill=%22%23ffd45e%22/%3E%3Ccircle cx=%2240.8%22 cy=%2269.9%22 r=%222.6%22 fill=%22%236fd3ff%22/%3E%3Ccircle cx=%2248.0%22 cy=%2262.9%22 r=%222.6%22 fill=%22%23ff5a5f%22/%3E%3Ccircle cx=%2243.2%22 cy=%2253.3%22 r=%222.6%22 fill=%22%23ffd45e%22/%3E%3Cpath d=%22M44 29.0l2 5h5l-4 3 2 5-5-3-5 3 2-5-4-3h5z%22 fill=%22%23ffd45e%22/%3E%3Crect x=%22139%22 y=%2290%22 width=%226%22 height=%2210%22 fill=%22%236b4226%22/%3E%3Cpath d=%22M142 82.2L155.6 94.5Q142 99.5 128.4 94.5Z%22 fill=%22%2317643f%22/%3E%3Cpath d=%22M142 69.0L152.9 83.0Q142 88.0 131.1 83.0Z%22 fill=%22%231e7a4c%22/%3E%3Cpath d=%22M142 54.0L150.2 71.6Q142 76.6 133.8 71.6Z%22 fill=%22%2325915b%22/%3E%3Ccircle cx=%22136.5%22 cy=%2289.2%22 r=%222.6%22 fill=%22%23ff5a5f%22/%3E%3Ccircle cx=%22146.6%22 cy=%2284.8%22 r=%222.6%22 fill=%22%23ffd45e%22/%3E%3Ccircle cx=%22139.8%22 cy=%2277.3%22 r=%222.6%22 fill=%22%236fd3ff%22/%3E%3Ccircle cx=%22144.7%22 cy=%2272.5%22 r=%222.6%22 fill=%22%23ff5a5f%22/%3E%3Ccircle cx=%22141.5%22 cy=%2265.9%22 r=%222.6%22 fill=%22%23ffd45e%22/%3E%3Cpath d=%22M142 47.0l2 5h5l-4 3 2 5-5-3-5 3 2-5-4-3h5z%22 fill=%22%23ffd45e%22/%3E%3Crect x=%22319%22 y=%2293%22 width=%226%22 height=%2210%22 fill=%22%236b4226%22/%3E%3Cpath d=%22M322 72.9L346.2 94.8Q322 99.8 297.8 94.8Z%22 fill=%22%2317643f%22/%3E%3Cpath d=%22M322 49.5L341.3 74.5Q322 79.5 302.7 74.5Z%22 fill=%22%231e7a4c%22/%3E%3Cpath d=%22M322 23.0L336.5 54.2Q322 59.2 307.5 54.2Z%22 fill=%22%2325915b%22/%3E%3Ccircle cx=%22312.3%22 cy=%2285.4%22 r=%222.6%22 fill=%22%23ff5a5f%22/%3E%3Ccircle cx=%22330.2%22 cy=%2277.6%22 r=%222.6%22 fill=%22%23ffd45e%22/%3E%3Ccircle cx=%22318.1%22 cy=%2264.3%22 r=%222.6%22 fill=%22%236fd3ff%22/%3E%3Ccircle cx=%22326.8%22 cy=%2255.8%22 r=%222.6%22 fill=%22%23ff5a5f%22/%3E%3Ccircle cx=%22321.0%22 cy=%2244.1%22 r=%222.6%22 fill=%22%23ffd45e%22/%3E%3Cpath d=%22M322 16.0l2 5h5l-4 3 2 5-5-3-5 3 2-5-4-3h5z%22 fill=%22%23ffd45e%22/%3E%3Crect x=%22467%22 y=%2288%22 width=%226%22 height=%2210%22 fill=%22%236b4226%22/%3E%3Cpath d=%22M470 81.6L482.4 92.8Q470 97.8 457.6 92.8Z%22 fill=%22%2317643f%22/%3E%3Cpath d=%22M470 69.6L479.9 82.4Q470 87.4 460.1 82.4Z%22 fill=%22%231e7a4c%22/%3E%3Cpath d=%22M470 56.0L477.4 72.0Q470 77.0 462.6 72.0Z%22 fill=%22%2325915b%22/%3E%3Ccircle cx=%22465.0%22 cy=%2288.0%22 r=%222.6%22 fill=%22%23ff5a5f%22/%3E%3Ccircle cx=%22474.2%22 cy=%2284.0%22 r=%222.6%22 fill=%22%23ffd45e%22/%3E%3Ccircle cx=%22468.0%22 cy=%2277.2%22 r=%222.6%22 fill=%22%236fd3ff%22/%3E%3Ccircle cx=%22472.5%22 cy=%2272.8%22 r=%222.6%22 fill=%22%23ff5a5f%22/%3E%3Ccircle cx=%22469.5%22 cy=%2266.8%22 r=%222.6%22 fill=%22%23ffd45e%22/%3E%3Cpath d=%22M470 49.0l2 5h5l-4 3 2 5-5-3-5 3 2-5-4-3h5z%22 fill=%22%23ffd45e%22/%3E%3Crect x=%22545%22 y=%2293%22 width=%226%22 height=%2210%22 fill=%22%236b4226%22/%3E%3Cpath d=%22M548 80.1L566.0 96.4Q548 101.4 530.0 96.4Z%22 fill=%22%2317643f%22/%3E%3Cpath d=%22M548 62.7L562.4 81.3Q548 86.3 533.6 81.3Z%22 fill=%22%231e7a4c%22/%3E%3Cpath d=%22M548 43.0L558.8 66.2Q548 71.2 537.2 66.2Z%22 fill=%22%2325915b%22/%3E%3Ccircle cx=%22540.8%22 cy=%2289.4%22 r=%222.6%22 fill=%22%23ff5a5f%22/%3E%3Ccircle cx=%22554.1%22 cy=%2283.6%22 r=%222.6%22 fill=%22%23ffd45e%22/%3E%3Ccircle cx=%22545.1%22 cy=%2273.7%22 r=%222.6%22 fill=%22%236fd3ff%22/%3E%3Ccircle cx=%22551.6%22 cy=%2267.4%22 r=%222.6%22 fill=%22%23ff5a5f%22/%3E%3Ccircle cx=%22547.3%22 cy=%2258.7%22 r=%222.6%22 fill=%22%23ffd45e%22/%3E%3Cpath d=%22M548 36.0l2 5h5l-4 3 2 5-5-3-5 3 2-5-4-3h5z%22 fill=%22%23ffd45e%22/%3E%3Cg fill=%22%23fbfdff%22 stroke=%22%239fc3e4%22 stroke-width=%221.2%22%3E%3Ccircle cx=%22224%22 cy=%2290%22 r=%2217%22/%3E%3Ccircle cx=%22224%22 cy=%2265%22 r=%2212%22/%3E%3Ccircle cx=%22224%22 cy=%2246%22 r=%229%22/%3E%3C/g%3E%3Cpath d=%22M206 64l-14-9M242 64l14-11%22 stroke=%22%237a4a2a%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M214 53q10 6 20 0v6q-10 6-20 0z%22 fill=%22%23e5484d%22/%3E%3Cpath d=%22M229 58l5 15-7 1-2-15z%22 fill=%22%23e5484d%22/%3E%3Crect x=%22212%22 y=%2236%22 width=%2224%22 height=%224%22 rx=%222%22 fill=%22%231c2433%22/%3E%3Crect x=%22217%22 y=%2223%22 width=%2214%22 height=%2214%22 rx=%222%22 fill=%22%231c2433%22/%3E%3Crect x=%22217%22 y=%2232%22 width=%2214%22 height=%224%22 fill=%22%23e5484d%22/%3E%3Cg fill=%22%231c2433%22%3E%3Ccircle cx=%22221%22 cy=%2243%22 r=%221.5%22/%3E%3Ccircle cx=%22228%22 cy=%2243%22 r=%221.5%22/%3E%3Ccircle cx=%22224%22 cy=%2266%22 r=%221.8%22/%3E%3Ccircle cx=%22224%22 cy=%2273%22 r=%221.8%22/%3E%3C/g%3E%3Cpath d=%22M224 46l12 3-12 2z%22 fill=%22%23ff8a1f%22/%3E%3Cpath d=%22M264 104V80a7 7 0 0 1 14 0v3%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%226%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M264 104V80a7 7 0 0 1 14 0v3%22 fill=%22none%22 stroke=%22%23e5484d%22 stroke-width=%226%22 stroke-dasharray=%225 5%22/%3E%3Cpath d=%22M412 102V78a7 7 0 0 1 14 0v3%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%226%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M412 102V78a7 7 0 0 1 14 0v3%22 fill=%22none%22 stroke=%22%23e5484d%22 stroke-width=%226%22 stroke-dasharray=%225 5%22/%3E%3Crect x=%2274%22 y=%2290%22 width=%2220%22 height=%2216%22 rx=%222%22 fill=%22%23e5484d%22/%3E%3Crect x=%2272%22 y=%2286%22 width=%2224%22 height=%226%22 rx=%222%22 fill=%22%23e5484d%22/%3E%3Crect x=%2281.5%22 y=%2286%22 width=%225%22 height=%2220%22 fill=%22%23ffd45e%22/%3E%3Cpath d=%22M84.0 86c-9-12-16 1 0 0c16 1 9-12 0 0z%22 fill=%22none%22 stroke=%22%23ffd45e%22 stroke-width=%222.5%22/%3E%3Crect x=%2298%22 y=%2297%22 width=%2214%22 height=%2211%22 rx=%222%22 fill=%22%232f9e68%22/%3E%3Crect x=%2296%22 y=%2293%22 width=%2218%22 height=%226%22 rx=%222%22 fill=%22%232f9e68%22/%3E%3Crect x=%22102.5%22 y=%2293%22 width=%225%22 height=%2215%22 fill=%22%23fff%22/%3E%3Cpath d=%22M105.0 93c-9-12-16 1 0 0c16 1 9-12 0 0z%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%222.5%22/%3E%3Crect x=%22362%22 y=%2289%22 width=%2222%22 height=%2217%22 rx=%222%22 fill=%22%233b82f6%22/%3E%3Crect x=%22360%22 y=%2285%22 width=%2226%22 height=%226%22 rx=%222%22 fill=%22%233b82f6%22/%3E%3Crect x=%22370.5%22 y=%2285%22 width=%225%22 height=%2221%22 fill=%22%23fff%22/%3E%3Cpath d=%22M373.0 85c-9-12-16 1 0 0c16 1 9-12 0 0z%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%222.5%22/%3E%3Crect x=%22388%22 y=%2296%22 width=%2215%22 height=%2212%22 rx=%222%22 fill=%22%23e5484d%22/%3E%3Crect x=%22386%22 y=%2292%22 width=%2219%22 height=%226%22 rx=%222%22 fill=%22%23e5484d%22/%3E%3Crect x=%22393.0%22 y=%2292%22 width=%225%22 height=%2216%22 fill=%22%23ffd45e%22/%3E%3Cpath d=%22M395.5 92c-9-12-16 1 0 0c16 1 9-12 0 0z%22 fill=%22none%22 stroke=%22%23ffd45e%22 stroke-width=%222.5%22/%3E%3Crect x=%22588%22 y=%2292%22 width=%2218%22 height=%2214%22 rx=%222%22 fill=%22%232f9e68%22/%3E%3Crect x=%22586%22 y=%2288%22 width=%2222%22 height=%226%22 rx=%222%22 fill=%22%232f9e68%22/%3E%3Crect x=%22594.5%22 y=%2288%22 width=%225%22 height=%2218%22 fill=%22%23ffd45e%22/%3E%3Cpath d=%22M597.0 88c-9-12-16 1 0 0c16 1 9-12 0 0z%22 fill=%22none%22 stroke=%22%23ffd45e%22 stroke-width=%222.5%22/%3E%3Cpath d=%22M0 105C100 92 180 114 300 102S500 94 640 105V120H0Z%22 fill=%22%23e6f2ff%22/%3E%3C/svg%3E"); }
:root[data-season="halloween"] .scene { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22640%22 height=%22120%22 viewBox=%220 0 640 120%22%3E%3Cpath d=%22M0 90C80 66 160 104 240 84S400 64 480 88S600 102 640 90V120H0Z%22 fill=%22%234b2f6b%22 opacity=%22.45%22/%3E%3Cg fill=%22none%22 stroke=%22%234b3569%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M52 104C56 74 48 54 54 26%22 stroke-width=%227%22/%3E%3Cpath d=%22M52 62q-16-6-24-24M37 50q-10 0-17-6M53 49q16-5 22-22M67 40q9 1 14-4M54 28q-7-8-7-18%22 stroke-width=%223%22/%3E%3C/g%3E%3Cg fill=%22%233d2a55%22%3E%3Cpath d=%22M96 104v-24l3-6 3 6v24z%22/%3E%3Cpath d=%22M107 104v-24l3-6 3 6v24z%22/%3E%3Cpath d=%22M118 104v-24l3-6 3 6v24z%22/%3E%3Cpath d=%22M129 104v-24l3-6 3 6v24z%22/%3E%3Cpath d=%22M140 104v-24l3-6 3 6v24z%22/%3E%3Cpath d=%22M151 104v-24l3-6 3 6v24z%22/%3E%3Cpath d=%22M162 104v-24l3-6 3 6v24z%22/%3E%3Crect x=%2293%22 y=%2285%22 width=%2277%22 height=%224%22/%3E%3C/g%3E%3Cpath d=%22M196 104v-23.0a13.0 13.0 0 0 1 26 0v23.0z%22 fill=%22%236f6885%22/%3E%3Cpath d=%22M209.0 75v15M203.0 80h12%22 stroke=%22%233b3550%22 stroke-width=%223%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M228 108v-18.0a10.0 10.0 0 0 1 20 0v18.0z%22 fill=%22%236f6885%22/%3E%3Cpath d=%22M238.0 87v15M232.0 92h12%22 stroke=%22%233b3550%22 stroke-width=%223%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M262 88V68a14 14 0 0 1 28 0v20l-5-4-4 4-5-4-5 4-4-4z%22 fill=%22%23f4f1ff%22 opacity=%22.92%22/%3E%3Cg fill=%22%231a1126%22%3E%3Cellipse cx=%22271%22 cy=%2268%22 rx=%222.4%22 ry=%223.4%22/%3E%3Cellipse cx=%22281%22 cy=%2268%22 rx=%222.4%22 ry=%223.4%22/%3E%3Cellipse cx=%22276%22 cy=%2276%22 rx=%223%22 ry=%222.4%22/%3E%3C/g%3E%3Cg fill=%22none%22 stroke=%22%234b3569%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M430 104C434 74 426 54 432 26%22 stroke-width=%227%22/%3E%3Cpath d=%22M430 62q-16-6-24-24M415 50q-10 0-17-6M431 49q16-5 22-22M445 40q9 1 14-4M432 28q-7-8-7-18%22 stroke-width=%223%22/%3E%3C/g%3E%3Cpath d=%22M470 105v-22.0a12.0 12.0 0 0 1 24 0v22.0z%22 fill=%22%236f6885%22/%3E%3Cpath d=%22M482.0 78v15M476.0 83h12%22 stroke=%22%233b3550%22 stroke-width=%223%22 stroke-linecap=%22round%22/%3E%3Cg fill=%22%233d2a55%22%3E%3Cpath d=%22M520 106v-24l3-6 3 6v24z%22/%3E%3Cpath d=%22M531 106v-24l3-6 3 6v24z%22/%3E%3Cpath d=%22M542 106v-24l3-6 3 6v24z%22/%3E%3Cpath d=%22M553 106v-24l3-6 3 6v24z%22/%3E%3Cpath d=%22M564 106v-24l3-6 3 6v24z%22/%3E%3Crect x=%22517%22 y=%2287%22 width=%2255%22 height=%224%22/%3E%3C/g%3E%3Cpath d=%22M34 83.2q-0.8 -7.2 4.8 -8.8%22 fill=%22none%22 stroke=%22%236b8f2e%22 stroke-width=%222.7%22 stroke-linecap=%22round%22/%3E%3Cellipse cx=%2226.8%22 cy=%2295.2%22 rx=%2210.4%22 ry=%2212.8%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%2241.2%22 cy=%2295.2%22 rx=%2210.4%22 ry=%2212.8%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%2234%22 cy=%2295.2%22 rx=%2210.4%22 ry=%2213.44%22 fill=%22%23ff8a1f%22/%3E%3Cg fill=%22%23ffe066%22%3E%3Cpath d=%22M25.2 94.4l3.2 -4.8l3.2 4.8z%22/%3E%3Cpath d=%22M36.4 94.4l3.2 -4.8l3.2 4.8z%22/%3E%3Cpath d=%22M24.4 98.4l3.2 2.4l3.2 -1.6l3.2 2.4l3.2 -2.4l3.2 1.6l3.2 -2.4q-3.2 8.0 -9.6 8.0t-9.6 -8.0z%22/%3E%3C/g%3E%3Cpath d=%22M178 90.95q-0.55 -4.95 3.3 -6.050000000000001%22 fill=%22none%22 stroke=%22%236b8f2e%22 stroke-width=%222.0%22 stroke-linecap=%22round%22/%3E%3Cellipse cx=%22173.05%22 cy=%2299.2%22 rx=%227.15%22 ry=%228.8%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%22182.95%22 cy=%2299.2%22 rx=%227.15%22 ry=%228.8%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%22178%22 cy=%2299.2%22 rx=%227.15%22 ry=%229.24%22 fill=%22%23ff8a1f%22/%3E%3Cpath d=%22M322 71.8q-1.2000000000000002 -10.8 7.199999999999999 -13.200000000000001%22 fill=%22none%22 stroke=%22%236b8f2e%22 stroke-width=%224.1%22 stroke-linecap=%22round%22/%3E%3Cellipse cx=%22311.2%22 cy=%2289.8%22 rx=%2215.600000000000001%22 ry=%2219.200000000000003%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%22332.8%22 cy=%2289.8%22 rx=%2215.600000000000001%22 ry=%2219.200000000000003%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%22322%22 cy=%2289.8%22 rx=%2215.600000000000001%22 ry=%2220.16%22 fill=%22%23ff8a1f%22/%3E%3Cg fill=%22%23ffe066%22%3E%3Cpath d=%22M308.8 88.6l4.800000000000001 -7.199999999999999l4.800000000000001 7.199999999999999z%22/%3E%3Cpath d=%22M325.6 88.6l4.800000000000001 -7.199999999999999l4.800000000000001 7.199999999999999z%22/%3E%3Cpath d=%22M307.6 94.6l4.800000000000001 3.5999999999999996l4.800000000000001 -2.4000000000000004l4.800000000000001 3.5999999999999996l4.800000000000001 -3.5999999999999996l4.800000000000001 2.4000000000000004l4.800000000000001 -3.5999999999999996q-4.800000000000001 12.0 -14.399999999999999 12.0t-14.399999999999999 -12.0z%22/%3E%3C/g%3E%3Cpath d=%22M360 88.3q-0.7000000000000001 -6.3 4.2 -7.700000000000001%22 fill=%22none%22 stroke=%22%236b8f2e%22 stroke-width=%222.4%22 stroke-linecap=%22round%22/%3E%3Cellipse cx=%22353.7%22 cy=%2298.8%22 rx=%229.1%22 ry=%2211.200000000000001%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%22366.3%22 cy=%2298.8%22 rx=%229.1%22 ry=%2211.200000000000001%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%22360%22 cy=%2298.8%22 rx=%229.1%22 ry=%2211.76%22 fill=%22%23ff8a1f%22/%3E%3Cg fill=%22%23ffe066%22%3E%3Cpath d=%22M352.3 98.1l2.8000000000000003 -4.2l2.8000000000000003 4.2z%22/%3E%3Cpath d=%22M362.1 98.1l2.8000000000000003 -4.2l2.8000000000000003 4.2z%22/%3E%3Cpath d=%22M351.6 101.6l2.8000000000000003 2.1l2.8000000000000003 -1.4000000000000001l2.8000000000000003 2.1l2.8000000000000003 -2.1l2.8000000000000003 1.4000000000000001l2.8000000000000003 -2.1q-2.8000000000000003 7.0 -8.4 7.0t-8.4 -7.0z%22/%3E%3C/g%3E%3Cpath d=%22M382 97.05q-0.45 -4.05 2.6999999999999997 -4.95%22 fill=%22none%22 stroke=%22%236b8f2e%22 stroke-width=%222.0%22 stroke-linecap=%22round%22/%3E%3Cellipse cx=%22377.95%22 cy=%22103.8%22 rx=%225.8500000000000005%22 ry=%227.2%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%22386.05%22 cy=%22103.8%22 rx=%225.8500000000000005%22 ry=%227.2%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%22382%22 cy=%22103.8%22 rx=%225.8500000000000005%22 ry=%227.56%22 fill=%22%23ff8a1f%22/%3E%3Cpath d=%22M600 81.1q-0.9 -8.1 5.3999999999999995 -9.9%22 fill=%22none%22 stroke=%22%236b8f2e%22 stroke-width=%223.1%22 stroke-linecap=%22round%22/%3E%3Cellipse cx=%22591.9%22 cy=%2294.6%22 rx=%2211.700000000000001%22 ry=%2214.4%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%22608.1%22 cy=%2294.6%22 rx=%2211.700000000000001%22 ry=%2214.4%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%22600%22 cy=%2294.6%22 rx=%2211.700000000000001%22 ry=%2215.12%22 fill=%22%23ff8a1f%22/%3E%3Cg fill=%22%23ffe066%22%3E%3Cpath d=%22M590.1 93.69999999999999l3.6 -5.3999999999999995l3.6 5.3999999999999995z%22/%3E%3Cpath d=%22M602.7 93.69999999999999l3.6 -5.3999999999999995l3.6 5.3999999999999995z%22/%3E%3Cpath d=%22M589.2 98.19999999999999l3.6 2.6999999999999997l3.6 -1.8l3.6 2.6999999999999997l3.6 -2.6999999999999997l3.6 1.8l3.6 -2.6999999999999997q-3.6 9.0 -10.799999999999999 9.0t-10.799999999999999 -9.0z%22/%3E%3C/g%3E%3Crect x=%22298%22 y=%2290%22 width=%227%22 height=%2218%22 rx=%222%22 fill=%22%23efe6d6%22/%3E%3Ccircle cx=%22301.5%22 cy=%2284%22 r=%228%22 fill=%22%23ffb02e%22 opacity=%22.25%22/%3E%3Cpath d=%22M301.5 78q5 6 0 10q-5-4 0-10z%22 fill=%22%23ffc83d%22/%3E%3Crect x=%22506%22 y=%2294%22 width=%227%22 height=%2214%22 rx=%222%22 fill=%22%23efe6d6%22/%3E%3Ccircle cx=%22509.5%22 cy=%2288%22 r=%228%22 fill=%22%23ffb02e%22 opacity=%22.25%22/%3E%3Cpath d=%22M509.5 82q5 6 0 10q-5-4 0-10z%22 fill=%22%23ffc83d%22/%3E%3Crect x=%22572%22 y=%2287%22 width=%227%22 height=%2222%22 rx=%222%22 fill=%22%23efe6d6%22/%3E%3Ccircle cx=%22575.5%22 cy=%2281%22 r=%228%22 fill=%22%23ffb02e%22 opacity=%22.25%22/%3E%3Cpath d=%22M575.5 75q5 6 0 10q-5-4 0-10z%22 fill=%22%23ffc83d%22/%3E%3Cpath d=%22M0 105C100 92 180 114 300 102S500 94 640 105V120H0Z%22 fill=%22%232b1a40%22/%3E%3C/svg%3E"); }
:root[data-season="halloween"] .scene::after { content: ""; position: absolute; right: 8%; top: 2px; width: 90px; height: 90px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2290%22 height=%2290%22 viewBox=%220 0 90 90%22%3E%3Ccircle cx=%2245%22 cy=%2245%22 r=%2242%22 fill=%22%23ffd45e%22 opacity=%22.14%22/%3E%3Ccircle cx=%2245%22 cy=%2245%22 r=%2228%22 fill=%22%23ffe28a%22/%3E%3Cg fill=%22%23f2c65a%22%3E%3Ccircle cx=%2235%22 cy=%2236%22 r=%226%22/%3E%3Ccircle cx=%2254%22 cy=%2252%22 r=%228%22/%3E%3Ccircle cx=%2238%22 cy=%2257%22 r=%223.5%22/%3E%3C/g%3E%3Cpath d=%22M52 32c4-6 8 2 12-2c4 4 8-4 12 2c-6-2-7 5-12 3c-5 2-6-5-12-3z%22 fill=%22%232b1a40%22/%3E%3C/svg%3E"); }

/* หมวกบนโลโก้ */
:root:not([data-season="classic"]) .deco.hat { display: block; position: absolute; width: 30px; height: 25px; left: -8px; top: -11px; background: no-repeat center / contain; transform: rotate(-18deg); }
:root[data-season="christmas"] .deco.hat { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2244%22 height=%2236%22 viewBox=%220 0 44 36%22%3E%3Cpath d=%22M7 27C9 12 18 3 28 4C36 5 40 12 40 21L33 16C32 20 33 24 35 27Z%22 fill=%22%23e5484d%22/%3E%3Cpath d=%22M12 23C15 12 21 7 28 7%22 fill=%22none%22 stroke=%22%23ff7b7f%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Crect x=%223%22 y=%2224%22 width=%2236%22 height=%229%22 rx=%224.5%22 fill=%22%23fff%22 stroke=%22%23c9ddf0%22/%3E%3Ccircle cx=%2239%22 cy=%2223%22 r=%225%22 fill=%22%23fff%22 stroke=%22%23c9ddf0%22/%3E%3C/svg%3E"); }
:root[data-season="halloween"] .deco.hat { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2244%22 height=%2236%22 viewBox=%220 0 44 36%22%3E%3Cpath d=%22M11 28L21 7C23 3 29 1 36 6C31 6 28 8 29 13L34 28Z%22 fill=%22%236d3bb0%22/%3E%3Cpath d=%22M13.5 23H32.5L34 28H11Z%22 fill=%22%23ff8a1f%22/%3E%3Crect x=%2219%22 y=%2222.5%22 width=%227%22 height=%226%22 rx=%221%22 fill=%22none%22 stroke=%22%23ffd45e%22 stroke-width=%221.8%22/%3E%3Cellipse cx=%2222%22 cy=%2229.5%22 rx=%2220%22 ry=%224.5%22 fill=%22%234d2786%22/%3E%3C/svg%3E"); }

/* สายไฟใต้หัวเว็บ สองชั้นกะพริบสลับกัน (--clock ทำให้จังหวะต่อเนื่องข้ามหน้า) */
:root:not([data-season="classic"]) .deco.lights { display: block; position: absolute; left: 0; right: 0; top: 62px; height: 20px; background-repeat: repeat-x; background-size: 124px auto; animation: twinkle 2.4s ease-in-out var(--clock, 0s) infinite alternate; }
:root:not([data-season="classic"]) .deco.lights.second { animation-direction: alternate-reverse; }
:root[data-season="christmas"] .deco.lights.first { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22160%22 height=%2226%22 viewBox=%220 0 160 26%22%3E%3Cpath d=%22M0 3Q20 11 40 3Q60 11 80 3Q100 11 120 3Q140 11 160 3%22 fill=%22none%22 stroke=%22%234a5f7a%22 stroke-width=%221.4%22/%3E%3Ccircle cx=%2220%22 cy=%2215%22 r=%229%22 fill=%22%23ff5a5f%22 opacity=%22.25%22/%3E%3Crect x=%2217.5%22 y=%226%22 width=%225%22 height=%225%22 rx=%221%22 fill=%22%234a5f7a%22/%3E%3Cellipse cx=%2220%22 cy=%2215%22 rx=%223.8%22 ry=%225.5%22 fill=%22%23ff5a5f%22/%3E%3Cellipse cx=%2218.7%22 cy=%2213%22 rx=%221%22 ry=%222%22 fill=%22%23fff%22 opacity=%22.7%22/%3E%3Ccircle cx=%22100%22 cy=%2215%22 r=%229%22 fill=%22%23ffd45e%22 opacity=%22.25%22/%3E%3Crect x=%2297.5%22 y=%226%22 width=%225%22 height=%225%22 rx=%221%22 fill=%22%234a5f7a%22/%3E%3Cellipse cx=%22100%22 cy=%2215%22 rx=%223.8%22 ry=%225.5%22 fill=%22%23ffd45e%22/%3E%3Cellipse cx=%2298.7%22 cy=%2213%22 rx=%221%22 ry=%222%22 fill=%22%23fff%22 opacity=%22.7%22/%3E%3C/svg%3E"); }
:root[data-season="christmas"] .deco.lights.second { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22160%22 height=%2226%22 viewBox=%220 0 160 26%22%3E%3Ccircle cx=%2260%22 cy=%2215%22 r=%229%22 fill=%22%234ade80%22 opacity=%22.25%22/%3E%3Crect x=%2257.5%22 y=%226%22 width=%225%22 height=%225%22 rx=%221%22 fill=%22%234a5f7a%22/%3E%3Cellipse cx=%2260%22 cy=%2215%22 rx=%223.8%22 ry=%225.5%22 fill=%22%234ade80%22/%3E%3Cellipse cx=%2258.7%22 cy=%2213%22 rx=%221%22 ry=%222%22 fill=%22%23fff%22 opacity=%22.7%22/%3E%3Ccircle cx=%22140%22 cy=%2215%22 r=%229%22 fill=%22%236fd3ff%22 opacity=%22.25%22/%3E%3Crect x=%22137.5%22 y=%226%22 width=%225%22 height=%225%22 rx=%221%22 fill=%22%234a5f7a%22/%3E%3Cellipse cx=%22140%22 cy=%2215%22 rx=%223.8%22 ry=%225.5%22 fill=%22%236fd3ff%22/%3E%3Cellipse cx=%22138.7%22 cy=%2213%22 rx=%221%22 ry=%222%22 fill=%22%23fff%22 opacity=%22.7%22/%3E%3C/svg%3E"); }
:root[data-season="halloween"] .deco.lights.first { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22160%22 height=%2226%22 viewBox=%220 0 160 26%22%3E%3Cpath d=%22M0 3Q20 11 40 3Q60 11 80 3Q100 11 120 3Q140 11 160 3%22 fill=%22none%22 stroke=%22%234a5f7a%22 stroke-width=%221.4%22/%3E%3Ccircle cx=%2220%22 cy=%2215%22 r=%229%22 fill=%22%23ff8a1f%22 opacity=%22.25%22/%3E%3Crect x=%2217.5%22 y=%226%22 width=%225%22 height=%225%22 rx=%221%22 fill=%22%234a5f7a%22/%3E%3Cellipse cx=%2220%22 cy=%2215%22 rx=%223.8%22 ry=%225.5%22 fill=%22%23ff8a1f%22/%3E%3Cellipse cx=%2218.7%22 cy=%2213%22 rx=%221%22 ry=%222%22 fill=%22%23fff%22 opacity=%22.7%22/%3E%3Ccircle cx=%22100%22 cy=%2215%22 r=%229%22 fill=%22%23ff8a1f%22 opacity=%22.25%22/%3E%3Crect x=%2297.5%22 y=%226%22 width=%225%22 height=%225%22 rx=%221%22 fill=%22%234a5f7a%22/%3E%3Cellipse cx=%22100%22 cy=%2215%22 rx=%223.8%22 ry=%225.5%22 fill=%22%23ff8a1f%22/%3E%3Cellipse cx=%2298.7%22 cy=%2213%22 rx=%221%22 ry=%222%22 fill=%22%23fff%22 opacity=%22.7%22/%3E%3C/svg%3E"); }
:root[data-season="halloween"] .deco.lights.second { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22160%22 height=%2226%22 viewBox=%220 0 160 26%22%3E%3Ccircle cx=%2260%22 cy=%2215%22 r=%229%22 fill=%22%23a855f7%22 opacity=%22.25%22/%3E%3Crect x=%2257.5%22 y=%226%22 width=%225%22 height=%225%22 rx=%221%22 fill=%22%234a5f7a%22/%3E%3Cellipse cx=%2260%22 cy=%2215%22 rx=%223.8%22 ry=%225.5%22 fill=%22%23a855f7%22/%3E%3Cellipse cx=%2258.7%22 cy=%2213%22 rx=%221%22 ry=%222%22 fill=%22%23fff%22 opacity=%22.7%22/%3E%3Ccircle cx=%22140%22 cy=%2215%22 r=%229%22 fill=%22%2384cc16%22 opacity=%22.25%22/%3E%3Crect x=%22137.5%22 y=%226%22 width=%225%22 height=%225%22 rx=%221%22 fill=%22%234a5f7a%22/%3E%3Cellipse cx=%22140%22 cy=%2215%22 rx=%223.8%22 ry=%225.5%22 fill=%22%2384cc16%22/%3E%3Cellipse cx=%22138.7%22 cy=%2213%22 rx=%221%22 ry=%222%22 fill=%22%23fff%22 opacity=%22.7%22/%3E%3C/svg%3E"); }
@keyframes twinkle { 0%, 30% { opacity: 1; } 70%, 100% { opacity: .35; } }

/* เมนูข้างเริ่มใต้สายไฟ ตัวหนังสือจะได้ไม่เลื่อนไปซ่อนหลังหลอดไฟ */
@media (min-width: 801px) { :root:not([data-season="classic"]) :is(.sidebar, .toc) { top: 82px; height: calc(100vh - 82px); padding-top: 8px; } :root:not([data-season="classic"]) main { padding-top: 34px; } }

/* ใยแมงมุมกับแมงมุม */
:root[data-season="halloween"] .deco.web { display: block; position: fixed; top: 64px; right: 0; width: 140px; height: 140px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22140%22 height=%22140%22 viewBox=%220 0 140 140%22%3E%3Cg fill=%22none%22 stroke=%22%23b9a6d9%22 stroke-width=%221%22%3E%3Cpath d=%22M140 0L0 6M140 0L16 50M140 0L58 94M140 0L100 126M140 0L134 140%22/%3E%3Cpath d=%22M108 2Q111 10 108 13Q116 14 117 20Q124 18 127 25Q132 21 139 33%22/%3E%3Cpath d=%22M72 3Q78 18 72 27Q88 28 91 41Q104 37 111 52Q122 45 137 66%22/%3E%3Cpath d=%22M36 4Q46 26 36 38Q60 42 64 62Q84 55 93 79Q112 68 136 99%22/%3E%3Cpath d=%22M6 6Q16 34 8 48Q36 54 38 80Q64 74 76 103Q102 90 135 130%22/%3E%3C/g%3E%3C/svg%3E"); opacity: .4; z-index: -1; }
:root[data-season="halloween"] .deco.spider { display: block; position: absolute; top: 63px; right: 272px; width: 34px; height: 90px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2234%22 height=%2290%22 viewBox=%220 0 34 90%22%3E%3Cpath d=%22M17 0V66%22 stroke=%22%23b9a6d9%22 stroke-width=%221%22/%3E%3Cg fill=%22none%22 stroke=%22%23a78bda%22 stroke-width=%221.8%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M12 70q-7-7-10-1M12 74q-9-3-11 5M13 78q-8 1-8 9M22 70q7-7 10-1M22 74q9-3 11 5M21 78q8 1 8 9%22/%3E%3C/g%3E%3Ccircle cx=%2217%22 cy=%2268%22 r=%224.5%22 fill=%22%236d3bb0%22/%3E%3Cellipse cx=%2217%22 cy=%2277%22 rx=%227.5%22 ry=%228.5%22 fill=%22%236d3bb0%22/%3E%3Cg fill=%22%23ffb02e%22%3E%3Ccircle cx=%2215%22 cy=%2267%22 r=%221.2%22/%3E%3Ccircle cx=%2219%22 cy=%2267%22 r=%221.2%22/%3E%3C/g%3E%3C/svg%3E"); animation: dangle 3.2s ease-in-out var(--clock, 0s) infinite alternate; }
@keyframes dangle { from { transform: translateY(-22px); } to { transform: translateY(0); } }
@media (max-width: 1100px) { :root[data-season="halloween"] .deco.spider { display: none; } }

/* หน้าหัวข้อ เส้นคั่น ไอคอนหัวข้อ */
:root:not([data-season="classic"]) .subtitle { border-bottom: 0; background: repeating-linear-gradient(135deg, var(--stripe-a) 0 8px, var(--stripe-b) 8px 16px) left bottom / 100% 4px no-repeat; }
:root:not([data-season="classic"]) article h2::before { content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 10px; vertical-align: -2px; background: no-repeat center / contain; }
:root[data-season="christmas"] article h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cg fill=%22none%22 stroke=%22%23bfeaff%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 transform=%22scale(1.0)%22%3E%3Cpath d=%22M12 2v20M12 6l-3-3M12 6l3-3M12 18l-3 3M12 18l3 3%22 transform=%22rotate(0 12 12)%22/%3E%3Cpath d=%22M12 2v20M12 6l-3-3M12 6l3-3M12 18l-3 3M12 18l3 3%22 transform=%22rotate(60 12 12)%22/%3E%3Cpath d=%22M12 2v20M12 6l-3-3M12 6l3-3M12 18l-3 3M12 18l3 3%22 transform=%22rotate(120 12 12)%22/%3E%3C/g%3E%3C/svg%3E"); }
:root[data-season="christmas"][data-theme="light"] article h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cg fill=%22none%22 stroke=%22%232b8fd0%22 stroke-width=%221.7%22 stroke-linecap=%22round%22 transform=%22scale(1.0)%22%3E%3Cpath d=%22M12 2v20M12 6l-3-3M12 6l3-3M12 18l-3 3M12 18l3 3%22 transform=%22rotate(0 12 12)%22/%3E%3Cpath d=%22M12 2v20M12 6l-3-3M12 6l3-3M12 18l-3 3M12 18l3 3%22 transform=%22rotate(60 12 12)%22/%3E%3Cpath d=%22M12 2v20M12 6l-3-3M12 6l3-3M12 18l-3 3M12 18l3 3%22 transform=%22rotate(120 12 12)%22/%3E%3C/g%3E%3C/svg%3E"); }
:root[data-season="halloween"] article h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 6.5q-0.5 -4.5 3.0 -5.5%22 fill=%22none%22 stroke=%22%236b8f2e%22 stroke-width=%222.0%22 stroke-linecap=%22round%22/%3E%3Cellipse cx=%227.5%22 cy=%2214.0%22 rx=%226.5%22 ry=%228.0%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%2216.5%22 cy=%2214.0%22 rx=%226.5%22 ry=%228.0%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%2212%22 cy=%2214.0%22 rx=%226.5%22 ry=%228.4%22 fill=%22%23ff8a1f%22/%3E%3Cg fill=%22%23ffe066%22%3E%3Cpath d=%22M6.5 13.5l2.0 -3.0l2.0 3.0z%22/%3E%3Cpath d=%22M13.5 13.5l2.0 -3.0l2.0 3.0z%22/%3E%3Cpath d=%22M6.0 16.0l2.0 1.5l2.0 -1.0l2.0 1.5l2.0 -1.5l2.0 1.0l2.0 -1.5q-2.0 5.0 -6.0 5.0t-6.0 -5.0z%22/%3E%3C/g%3E%3C/svg%3E"); }
:root article h2:has(.emoji)::before { display: none; } /* หัวข้อที่มีอิโมจิอยู่แล้ว ไม่ต้องมีไอคอนธีมซ้อน */

/* หิมะเกาะ / เมือกหยด บนขอบกล่อง */
:root:not([data-season="classic"]) :is(.panel, .card, .maps li, .pager a, .code) { position: relative; }
:root:not([data-season="classic"]) :is(.panel, .card, .maps li, .pager a, .code)::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 14px; background: repeat-x left top; pointer-events: none; }
:root[data-season="christmas"] :is(.panel, .card, .maps li, .pager a, .code)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2214%22 viewBox=%220 0 120 14%22%3E%3Cpath d=%22M0 0H120V4C113 4 112 11 106 11S99 4 90 4S81 8 73 8S63 3 54 3S46 13 39 13S31 4 21 4S9 8 0 4Z%22 fill=%22%23e9f4ff%22/%3E%3C/svg%3E"); }
:root[data-season="christmas"][data-theme="light"] :is(.panel, .card, .maps li, .pager a, .code)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2214%22 viewBox=%220 0 120 14%22%3E%3Cpath d=%22M0 0H120V4C113 4 112 11 106 11S99 4 90 4S81 8 73 8S63 3 54 3S46 13 39 13S31 4 21 4S9 8 0 4Z%22 fill=%22%23b4d8f7%22/%3E%3C/svg%3E"); }
:root[data-season="halloween"] :is(.panel, .card, .maps li, .pager a, .code)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2214%22 viewBox=%220 0 120 14%22%3E%3Cpath d=%22M0 0H120V4C113 4 112 11 106 11S99 4 90 4S81 8 73 8S63 3 54 3S46 13 39 13S31 4 21 4S9 8 0 4Z%22 fill=%22%23ff8a1f%22/%3E%3C/svg%3E"); }

/* ของวางท้ายสารบัญ */
:root:not([data-season="classic"]) .toc::after { content: ""; display: block; height: 120px; margin-top: 18px; background: no-repeat center bottom; }
:root[data-season="christmas"] .toc::after { background-image: 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=%22M0 108Q60 92 120 108V120H0Z%22 fill=%22%239fc3e4%22 opacity=%22.5%22/%3E%3Crect x=%2239%22 y=%22100%22 width=%226%22 height=%2210%22 fill=%22%236b4226%22/%3E%3Cpath d=%22M42 79.2L66.8 101.6Q42 106.6 17.2 101.6Z%22 fill=%22%2317643f%22/%3E%3Cpath d=%22M42 55.2L61.8 80.8Q42 85.8 22.2 80.8Z%22 fill=%22%231e7a4c%22/%3E%3Cpath d=%22M42 28.0L56.9 60.0Q42 65.0 27.1 60.0Z%22 fill=%22%2325915b%22/%3E%3Ccircle cx=%2232.1%22 cy=%2292.0%22 r=%222.6%22 fill=%22%23ff5a5f%22/%3E%3Ccircle cx=%2250.4%22 cy=%2284.0%22 r=%222.6%22 fill=%22%23ffd45e%22/%3E%3Ccircle cx=%2238.0%22 cy=%2270.4%22 r=%222.6%22 fill=%22%236fd3ff%22/%3E%3Ccircle cx=%2247.0%22 cy=%2261.6%22 r=%222.6%22 fill=%22%23ff5a5f%22/%3E%3Ccircle cx=%2241.0%22 cy=%2249.6%22 r=%222.6%22 fill=%22%23ffd45e%22/%3E%3Cpath d=%22M42 21.0l2 5h5l-4 3 2 5-5-3-5 3 2-5-4-3h5z%22 fill=%22%23ffd45e%22/%3E%3Cg fill=%22%23fbfdff%22 stroke=%22%239fc3e4%22 stroke-width=%221.2%22%3E%3Ccircle cx=%2288%22 cy=%2298%22 r=%2217%22/%3E%3Ccircle cx=%2288%22 cy=%2273%22 r=%2212%22/%3E%3Ccircle cx=%2288%22 cy=%2254%22 r=%229%22/%3E%3C/g%3E%3Cpath d=%22M70 72l-14-9M106 72l14-11%22 stroke=%22%237a4a2a%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M78 61q10 6 20 0v6q-10 6-20 0z%22 fill=%22%23e5484d%22/%3E%3Cpath d=%22M93 66l5 15-7 1-2-15z%22 fill=%22%23e5484d%22/%3E%3Crect x=%2276%22 y=%2244%22 width=%2224%22 height=%224%22 rx=%222%22 fill=%22%231c2433%22/%3E%3Crect x=%2281%22 y=%2231%22 width=%2214%22 height=%2214%22 rx=%222%22 fill=%22%231c2433%22/%3E%3Crect x=%2281%22 y=%2240%22 width=%2214%22 height=%224%22 fill=%22%23e5484d%22/%3E%3Cg fill=%22%231c2433%22%3E%3Ccircle cx=%2285%22 cy=%2251%22 r=%221.5%22/%3E%3Ccircle cx=%2292%22 cy=%2251%22 r=%221.5%22/%3E%3Ccircle cx=%2288%22 cy=%2274%22 r=%221.8%22/%3E%3Ccircle cx=%2288%22 cy=%2281%22 r=%221.8%22/%3E%3C/g%3E%3Cpath d=%22M88 54l12 3-12 2z%22 fill=%22%23ff8a1f%22/%3E%3Crect x=%228%22 y=%2298%22 width=%2218%22 height=%2214%22 rx=%222%22 fill=%22%23e5484d%22/%3E%3Crect x=%226%22 y=%2294%22 width=%2222%22 height=%226%22 rx=%222%22 fill=%22%23e5484d%22/%3E%3Crect x=%2214.5%22 y=%2294%22 width=%225%22 height=%2218%22 fill=%22%23ffd45e%22/%3E%3Cpath d=%22M17.0 94c-9-12-16 1 0 0c16 1 9-12 0 0z%22 fill=%22none%22 stroke=%22%23ffd45e%22 stroke-width=%222.5%22/%3E%3C/svg%3E"); }
:root[data-season="halloween"] .toc::after { background-image: 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=%22M0 108Q60 92 120 108V120H0Z%22 fill=%22%234b2f6b%22 opacity=%22.5%22/%3E%3Cpath d=%22M66 68V48a14 14 0 0 1 28 0v20l-5-4-4 4-5-4-5 4-4-4z%22 fill=%22%23f4f1ff%22 opacity=%22.92%22/%3E%3Cg fill=%22%231a1126%22%3E%3Cellipse cx=%2275%22 cy=%2248%22 rx=%222.4%22 ry=%223.4%22/%3E%3Cellipse cx=%2285%22 cy=%2248%22 rx=%222.4%22 ry=%223.4%22/%3E%3Cellipse cx=%2280%22 cy=%2256%22 rx=%223%22 ry=%222.4%22/%3E%3C/g%3E%3Cpath d=%22M40 68.6q-1.4000000000000001 -12.6 8.4 -15.400000000000002%22 fill=%22none%22 stroke=%22%236b8f2e%22 stroke-width=%224.8%22 stroke-linecap=%22round%22/%3E%3Cellipse cx=%2227.4%22 cy=%2289.6%22 rx=%2218.2%22 ry=%2222.400000000000002%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%2252.6%22 cy=%2289.6%22 rx=%2218.2%22 ry=%2222.400000000000002%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%2240%22 cy=%2289.6%22 rx=%2218.2%22 ry=%2223.52%22 fill=%22%23ff8a1f%22/%3E%3Cg fill=%22%23ffe066%22%3E%3Cpath d=%22M24.599999999999998 88.19999999999999l5.6000000000000005 -8.4l5.6000000000000005 8.4z%22/%3E%3Cpath d=%22M44.2 88.19999999999999l5.6000000000000005 -8.4l5.6000000000000005 8.4z%22/%3E%3Cpath d=%22M23.2 95.19999999999999l5.6000000000000005 4.2l5.6000000000000005 -2.8000000000000003l5.6000000000000005 4.2l5.6000000000000005 -4.2l5.6000000000000005 2.8000000000000003l5.6000000000000005 -4.2q-5.6000000000000005 14.0 -16.8 14.0t-16.8 -14.0z%22/%3E%3C/g%3E%3Cpath d=%22M92 89.75q-0.75 -6.75 4.5 -8.25%22 fill=%22none%22 stroke=%22%236b8f2e%22 stroke-width=%222.6%22 stroke-linecap=%22round%22/%3E%3Cellipse cx=%2285.25%22 cy=%22101.0%22 rx=%229.75%22 ry=%2212.0%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%2298.75%22 cy=%22101.0%22 rx=%229.75%22 ry=%2212.0%22 fill=%22%23e8660c%22/%3E%3Cellipse cx=%2292%22 cy=%22101.0%22 rx=%229.75%22 ry=%2212.6%22 fill=%22%23ff8a1f%22/%3E%3Cg fill=%22%23ffe066%22%3E%3Cpath d=%22M83.75 100.25l3.0 -4.5l3.0 4.5z%22/%3E%3Cpath d=%22M94.25 100.25l3.0 -4.5l3.0 4.5z%22/%3E%3Cpath d=%22M83.0 104.0l3.0 2.25l3.0 -1.5l3.0 2.25l3.0 -2.25l3.0 1.5l3.0 -2.25q-3.0 7.5 -9.0 7.5t-9.0 -7.5z%22/%3E%3C/g%3E%3Crect x=%222%22 y=%2290%22 width=%227%22 height=%2222%22 rx=%222%22 fill=%22%23efe6d6%22/%3E%3Ccircle cx=%225.5%22 cy=%2284%22 r=%228%22 fill=%22%23ffb02e%22 opacity=%22.25%22/%3E%3Cpath d=%22M5.5 78q5 6 0 10q-5-4 0-10z%22 fill=%22%23ffc83d%22/%3E%3C/svg%3E"); }

/* ---------- ผืนผ้าใบหิมะ/ค้างคาว ---------- */
#sky { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 25; pointer-events: none; }
:root[data-effects="off"] .deco.lights, :root[data-effects="off"] .deco.spider { animation: none; }
:root[data-effects="off"] #sky { display: none; }

/* ---------- ปุ่มเลือกธีมเทศกาล ---------- */
.season { position: relative; }
.season > button::before { content: "✨"; font-size: 18px; line-height: 1; }
:root[data-season="christmas"] .season > button::before { content: "🎄"; }
:root[data-season="halloween"] .season > button::before { content: "🎃"; }
.season-list { position: absolute; top: 46px; right: 0; z-index: 40; width: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); animation: pop-in .16s ease-out; }
.season-list[hidden] { display: none; }
.season-list button { display: block; width: 100%; padding: 7px 12px; border: 0; border-radius: 8px; background: none; text-align: left; }
.season-list button:hover { background: var(--raised); }
.season-list button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.season-list label { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 12px 2px; border-top: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.season-list input { accent-color: var(--accent); }
@media (max-width: 800px) {
  .season-list { right: -50px; }
  :root:not([data-season="classic"]) .scene { height: 96px; margin: 12px -18px -48px; background-size: auto 96px; }
  :root:not([data-season="classic"]) .deco.hat { width: 27px; height: 22px; }
}
