.worldparty{position:relative;isolation:isolate;width:100%;overflow:hidden;border-radius:20px;background:#082439;color:#fff4d3;border:2px solid #eab844}.worldparty[hidden]{display:none}.party-window{max-height:clamp(140px,35dvh,360px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;position:relative;z-index:1}.party-chapter{display:grid;grid-template-columns:minmax(100px,35%) 1fr;gap:18px;align-items:center;padding:16px;text-align:left;min-height:190px}.party-chapter img{width:100%;height:160px;object-fit:cover;border-radius:14px}.party-chapter small{color:#ffce42;letter-spacing:.12em}.party-chapter h3{font-size:clamp(19px,3vw,30px);margin:5px 0;color:#fff}.party-chapter p{font-size:15px;line-height:1.5;margin:8px 0;color:#d0ecf4}.party-chapter strong{font-size:14px;color:#69edd5}.party-thanks{text-align:center;padding:50px 20px}.party-thanks h3{color:#ffce42;font-size:28px}.party-confetti{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}.party-confetti i{position:absolute;left:calc(mod(var(--i)*29,100)*1%);top:-20px;width:7px;height:13px;background:var(--c);animation:crew-confetti 3.3s linear 3;animation-delay:calc(var(--i)*-.14s)}.grand-finale .party-confetti i{animation-iteration-count:6}@keyframes crew-confetti{from{transform:translateY(-20px) rotate(0)}to{transform:translateY(480px) rotate(600deg)}}@media(max-height:500px){.party-window{max-height:30dvh}.party-chapter{min-height:150px;padding:10px;gap:12px}.party-chapter img{height:125px}.party-chapter p{font-size:14px}.party-chapter h3{font-size:20px}}@media(prefers-reduced-motion:reduce){.party-confetti{display:none}}
#modal.world-victory{width:min(1000px,94vw);max-height:94dvh;display:grid;grid-template-columns:1fr;gap:10px;text-align:center}#modal.world-victory .modalcopy,#modal.world-victory .modalcards,#modal.world-victory .modalactions{grid-column:1;grid-row:auto;min-height:0}#modal.world-victory .modalcopy h2{font-size:clamp(24px,5vh,44px);margin:4px}#modal.world-victory .eyebrow{margin:0}#modal.world-victory #modaltext:empty{display:none}#modal.world-victory #upgrades{display:block;overflow:visible;max-height:none}#modal.world-victory #upgradepages,#modal.world-victory #pauseenemies{display:none}#modal.world-victory .modalactions{display:flex;justify-content:center;gap:12px;align-items:center}#modal.world-victory #continue{width:auto;margin:0;flex:1;max-width:450px}.touch-device #modal.world-victory{top:calc(8px + var(--safe-top));bottom:calc(8px + var(--safe-bottom));grid-template-rows:auto minmax(0,1fr) auto}.touch-device #modal.world-victory .modalcards{display:block;overflow:hidden}.touch-device #modal.world-victory .party-window{max-height:40dvh}
