/*
  Halloween 2026 cho trang giới thiệu: "Đêm hội WeDo".
  Mọi thứ chỉ có hiệu lực khi <html> có lớp .le-hoi (do halloween.js gắn trong
  mùa 22/10 đến hết 01/11/2026 giờ Việt Nam, khi khách chọn "Chế độ lễ hội").
  Không có lớp thì trang y như cũ. Xoá tệp này và halloween.js sau mùa lễ.
*/

/* Bộ màu đêm hội: đêm chàm tím, cam bí ngô cho nút chính, chữ trắng ma. */
html.le-hoi {
  --canvas: #0d0a24;
  --panel: #1b1440;
  --accent: #ffb066;
  --accent-hover: #ffc58e;
  --accent-muted: #3a2560;
  --text-secondary: #c2b8e4;
  --text-primary: #f3efff;
  --border-strong: rgba(255, 220, 190, 0.26);
  --border-soft: rgba(255, 255, 255, 0.08);
  --grad-chu: linear-gradient(94deg, #ffffff 0%, #f1e6ff 34%, #ffcf9a 66%, #ff9a3c 100%);
  --grad-hero: linear-gradient(94deg, #ffffff 0%, #f6edff 48%, #ffd3a3 100%);
  --logo-xanh: #b9a6ff;
}
html.le-hoi .btn-chinh:hover { box-shadow: 0 10px 40px rgba(255, 160, 70, 0.28); }
html.le-hoi .nav .lang button[aria-pressed="true"] { background: rgba(255, 176, 102, 0.16); }
/* Hạt nền vốn màu băng xanh: xoay sắc sang tím hồng cho hợp đêm hội. */
html.le-hoi #moi-truong { filter: hue-rotate(55deg) saturate(1.3); }
/* Phim hero lễ hội mở đầu bằng mây chiều rất sáng: đậm lớp tối sau chữ để chữ trắng vẫn đọc rõ. */
html.le-hoi .band.trai { --scrim: 0.9; }
html.le-hoi .band.settle { --scrim: 0.72; }
html.le-hoi .hero .scrim {
  background:
    linear-gradient(90deg, rgba(8, 10, 30, 0.62) 0%, rgba(8, 10, 30, 0.3) 40%, rgba(8, 10, 30, 0) 66%),
    linear-gradient(rgba(8, 10, 30, 0.22), rgba(8, 10, 30, 0.22)),
    radial-gradient(ellipse 120% 90% at 50% 45%, rgba(6, 16, 34, 0) 35%, rgba(6, 16, 34, 0.62) 100%);
}
/* Nút chọn chế độ trên thanh điều hướng. */
.hw-chon {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  flex: none;
}
html.hw-mua .hw-chon { display: inline-flex; }
.hw-chon button {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font: 600 13px/1.3 var(--body);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.hw-chon button:hover { color: var(--text-primary); }
.hw-chon button[aria-pressed="true"] { background: var(--accent); color: var(--canvas); }
.hw-chon svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 1060px) { .hw-chon button { padding: 5px 9px; font-size: 12px; } }
/* Màn hẹp: thanh điều hướng hết chỗ, nút chọn chế độ nổi ở góc dưới trái (rồng ở góc dưới phải). */
@media (max-width: 860px) {
  html.hw-mua .hw-chon {
    position: fixed;
    left: max(14px, env(safe-area-inset-left));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 44;
    background: rgba(13, 10, 36, 0.86);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }
  .hw-chon button { min-height: 36px; }
}

/* Lớp đêm hội cố định: lá thu rơi, dơi bé bay ngang. Nằm dưới nội dung. */
.hw-dem { display: none; }
html.le-hoi .hw-dem {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hw-la {
  position: absolute;
  top: -40px;
  width: 18px;
  height: 18px;
  opacity: 0.75;
  animation: hw-la-roi 22s linear infinite;
}
.hw-la svg { width: 100%; height: 100%; animation: hw-la-xoay 4s ease-in-out infinite alternate; }
.hw-la:nth-child(1) { left: 8%; animation-duration: 24s; animation-delay: -3s; }
.hw-la:nth-child(2) { left: 27%; animation-duration: 29s; animation-delay: -17s; width: 14px; height: 14px; }
.hw-la:nth-child(3) { left: 52%; animation-duration: 26s; animation-delay: -9s; }
.hw-la:nth-child(4) { left: 71%; animation-duration: 33s; animation-delay: -22s; width: 22px; height: 22px; }
.hw-la:nth-child(5) { left: 90%; animation-duration: 27s; animation-delay: -12s; width: 15px; height: 15px; }
@keyframes hw-la-roi {
  0% { transform: translate(0, 0); }
  50% { transform: translate(40px, 55vh); }
  100% { transform: translate(-20px, 112vh); }
}
@keyframes hw-la-xoay {
  from { transform: rotate(-35deg); }
  to { transform: rotate(40deg); }
}
.hw-doi {
  position: absolute;
  left: -60px;
  width: 46px;
  opacity: 0.55;
  animation: hw-doi-bay 38s linear infinite;
}
.hw-doi:nth-of-type(1) { top: 16%; animation-delay: -6s; }
.hw-doi:nth-of-type(2) { top: 58%; width: 34px; animation-duration: 52s; animation-delay: -31s; }
.hw-doi svg { width: 100%; height: auto; animation: hw-nhun 0.9s ease-in-out infinite; }
.hw-doi .canh-t, .hw-doi .canh-p { transform-box: fill-box; animation: hw-vo 0.42s ease-in-out infinite alternate; }
.hw-doi .canh-t { transform-origin: right center; }
.hw-doi .canh-p { transform-origin: left center; }
@keyframes hw-doi-bay {
  0% { transform: translate(0, 0); }
  50% { transform: translate(55vw, -40px); }
  100% { transform: translate(110vw, 20px); }
}
@keyframes hw-vo { from { transform: scaleY(1); } to { transform: scaleY(0.35); } }
@keyframes hw-nhun { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* Phần "Đêm hội WeDo" ngay sau phim cuộn. Ẩn hẳn ngoài chế độ lễ hội. */
.hw-hoi { display: none; }
html.le-hoi .hw-hoi { display: block; }
.hw-hoi { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: clamp(72px, 10vw, 140px) clamp(20px, 6vw, 72px); }
.hw-man {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border-soft);
  min-height: clamp(420px, 46vw, 600px);
  display: flex;
  align-items: center;
  background: #120d33;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.hw-man-nen { position: absolute; inset: 0; }
.hw-man-nen img, .hw-man-nen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 50%;
}
.hw-man-nen video { opacity: 0; transition: opacity 0.9s var(--ease-out); }
.hw-man-nen video.san-sang { opacity: 1; }
.hw-man-nen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 10, 36, 0.9) 0%, rgba(13, 10, 36, 0.66) 34%, rgba(13, 10, 36, 0) 60%);
}
.hw-man-chu {
  position: relative;
  z-index: 2;
  max-width: min(40rem, 58%);
  padding: clamp(28px, 4vw, 56px);
  text-shadow: var(--tshadow);
}
.hw-man-chu .kicker { margin-bottom: 14px; }
.hw-hoi .hw-tieu {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: none;
}
.hw-tieu .cam { color: var(--accent); text-shadow: 0 0 26px rgba(255, 150, 60, 0.45), var(--tshadow); }
.hw-tieu .chu-tung {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em) scale(0.92);
  transition: opacity 0.7s var(--ease-out), transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.hw-hoi.in .hw-tieu .chu-tung { opacity: 1; transform: none; }
