/* ===== v1.6 Halloween: countdown strip, Oct 31 animation, Halloween look (html.hw) ===== */
.hw-strip{-webkit-flex:none;flex:none;text-align:center;font-weight:800;font-size:13.5px;line-height:1.2;padding:5px 10px;color:#fff;letter-spacing:.2px;
  background:#4c1d95;background:-webkit-linear-gradient(left,#4c1d95,#c2410c,#4c1d95);background:linear-gradient(90deg,#4c1d95,#c2410c,#4c1d95);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.hw-strip.hw-hh{background:#ea580c;background:-webkit-linear-gradient(left,#7c2d12,#f97316,#7c2d12);background:linear-gradient(90deg,#7c2d12,#f97316,#7c2d12)}
html.cb-fsn .hw-strip,html.cb-fsn .hw-deco{display:none}
/* toast */
.hw-toast{position:fixed;left:50%;bottom:calc(96px + env(safe-area-inset-bottom));z-index:10001;-webkit-transform:translate(-50%,20px);transform:translate(-50%,20px);opacity:0;
  background:#1a0b2e;color:#ffedd5;border:2px solid #f97316;font-weight:800;font-size:15px;padding:11px 18px;border-radius:999px;box-shadow:0 10px 30px rgba(0,0,0,.45);white-space:nowrap;max-width:92vw;
  -webkit-transition:opacity .35s,-webkit-transform .35s;transition:opacity .35s,transform .35s;pointer-events:none}
.hw-toast.in{opacity:1;-webkit-transform:translate(-50%,0);transform:translate(-50%,0)}
/* ---- the big animation ---- */
.hw-ov{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10000;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:transparent;
  background:#12061f;background:radial-gradient(circle at 50% 45%,#4a1772 0,#1c0a30 55%,#07030d 100%);-webkit-animation:hwIn .35s ease-out;animation:hwIn .35s ease-out}
.hw-ov.out{opacity:0;-webkit-transition:opacity .45s;transition:opacity .45s}
@-webkit-keyframes hwIn{from{opacity:0}to{opacity:1}}@keyframes hwIn{from{opacity:0}to{opacity:1}}
.hw-moon{position:absolute;top:7%;right:9%;width:90px;height:90px;border-radius:50%;background:#fff3c4;box-shadow:0 0 60px 14px rgba(255,220,130,.35);opacity:.9}
.hw-bat{position:absolute;left:-60px;-webkit-animation:hwBat 2.8s linear both;animation:hwBat 2.8s linear both;will-change:transform}
@-webkit-keyframes hwBat{0%{-webkit-transform:translate(0,0) scaleX(-1)}25%{-webkit-transform:translate(30vw,-30px) scaleX(-1)}50%{-webkit-transform:translate(60vw,20px) scaleX(-1)}75%{-webkit-transform:translate(90vw,-20px) scaleX(-1)}100%{-webkit-transform:translate(125vw,10px) scaleX(-1)}}
@keyframes hwBat{0%{transform:translate(0,0) scaleX(-1)}25%{transform:translate(30vw,-30px) scaleX(-1)}50%{transform:translate(60vw,20px) scaleX(-1)}75%{transform:translate(90vw,-20px) scaleX(-1)}100%{transform:translate(125vw,10px) scaleX(-1)}}
.hw-pk{position:absolute;bottom:-70px;font-size:46px;-webkit-animation:hwPk 1.1s cubic-bezier(.3,1.6,.5,1) both;animation:hwPk 1.1s cubic-bezier(.3,1.6,.5,1) both}
@-webkit-keyframes hwPk{0%{-webkit-transform:translateY(0) scale(.4)}100%{-webkit-transform:translateY(-110px) scale(1)}}
@keyframes hwPk{0%{transform:translateY(0) scale(.4)}100%{transform:translateY(-110px) scale(1)}}
.hw-cn{position:absolute;top:-40px;font-size:22px;-webkit-animation:hwCn 2.6s ease-in both;animation:hwCn 2.6s ease-in both}
@-webkit-keyframes hwCn{0%{-webkit-transform:translateY(0) rotate(0)}100%{-webkit-transform:translateY(110vh) rotate(540deg)}}
@keyframes hwCn{0%{transform:translateY(0) rotate(0)}100%{transform:translateY(110vh) rotate(540deg)}}
.hw-gh{position:absolute;left:6%;bottom:18%;font-size:58px;opacity:0;-webkit-animation:hwGh 3.6s ease-in-out .5s both;animation:hwGh 3.6s ease-in-out .5s both}
.hw-gh2{left:auto;right:7%;bottom:30%;font-size:44px;-webkit-animation-delay:1.3s;animation-delay:1.3s}
@-webkit-keyframes hwGh{0%{opacity:0;-webkit-transform:translate(0,40px)}25%{opacity:.95}50%{-webkit-transform:translate(18px,-40px)}75%{opacity:.95;-webkit-transform:translate(-10px,-90px)}100%{opacity:0;-webkit-transform:translate(10px,-150px)}}
@keyframes hwGh{0%{opacity:0;transform:translate(0,40px)}25%{opacity:.95}50%{transform:translate(18px,-40px)}75%{opacity:.95;transform:translate(-10px,-90px)}100%{opacity:0;transform:translate(10px,-150px)}}
.hw-mid{position:absolute;top:50%;left:0;right:0;-webkit-transform:translateY(-55%);transform:translateY(-55%);text-align:center;padding:0 12px}
.hw-ap{position:relative;width:150px;height:150px;margin:0 auto 14px}
.hw-ap img{position:absolute;top:0;left:0;width:150px;height:150px}
.hw-a1{border-radius:30px;-webkit-animation:hwA1 1.5s ease-in both;animation:hwA1 1.5s ease-in both}
.hw-a2{opacity:0;-webkit-animation:hwA2 1.1s cubic-bezier(.3,1.5,.5,1) 1s both;animation:hwA2 1.1s cubic-bezier(.3,1.5,.5,1) 1s both}
@-webkit-keyframes hwA1{0%{opacity:0;-webkit-transform:scale(.6)}30%{opacity:1;-webkit-transform:scale(1)}70%{opacity:1;-webkit-transform:scale(1) rotate(0)}100%{opacity:0;-webkit-transform:scale(.2) rotate(360deg)}}
@keyframes hwA1{0%{opacity:0;transform:scale(.6)}30%{opacity:1;transform:scale(1)}70%{opacity:1;transform:scale(1) rotate(0)}100%{opacity:0;transform:scale(.2) rotate(360deg)}}
@-webkit-keyframes hwA2{0%{opacity:0;-webkit-transform:scale(.2) rotate(-360deg)}100%{opacity:1;-webkit-transform:scale(1) rotate(0)}}
@keyframes hwA2{0%{opacity:0;transform:scale(.2) rotate(-360deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
@-webkit-keyframes hwGlow{from{-webkit-filter:drop-shadow(0 0 6px rgba(255,170,40,.5))}to{-webkit-filter:drop-shadow(0 0 22px rgba(255,190,60,.95))}}
@keyframes hwGlow{from{filter:drop-shadow(0 0 6px rgba(255,170,40,.5))}to{filter:drop-shadow(0 0 22px rgba(255,190,60,.95))}}
.hw-txt{font-size:44px;line-height:1.05;font-weight:900;color:#ff8a1f;letter-spacing:1px;text-shadow:0 3px 0 #5b1a8a,0 0 24px rgba(255,140,30,.6);opacity:0;-webkit-animation:hwTx .7s cubic-bezier(.3,1.6,.5,1) 1.6s both;animation:hwTx .7s cubic-bezier(.3,1.6,.5,1) 1.6s both}
@media (max-width:380px){.hw-txt{font-size:36px}.hw-ap,.hw-ap img{width:120px;height:120px}}
@media (min-width:700px){.hw-txt{font-size:64px}}
@-webkit-keyframes hwTx{0%{opacity:0;-webkit-transform:scale(.3)}100%{opacity:1;-webkit-transform:scale(1)}}
@keyframes hwTx{0%{opacity:0;transform:scale(.3)}100%{opacity:1;transform:scale(1)}}
.hw-skip{position:absolute;left:0;right:0;bottom:calc(18px + env(safe-area-inset-bottom));text-align:center;color:rgba(255,255,255,.6);font-size:13px;font-weight:700}
/* ---- floating deco (behind the app) ---- */
.hw-deco{position:fixed;top:0;left:0;right:0;bottom:0;z-index:0;pointer-events:none;overflow:hidden}
html.hw .app{z-index:1}
.hw-web{display:none}
.hw-web svg{width:100%;height:100%;display:block}
.hw-wl{left:0}.hw-wr{right:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}
.hw-f{position:absolute;font-size:26px;opacity:.28;font-weight:400;will-change:transform}
.hw-f1{top:22%;left:-40px;-webkit-animation:hwFly 26s linear infinite;animation:hwFly 26s linear infinite}
.hw-f3{top:58%;left:-40px;font-size:18px;-webkit-animation:hwFly 34s linear 9s infinite;animation:hwFly 34s linear 9s infinite}
.hw-f4{top:40%;left:-40px;font-size:20px;-webkit-animation:hwFly 30s linear 18s infinite;animation:hwFly 30s linear 18s infinite}
.hw-f2{bottom:22%;right:4%;font-size:30px;opacity:.2;-webkit-animation:hwBob 6s ease-in-out infinite alternate;animation:hwBob 6s ease-in-out infinite alternate}
@-webkit-keyframes hwFly{0%{-webkit-transform:translate(0,0)}50%{-webkit-transform:translate(55vw,-40px)}100%{-webkit-transform:translate(115vw,10px)}}
@keyframes hwFly{0%{transform:translate(0,0)}50%{transform:translate(55vw,-40px)}100%{transform:translate(115vw,10px)}}
@-webkit-keyframes hwBob{from{-webkit-transform:translateY(0)}to{-webkit-transform:translateY(-36px)}}
@keyframes hwBob{from{transform:translateY(0)}to{transform:translateY(-36px)}}
@media (prefers-reduced-motion:reduce){.hw-f,.hw-ov *{-webkit-animation:none!important;animation:none!important}.hw-a1{display:none}.hw-a2,.hw-txt,.hw-gh{opacity:1}}
/* ---- v2.1 the Halloween look is now OPT-IN and CUTE: warm peach + candy colors, pumpkins and candy, no cobwebs, no dark horror ---- */
html.hw body{background:#fff4ea;background:-webkit-linear-gradient(160deg,#fff1e2 0,#fbefff 55%,#ffeedd 100%);background:linear-gradient(160deg,#fff1e2 0,#fbefff 55%,#ffeedd 100%);background-attachment:fixed}
html.hw .top{background:rgba(255,250,244,.92)}
html.hw .brand p{color:#ea580c}
html.hw .hm.on{background:#fb923c;background:linear-gradient(135deg,#ffb35c,#f97316 50%,#c084fc);color:#fff}
html.hw .msg.me{background:#fb923c;background:linear-gradient(135deg,#ffa94d,#c084fc)}
html.hw .send{background:#f97316;background:linear-gradient(135deg,#ffa94d,#a855f7)}
html.hw .msg.bot{border-color:#ffe2c4}
.hw-f{opacity:.35}
