/* PanditVerse Festival Greetings — layered ambient festival visuals */
.pv-festival-stage{position:fixed;inset:0;z-index:9990;overflow:hidden;pointer-events:none;user-select:none}
.pv-festival-edge{position:absolute;top:0;bottom:0;width:clamp(38px,6vw,92px);display:flex;flex-direction:column;justify-content:space-around;align-items:center;opacity:.94}
.pv-festival-edge-left{left:0}.pv-festival-edge-right{right:0}
.pv-festival-edge:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(14,20,35,.12),transparent);opacity:.5}
.pv-festival-edge-right:before{transform:scaleX(-1)}
.pv-festival-edge .pv-festival-cracker{position:relative;display:block;font-style:normal;color:var(--pv-festival-accent,#d4af37);font-size:clamp(13px,1.7vw,23px);text-shadow:0 0 9px currentColor,0 0 18px rgba(255,190,70,.45);animation:pvFestivalEdgeTwinkle var(--duration,3s) ease-in-out var(--delay,0s) infinite alternate}
.pv-festival-edge .pv-festival-cracker:nth-child(odd){font-size:clamp(16px,2vw,27px)}
.pv-festival-edge .pv-festival-cracker:nth-child(3n){transform:translateX(10px)}
.pv-festival-edge .pv-festival-cracker:nth-child(4n){transform:translateX(-8px)}
.pv-festival-greeting{position:fixed;z-index:9995;left:50%;bottom:24px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;max-width:min(560px,calc(100% - 34px));padding:12px 18px;border:1px solid rgba(212,175,55,.32);border-radius:15px;background:rgba(20,28,45,.88);color:#fff;box-shadow:0 10px 38px rgba(0,0,0,.2);backdrop-filter:blur(10px);pointer-events:none;animation:pvFestivalGreeting 1s ease-out both}
.pv-festival-greeting-icon{font-size:25px;filter:drop-shadow(0 0 8px var(--pv-festival-accent))}
.pv-festival-greeting strong{white-space:nowrap;color:var(--pv-festival-accent);font-size:14px}
.pv-festival-greeting span:last-child{font-size:12px;line-height:1.5;color:#e7eaf0}
.pv-festival-footer{position:relative;isolation:isolate;overflow:hidden;margin-top:36px;padding:30px 18px;text-align:center;background:linear-gradient(180deg,#21182b,#0d1424);color:#fff}
.pv-festival-footer-glow{position:absolute;z-index:-1;inset:auto 0 -80px;height:180px;background:radial-gradient(ellipse at center,var(--pv-festival-accent),transparent 65%);opacity:.23;animation:pvFestivalFooterGlow 4s ease-in-out infinite}
.pv-festival-footer-icons{color:var(--pv-festival-accent);font-size:clamp(18px,3vw,30px);letter-spacing:.08em;animation:pvFestivalFooterPulse 2.8s ease-in-out infinite;text-shadow:0 0 15px currentColor}
.pv-festival-footer-title{margin:12px 0 6px;color:var(--pv-festival-accent);font-size:18px;font-weight:800}
.pv-festival-footer-message{max-width:780px;margin:auto;color:#d9dce6;font-size:13px;line-height:1.8}
.pv-festival-center-zone{position:absolute;inset:15% 20%;pointer-events:none}
.pv-festival-burst{position:absolute;left:var(--x);top:var(--y);width:1px;height:1px}
.pv-festival-burst i{position:absolute;font-style:normal;color:var(--pv-festival-accent);font-size:16px;text-shadow:0 0 10px currentColor;animation:pvFestivalBurst 1.15s ease-out forwards}
.pv-festival-cursor{position:fixed;z-index:1000000;pointer-events:none;color:var(--pv-festival-accent);font-style:normal;text-shadow:0 0 12px currentColor;animation:pvFestivalCursor .75s ease-out forwards}
@keyframes pvFestivalEdgeTwinkle{0%{opacity:.45;filter:brightness(.8);transform:translateY(-3px) scale(.8)}100%{opacity:1;filter:brightness(1.5);transform:translateY(4px) scale(1.12)}}
@keyframes pvFestivalBurst{0%{opacity:1;transform:translate(0,0) scale(.3)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(1.25)}}
@keyframes pvFestivalCursor{0%{opacity:1;transform:translate(-50%,-50%) scale(.4)}100%{opacity:0;transform:translate(calc(-50% + 22px),calc(-50% - 30px)) scale(1.35) rotate(75deg)}}
@keyframes pvFestivalFooterGlow{0%,100%{opacity:.15;transform:scaleX(.8)}50%{opacity:.35;transform:scaleX(1.15)}}
@keyframes pvFestivalFooterPulse{0%,100%{filter:brightness(.8)}50%{filter:brightness(1.5)}}
@keyframes pvFestivalGreeting{from{opacity:0;bottom:10px}to{opacity:1;bottom:24px}}
body[data-pv-festival="holi"] .pv-festival-edge .pv-festival-cracker{color:#f0abfc;text-shadow:0 0 10px #f0abfc,0 0 18px #38bdf8}
body[data-pv-festival="christmas"] .pv-festival-edge .pv-festival-cracker{color:#86efac}
body[data-pv-festival="new-year"] .pv-festival-edge .pv-festival-cracker{color:#fde68a}
@media(max-width:700px){.pv-festival-edge{width:25px;opacity:.7}.pv-festival-greeting{bottom:12px;flex-wrap:wrap;justify-content:center;text-align:center;padding:10px 13px}.pv-festival-greeting strong{white-space:normal}.pv-festival-greeting span:last-child{width:100%}.pv-festival-footer{padding:22px 12px}}
@media(prefers-reduced-motion:reduce){.pv-festival-edge .pv-festival-cracker,.pv-festival-footer-glow,.pv-festival-footer-icons,.pv-festival-greeting{animation:none!important}.pv-festival-cursor,.pv-festival-burst{display:none!important}}

/* Border light strings and compact, dismissible greeting */
.pv-festival-edge:after{content:"";position:absolute;top:0;bottom:0;width:3px;opacity:.85;background:repeating-linear-gradient(to bottom,transparent 0 13px,var(--pv-festival-accent) 13px 15px,transparent 15px 27px);filter:drop-shadow(0 0 4px var(--pv-festival-accent));animation:pvFestivalWire 2.4s linear infinite}
.pv-festival-edge-left:after{left:5px}.pv-festival-edge-right:after{right:5px}
.pv-festival-edge .pv-festival-cracker{z-index:1}
.pv-festival-edge .pv-festival-cracker:before{content:"";position:absolute;width:7px;height:7px;border-radius:50%;background:#fff7cc;box-shadow:0 0 7px 3px var(--pv-festival-accent);left:50%;top:50%;transform:translate(-50%,-50%);opacity:.7}
.pv-festival-greeting{width:max-content;max-width:min(430px,calc(100% - 28px));box-sizing:border-box;gap:10px;padding:10px 12px;border-radius:13px}
.pv-festival-greeting-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.pv-festival-greeting-copy strong{font-size:13px;line-height:1.3}
.pv-festival-greeting-copy span{font-size:11px;line-height:1.45}
.pv-festival-greeting-dismiss{flex:0 0 25px;width:25px;height:25px;border:1px solid rgba(255,255,255,.24);border-radius:50%;background:transparent;color:#fff;font-size:19px;line-height:20px;cursor:pointer;padding:0}
.pv-festival-greeting-dismiss:hover{background:rgba(255,255,255,.15);border-color:var(--pv-festival-accent)}
.pv-festival-greeting.is-dismissed{display:none!important}
.pv-festival-footer{padding-top:42px}
.pv-festival-footer-top-lights{position:absolute;top:0;left:0;right:0;height:18px;display:flex;justify-content:space-around;align-items:center;border-top:2px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(255,255,255,.035),transparent)}
.pv-festival-footer-top-lights span{width:7px;height:7px;border-radius:50%;background:var(--pv-festival-accent);box-shadow:0 0 7px 2px var(--pv-festival-accent);animation:pvFestivalTopBulb 1.25s ease-in-out infinite alternate}
.pv-festival-footer-top-lights span:nth-child(2n){animation-delay:.3s}
.pv-festival-footer-top-lights span:nth-child(3n){animation-delay:.65s}
.pv-festival-footer-top-lights span:nth-child(4n){animation-delay:.9s}
@keyframes pvFestivalWire{0%{background-position:0 0;filter:brightness(.8)}50%{filter:brightness(1.5)}100%{background-position:0 27px;filter:brightness(.9)}}
@keyframes pvFestivalTopBulb{0%{opacity:.35;transform:scale(.75)}100%{opacity:1;transform:scale(1.2);box-shadow:0 0 12px 4px var(--pv-festival-accent)}}
@media(max-width:700px){.pv-festival-greeting{max-width:calc(100% - 34px);width:auto;left:50%;bottom:12px;padding:9px 10px}.pv-festival-greeting-copy span{max-width:230px}.pv-festival-edge:after{width:2px}.pv-festival-edge-left:after{left:2px}.pv-festival-edge-right:after{right:2px}}

/* Interaction and mobile layout correction */
.pv-festival-greeting{pointer-events:auto!important;cursor:default}
.pv-festival-greeting-dismiss{pointer-events:auto!important;position:relative;z-index:2}
.pv-festival-greeting-dismiss:focus-visible{outline:2px solid var(--pv-festival-accent);outline-offset:3px}
@media(max-width:700px){
  .pv-festival-greeting{left:0!important;right:0!important;bottom:0!important;transform:none!important;width:100%!important;max-width:100%!important;border-radius:14px 14px 0 0!important;justify-content:flex-start!important;flex-wrap:nowrap!important;text-align:left!important;padding:12px 14px calc(12px + env(safe-area-inset-bottom))!important;gap:10px!important}
  .pv-festival-greeting-copy{flex:1;min-width:0}
  .pv-festival-greeting-copy strong{white-space:normal}
  .pv-festival-greeting-copy span{max-width:none!important;width:auto!important}
  .pv-festival-greeting-dismiss{flex:0 0 30px;width:30px;height:30px}
}