.hw-man-chu .lede {
  margin-top: 16px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--text-primary);
}
.hw-man-chu .hang { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.hw-man-chu .ghi { font-size: 14px; color: var(--text-secondary); }
.hw-man-chu .hien {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: 0.45s;
}
.hw-hoi.in .hw-man-chu .hien { opacity: 1; transform: none; }
.hw-hoi.in .hw-man-chu .hang.hien { transition-delay: 0.6s; }
.hw-loa {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(13, 10, 36, 0.6);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.25s;
}
.hw-loa:hover { background: rgba(40, 28, 90, 0.8); }
.hw-loa svg { width: 18px; height: 18px; }
.hw-loa .tat { display: none; }
.hw-loa[aria-pressed="false"] .bat { display: none; }
.hw-loa[aria-pressed="false"] .tat { display: block; }

/* Ma bé bay ra từ nút chính khi bấm. */
.hw-cta { position: relative; }
.hw-ma-bay { position: absolute; left: 50%; top: 0; pointer-events: none; }
.hw-ma-bay span {
  position: absolute;
  width: 30px;
  opacity: 0;
  animation: hw-bay-ra 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hw-ma-bay span:nth-child(1) { --dx: -70px; --dy: -80px; }
.hw-ma-bay span:nth-child(2) { --dx: -10px; --dy: -110px; animation-delay: 70ms; }
.hw-ma-bay span:nth-child(3) { --dx: 60px; --dy: -90px; animation-delay: 140ms; }
@keyframes hw-bay-ra {
  0% { opacity: 0; transform: translate(-15px, 10px) scale(0.4); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); }
}

/* Bốn thẻ nhân vật, mỗi thẻ gắn một việc WeDo làm thật. */
.hw-the-luoi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(20px, 2.4vw, 28px);
  list-style: none;
  padding: 0;
}
.hw-the {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border-soft);
  background: var(--panel);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
  transition-delay: calc(0.15s + var(--i, 0) * 110ms), calc(0.15s + var(--i, 0) * 110ms), 0s, 0s;
}
.hw-hoi.in .hw-the { opacity: 1; transform: none; }
.hw-hoi.in.done .hw-the { transition-delay: 0s, 0s, 0s, 0s; }
.hw-the:hover { border-color: rgba(255, 176, 102, 0.45); box-shadow: 0 18px 50px rgba(255, 140, 50, 0.16); }
.hw-the-anh { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.hw-the-anh img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.hw-the:hover .hw-the-anh img { transform: scale(1.06); }
.hw-the-anh::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 20, 64, 0) 55%, rgba(27, 20, 64, 1) 100%);
}
/* Nhân vật nhún nhẹ, lệch nhịp từng thẻ để cả hàng như đang sống. */
.hw-hoi.in .hw-the-anh img { animation: hw-tho 5.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.3s); }
.hw-hoi.in .hw-the:hover .hw-the-anh img { animation: none; }
@keyframes hw-tho { 0%, 100% { transform: translateY(0) scale(1.02); } 50% { transform: translateY(-6px) scale(1.04); } }
.hw-the-chu { position: relative; padding: 4px 20px 22px; }
.hw-the h3 { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; }
.hw-the p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }
.hw-the .ai { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 12px; color: var(--accent); }

