.failure-animation{width:100%;height:100%;display:block;background:#101d20;image-rendering:pixelated}.failure-ending{background:linear-gradient(#1c2922,#142019);gap:10px;justify-content:center}.failure-ending h2{font-size:clamp(19px,3.5vw,28px);line-height:1.4;margin:0}.failure-ending .eyebrow{font-size:10px;letter-spacing:1px;color:#e7b58d}.failure-story,.failure-punchline{font-size:13px;line-height:1.8;margin:0;color:#d4dfc8}.failure-punchline{color:#b9d790}.failure-ending .primary{margin-top:8px;flex:none;min-height:44px}.main-play.has-critical-failure .scene>.avatar{display:none}.main-play.has-critical-failure .scene{background:#101d20}.main-play.has-critical-failure .stage-visual svg{animation:none}
.crash-chart{stroke-dasharray:300;stroke-dashoffset:300;animation:marketPlunge 1.5s .7s ease-out forwards}.broken-chain{animation:chainBreak .7s ease-out both;transform-origin:276px 47px}.ai-bubble{transform-origin:348px 45px;animation:bubblePop .5s 1.1s ease-in forwards}.bubble-shards{opacity:0;transform-origin:348px 45px;animation:bubbleShards .7s 1.45s ease-out forwards}.leek-sprout{transform-box:fill-box;transform-origin:bottom;animation:leekGrow .6s var(--delay) ease-out both}.crash-caption{animation:endingCaption .5s 2.7s both}.gpu-out{animation:gpuBlackout .2s .65s steps(1,end) forwards}.gpu-fan{animation:fanStop .8s ease-out forwards}.compute-alert{animation:endingCaption .3s .5s both}.ai-repeat{animation:repeatReply .4s both}.emergency-abacus{animation:abacusArrive .65s 2s both}.compute-caption{animation:endingCaption .4s 2.5s both}
@keyframes marketPlunge{to{stroke-dashoffset:0}}@keyframes chainBreak{0%{opacity:.2;transform:translateY(-5px)}65%{transform:translateX(4px)}100%{opacity:1;transform:none}}@keyframes bubblePop{35%{transform:scale(1.15)}100%{transform:scale(0);opacity:0}}@keyframes bubbleShards{25%{opacity:1}100%{opacity:0;transform:scale(1.8)}}@keyframes leekGrow{from{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes endingCaption{from{opacity:0}to{opacity:1}}@keyframes gpuBlackout{to{fill:#39443a}}@keyframes fanStop{from{transform:rotate(0)}to{transform:rotate(430deg)}}@keyframes repeatReply{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes abacusArrive{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:none}}
@media(max-height:680px){.failure-ending{padding:12px;gap:6px}.failure-story,.failure-punchline{font-size:12px;line-height:1.6}.failure-ending h2{font-size:18px}}@media(prefers-reduced-motion:reduce){.failure-animation *{animation:none!important}.crash-chart{stroke-dashoffset:0}.ai-bubble,.bubble-shards{display:none}.gpu-out{fill:#39443a}}
.staff-exit{animation:staffExit .9s ease-in forwards}.badge-drop{animation:badgeDrop .55s ease-in forwards;transform-box:fill-box;transform-origin:center}.empty-pie{animation:pieDeflate .8s 1.3s forwards;transform-origin:390px 92px}.morale-caption{animation:endingCaption .5s 1.8s both}.ceo-sleep{transform-origin:238px 108px;animation:ceoSleep .8s ease-in forwards}.sleep-z{animation:sleepZ 2.4s infinite both}.still-running{animation:stillRunning 1.8s steps(2,end) infinite}.energy-caption{animation:endingCaption .5s 1.5s both}
@keyframes staffExit{to{transform:translateX(-45px);opacity:0}}@keyframes badgeDrop{to{transform:translateY(15px) rotate(18deg)}}@keyframes pieDeflate{to{transform:scaleY(.25);opacity:.45}}@keyframes ceoSleep{to{transform:rotate(-25deg) translateY(8px)}}@keyframes sleepZ{0%,100%{opacity:0;transform:translateY(5px)}35%,65%{opacity:1}80%{transform:translateY(-9px)}}@keyframes stillRunning{50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.staff-exit{opacity:0}.sleep-z{opacity:1}}
.identity-scan{animation:identityScan 1s ease-in-out forwards}.identity-rejected{animation:endingCaption .3s 1s both}.jacket-fall{transform-origin:301px 90px;animation:jacketFall .9s 1.3s ease-in forwards}.family-warmth{animation:endingCaption 1.2s 2.1s both}
@keyframes identityScan{0%{transform:translateY(-5px)}80%{transform:translateY(60px);opacity:1}100%{transform:translateY(60px);opacity:0}}@keyframes jacketFall{to{transform:translateY(22px) rotate(-15deg);opacity:.4}}
@media(prefers-reduced-motion:reduce){.identity-scan{display:none}}
.failure-ending{overflow:auto;overscroll-behavior:contain}