@media (max-width: 960px) { .hw-the-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  /* Điện thoại: ảnh ở trên, chữ nằm trên nền tối riêng ở dưới để không đè mặt nhân vật. */
  .hw-man { display: block; min-height: 0; }
  .hw-man-nen { position: relative; aspect-ratio: 4 / 3; }
  .hw-man-nen img, .hw-man-nen video { object-position: 70% 40%; }
  .hw-man-nen::after { background: linear-gradient(180deg, rgba(18, 13, 51, 0) 62%, rgba(18, 13, 51, 1) 100%); }
  .hw-man-chu { max-width: 100%; padding: 4px 22px 26px; }
}
@media (max-width: 460px) { .hw-the-luoi { grid-template-columns: 1fr; } .hw-the-anh { aspect-ratio: 16 / 10; } }

/* ===== Các phần nội dung trong đêm hội =====
   Trang gốc cho mỗi phần một tông (--nhan, --grad-chu). Đêm hội đổi sang bảng Halloween:
   cam bí ngô, tím phù thuỷ, xanh lọ thuốc, vàng trăng. Chỉ đổi trang trí, không đổi chữ. */
html.le-hoi .quen { --grad-chu: linear-gradient(94deg, #ffffff 0%, #ffe0c2 42%, #ff9a3c 100%); --nhan: #ffad66; --nhan-rgb: 255, 173, 102; }
html.le-hoi .buoc { --grad-chu: linear-gradient(94deg, #ffffff 0%, #e2d6ff 50%, #a98bff 100%); --nhan: #c3adff; --nhan-rgb: 195, 173, 255; }
html.le-hoi .tinh { --grad-chu: linear-gradient(94deg, #ffffff 0%, #d8f7c8 46%, #8fdc6e 100%); --nhan: #a6e88a; --nhan-rgb: 166, 232, 138; }
html.le-hoi .may { --grad-chu: linear-gradient(94deg, #ffffff 0%, #ffe0c2 46%, #ff9a3c 100%); --nhan: #ffad66; --nhan-rgb: 255, 173, 102; }
html.le-hoi .hoi { --grad-chu: linear-gradient(94deg, #ffffff 0%, #e2d6ff 50%, #a98bff 100%); --nhan: #c3adff; --nhan-rgb: 195, 173, 255; }
html.le-hoi .cuoi { --grad-chu: linear-gradient(94deg, #ffffff 0%, #fff0c4 46%, #f7c95a 100%); --nhan: #f7d27a; --nhan-rgb: 247, 210, 122; }

/* Nhãn mục có bí ngô nhỏ đứng trước. */
html.le-hoi .sec .kicker::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 64 60%22%3E%3Cpath d=%22M30 12c0-5 2-8 6-10l2 3c-3 1-4 4-4 7Z%22 fill=%22%237da34e%22/%3E%3Cellipse cx=%2220%22 cy=%2236%22 rx=%2214%22 ry=%2219%22 fill=%22%23e9791f%22/%3E%3Cellipse cx=%2244%22 cy=%2236%22 rx=%2214%22 ry=%2219%22 fill=%22%23e9791f%22/%3E%3Cellipse cx=%2232%22 cy=%2236%22 rx=%2214%22 ry=%2220%22 fill=%22%23f58d2b%22/%3E%3Cpath d=%22M22 31l5 4h-6Zm20 0l1 4h-6Z%22 fill=%22%23ffd66b%22/%3E%3Cpath d=%22M22 42c4 5 16 5 20 0l-3 1-2-2-2 2-3-2-3 2-2-2-2 2Z%22 fill=%22%23ffd66b%22/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Đường kẻ đầu mục thành dây đèn nhỏ lấp lánh. */
html.le-hoi .sec .duong::after {
  inset: -6px 0;
  background:
    radial-gradient(circle, rgba(255, 214, 140, 0.95) 0 1.6px, rgba(var(--nhan-rgb), 0.45) 2.6px, rgba(var(--nhan-rgb), 0) 6px) 0 50% / 46px 14px repeat-x;
}
html.le-hoi .sec.in .duong::after { animation: hw-den-nhay 3.2s ease-in-out infinite 1.6s; }
@keyframes hw-den-nhay { 0%, 100% { opacity: 1; } 45% { opacity: 0.55; } 60% { opacity: 0.9; } }

/* 01 Quen không: thẻ tím đêm, mạng nhện ở góc, ánh nến khi rê chuột. */
html.le-hoi .quen .the { background: linear-gradient(180deg, rgba(38, 26, 78, 0.92), rgba(24, 17, 54, 0.6)); }
html.le-hoi .quen .the::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  z-index: 0;
  opacity: 0.8;
  border-top-right-radius: inherit;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 96 96%22%3E%3Cpath d=%22M96 0L10.0 0.0M96 0L20.1 40.4M96 0L47.9 71.3M96 0L87.0 85.5M78.0 0.0Q82.1 3.5 80.1 8.5Q85.4 9.6 85.9 14.9Q91.1 13.5 94.1 17.9M60.0 0.0Q68.2 6.9 64.2 16.9Q74.7 19.2 75.9 29.8Q86.2 26.9 92.2 35.8M40.0 0.0Q52.8 10.8 46.6 26.3Q62.9 29.8 64.7 46.4Q80.8 41.9 90.1 55.7M18.0 0.0Q35.8 15.0 27.1 36.6Q49.9 41.5 52.4 64.7Q74.8 58.3 87.8 77.6%22 fill=%22none%22 stroke=%22%23e8e0ff%22 stroke-opacity=%22.34%22 stroke-width=%221%22/%3E%3Cpath d=%22M58 0v34%22 stroke=%22%23e8e0ff%22 stroke-opacity=%22.4%22 stroke-width=%22.8%22/%3E%3Ccircle cx=%2258%22 cy=%2237%22 r=%223.2%22 fill=%22%232a2150%22/%3E%3Ccircle cx=%2258%22 cy=%2237%22 r=%223.2%22 fill=%22none%22 stroke=%22%23b9a6ff%22 stroke-opacity=%22.7%22/%3E%3C/svg%3E") top right / contain no-repeat;
  pointer-events: none;
}
html.le-hoi .quen .the q { position: relative; z-index: 1; }
html.le-hoi .sec.quen.in .the:hover { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 46px rgba(255, 154, 60, 0.16); }

/* 02 Ba bước: số bước thành huy hiệu bí ngô, khung ảnh viền ánh trăng tím. */
html.le-hoi .buoc .so {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  background: rgba(255, 154, 60, 0.12);
  border: 1px solid rgba(255, 173, 102, 0.35);
  color: #ffc58e;
}
html.le-hoi .buoc .so::before { content: ""; width: 14px; height: 13px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 64 60%22%3E%3Cpath d=%22M30 12c0-5 2-8 6-10l2 3c-3 1-4 4-4 7Z%22 fill=%22%237da34e%22/%3E%3Cellipse cx=%2220%22 cy=%2236%22 rx=%2214%22 ry=%2219%22 fill=%22%23e9791f%22/%3E%3Cellipse cx=%2244%22 cy=%2236%22 rx=%2214%22 ry=%2219%22 fill=%22%23e9791f%22/%3E%3Cellipse cx=%2232%22 cy=%2236%22 rx=%2214%22 ry=%2220%22 fill=%22%23f58d2b%22/%3E%3Cpath d=%22M22 31l5 4h-6Zm20 0l1 4h-6Z%22 fill=%22%23ffd66b%22/%3E%3Cpath d=%22M22 42c4 5 16 5 20 0l-3 1-2-2-2 2-3-2-3 2-2-2-2 2Z%22 fill=%22%23ffd66b%22/%3E%3C/svg%3E") center / contain no-repeat; }
html.le-hoi .buoc h3::after { background: linear-gradient(90deg, #ff9a3c, #c3adff); }
html.le-hoi .anh { background: #1d1544; }

/* Dơi bé treo ngược trên mép khung ảnh, ma bé ló ra sau khung (do halloween.js gắn). */
.hw-treo, .hw-lo { display: none; }
html.le-hoi .hw-treo {
  display: block;
  position: absolute;
  top: -20px;
  right: 9%;
  width: 58px;
  z-index: 3;
  transform-origin: 50% 0;
  animation: hw-du-dua 4.6s ease-in-out infinite;
  pointer-events: none;
}
html.le-hoi .hw-treo::before { content: ""; display: block; width: 1px; height: 22px; margin: 0 auto; background: rgba(232, 224, 255, 0.45); }
html.le-hoi .hw-treo svg { display: block; width: 100%; height: auto; transform: rotate(180deg); margin-top: -4px; }
@keyframes hw-du-dua { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
html.le-hoi .hw-lo {
  display: block;
  position: absolute;
  left: -26px;
  bottom: 14%;
  width: 52px;
  z-index: 0;
  transform: rotate(-14deg);
  animation: hw-lo-ra 6s ease-in-out infinite;
  pointer-events: none;
}
html.le-hoi .hw-lo svg { display: block; width: 100%; height: auto; }
html.le-hoi .anh img { position: relative; z-index: 1; }
html.le-hoi .anh::before { z-index: 2; }
@keyframes hw-lo-ra { 0%, 100% { translate: 14px 0; } 40%, 70% { translate: -6px -6px; } }

/* 04 Ở mọi máy: chấm trên chip thành bí ngô. */
html.le-hoi .may .chip i { width: 15px; height: 14px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 64 60%22%3E%3Cpath d=%22M30 12c0-5 2-8 6-10l2 3c-3 1-4 4-4 7Z%22 fill=%22%237da34e%22/%3E%3Cellipse cx=%2220%22 cy=%2236%22 rx=%2214%22 ry=%2219%22 fill=%22%23e9791f%22/%3E%3Cellipse cx=%2244%22 cy=%2236%22 rx=%2214%22 ry=%2219%22 fill=%22%23e9791f%22/%3E%3Cellipse cx=%2232%22 cy=%2236%22 rx=%2214%22 ry=%2220%22 fill=%22%23f58d2b%22/%3E%3Cpath d=%22M22 31l5 4h-6Zm20 0l1 4h-6Z%22 fill=%22%23ffd66b%22/%3E%3Cpath d=%22M22 42c4 5 16 5 20 0l-3 1-2-2-2 2-3-2-3 2-2-2-2 2Z%22 fill=%22%23ffd66b%22/%3E%3C/svg%3E") center / contain no-repeat; box-shadow: none; filter: drop-shadow(0 0 6px rgba(255, 154, 60, 0.55)); }
html.le-hoi .may .chip { background: rgba(38, 26, 78, 0.45); }

/* 05 Hỏi nhanh: câu đang mở có vạch ánh nến bên trái. */
html.le-hoi .hoi details[open] { box-shadow: inset 2px 0 0 rgba(255, 173, 102, 0.7); padding-left: 14px; transition: padding 0.3s; }

/* Kết: trăng tròn sau tiêu đề, hàng đèn bí ngô dưới đường sáng. */
html.le-hoi .cuoi .duong-sang::after {
  inset: 22px auto auto 50%;
  width: 92px;
  height: 92px;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fffaf0 0%, #fbe7b4 45%, #efcf7c 100%);
  box-shadow: 0 0 40px rgba(247, 210, 122, 0.45), 0 0 120px rgba(247, 210, 122, 0.2);
}
html.le-hoi .cuoi.in .duong-sang::after { animation: none; opacity: 0.92; }
.hw-day-den { display: none; }
html.le-hoi .hw-day-den {
  display: flex;
  justify-content: space-between;
  max-width: 560px;
  margin: -46px auto 44px;
  padding: 0 6%;
  pointer-events: none;
}
html.le-hoi .hw-day-den span { display: block; width: 26px; transform-origin: 50% 0; animation: hw-du-dua 5s ease-in-out infinite; }
html.le-hoi .hw-day-den span:nth-child(even) { margin-top: 14px; animation-delay: -2.4s; }
html.le-hoi .hw-day-den span::before { content: ""; display: block; width: 1px; height: 16px; margin: 0 auto; background: rgba(247, 210, 122, 0.5); }
html.le-hoi .hw-day-den svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 8px rgba(255, 154, 60, 0.6)); animation: hw-den-nhay 2.8s ease-in-out infinite; }
html.le-hoi .hw-day-den span:nth-child(3n) svg { animation-delay: -1.1s; }

@media (max-width: 720px) {
  html.le-hoi .hw-lo { display: none; }
  html.le-hoi .hw-treo { width: 36px; }
  html.le-hoi .hw-day-den { padding: 0 2%; }
  html.le-hoi .hw-day-den span { width: 22px; }
  html.le-hoi .cuoi .duong-sang::after { top: 12px; width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html.le-hoi .hw-treo, html.le-hoi .hw-lo, html.le-hoi .hw-day-den span, html.le-hoi .hw-day-den svg, html.le-hoi .sec .duong::after { animation: none !important; }
}

/* Nón phù thuỷ cho rồng chatbot. */
.hw-non-rong { display: none; }
html.le-hoi .hw-non-rong {
  display: block;
  position: absolute;
  left: 50%;
  top: -14px;
  width: 38px;
  transform: translateX(-25%) rotate(12deg);
  pointer-events: none;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  html.le-hoi .hw-dem { display: none; }
  .hw-tieu .chu-tung, .hw-man-chu .hien, .hw-the { opacity: 1; transform: none; transition: none; }
  .hw-hoi .hw-the-anh img { animation: none !important; transition: none; }
  .hw-ma-bay { display: none; }
  .hw-man-nen video { display: none; }
}
