/* v0.10.27 electric PANIC result cinematic — no gameplay or layout interactions. */
.game-stage .ty27-panic-event{position:absolute!important;inset:0;z-index:38!important;pointer-events:none!important;overflow:hidden;isolation:isolate;display:grid;place-items:center;--ty27-electric:#70efff;--ty27-ember:#ff5c9d;}
.game-stage .ty27-safe{--ty27-electric:#86f9e8;--ty27-ember:#8db6ff}
.game-stage .ty27-escaped{--ty27-electric:#e8b3ff;--ty27-ember:#b987ff}
.game-stage .ty27-dimmer{position:absolute;inset:0;background:radial-gradient(ellipse 55% 50% at 50% 44%,#061a3bcc,#0208159c 74%,#05091c55);animation:ty27-dim .84s ease-out both}
.game-stage .ty27-whiteout{position:absolute;inset:0;background:radial-gradient(ellipse 33% 35% at 50% 44%,#ddffffa6,transparent);mix-blend-mode:screen;animation:ty27-flash .47s ease-out both}
.game-stage .ty27-panic-emblem{position:absolute;left:50%;top:45%;width:min(38vw,340px);height:min(38vw,340px);transform:translate(-50%,-50%);filter:drop-shadow(0 0 22px #6beef8a3);animation:ty27-emblem .88s cubic-bezier(.13,.8,.3,1) both}
.game-stage .ty27-triangle{position:absolute;inset:8%;background:linear-gradient(145deg,#d0fbff,#46c9e9 50%,#d36ffc);clip-path:polygon(50% 0%,100% 88%,0% 88%);opacity:.82}
.game-stage .ty27-triangle::after{content:'';position:absolute;inset:5%;background:#081431f2;clip-path:polygon(50% 0%,100% 88%,0% 88%)}
.game-stage .ty27-triangle.ty27-inner{inset:24%;opacity:.5;transform:rotate(180deg)}
.game-stage .ty27-star{position:absolute;left:50%;top:51%;transform:translate(-50%,-50%);font-size:clamp(32px,6vw,78px);color:#e5ffff;text-shadow:0 0 15px #94eeff,0 0 55px #b667fc}
.game-stage .ty27-arcs{position:absolute;left:50%;top:45%;width:min(90vw,850px);height:min(50vh,370px);transform:translate(-50%,-50%);overflow:visible;filter:drop-shadow(0 0 6px var(--ty27-electric)) drop-shadow(0 0 10px #79a8ff);}
.game-stage .ty27-arc{fill:none;stroke:var(--ty27-electric);stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:18 9 49 13;animation:ty27-crackle .3s steps(3,end) 2 both}
.game-stage .ty27-arc-b{stroke:#e4a0ff;animation-delay:.07s}.game-stage .ty27-arc-c{stroke-width:2;animation-delay:.13s}.game-stage .ty27-arc-d{stroke:#d8faff;stroke-width:2;animation-delay:.09s}
.game-stage .ty27-panic-copy{position:absolute;top:44%;left:50%;width:min(92vw,770px);transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:1px;text-align:center;filter:drop-shadow(0 4px 16px #020918);animation:ty27-copy .96s cubic-bezier(.17,.8,.24,1) both}
.game-stage .ty27-eyebrow{font-size:clamp(9px,1vw,13px);font-weight:950;letter-spacing:.28em;color:#bde7ff;text-shadow:0 0 10px #6bcdec}
.game-stage .ty27-main{font-size:clamp(46px,9vw,136px);line-height:.87;font-style:italic;letter-spacing:-.055em;font-weight:1000;color:#f4feff;-webkit-text-stroke:2px #5ee7fd;text-shadow:0 0 6px #fff,0 0 26px #70eaff,0 5px 0 #4b348e,0 8px 30px #a346df}
.game-stage .ty27-verdict{margin-top:6px;font-size:clamp(22px,4vw,57px);line-height:1;font-style:italic;letter-spacing:.12em;font-weight:1000;color:var(--ty27-ember);text-shadow:0 0 14px var(--ty27-ember),0 3px 0 #110c35}
.game-stage .ty27-detail{font-size:clamp(10px,1.45vw,19px);font-weight:950;color:#e6f5ff;letter-spacing:.075em;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 0 12px #263e85}
.game-stage .ty27-penalty{margin-top:6px;padding:5px 18px;border:1px solid #ffffff96;border-radius:999px;background:linear-gradient(110deg,#bb205c,#392779);box-shadow:0 0 23px #ff60bb66;color:white;font-size:clamp(10px,1.5vw,18px);font-weight:1000;letter-spacing:.14em}
.game-stage .ty27-safe .ty27-penalty,.game-stage .ty27-escaped .ty27-penalty{background:linear-gradient(110deg,#134e70,#22426d);box-shadow:0 0 15px #4edaff55}
.game-stage .ty27-seat-bolt{position:absolute;z-index:0;left:var(--ty27-x);top:var(--ty27-y);width:var(--ty27-length);height:5px;transform-origin:left center;transform:rotate(var(--ty27-angle));background:linear-gradient(90deg,#fff0,#b5faff 13%,#fff 65%,#fa73bf);box-shadow:0 0 9px #7defff,0 0 18px #cf86ff;clip-path:polygon(0 0,30% 0,37% 80%,48% 10%,72% 75%,77% 0,100% 0,100% 100%,73% 100%,68% 30%,47% 100%,33% 35%,0 100%);animation:ty27-bolt .56s .23s ease-out both}
.game-stage .ty27-electrocuted{outline:3px solid #fb78bb!important;outline-offset:3px;box-shadow:0 0 0 6px #ff5cb42a,0 0 34px #ff73cba3!important;animation:ty27-seat .7s .18s steps(3,end) both}
@keyframes ty27-dim{0%{opacity:0}17%,65%{opacity:1}100%{opacity:0}}
@keyframes ty27-flash{0%,12%{opacity:0}19%{opacity:.85}26%{opacity:0}35%{opacity:.38}50%,100%{opacity:0}}
@keyframes ty27-emblem{0%{opacity:0;scale:.3;rotate:-25deg}22%{opacity:.95;scale:1.08;rotate:3deg}38%{scale:1;rotate:0}72%{opacity:.67}100%{opacity:0;scale:1.4;rotate:18deg}}
@keyframes ty27-copy{0%{opacity:0;scale:1.45 .45;filter:brightness(2)}14%{opacity:1;scale:.91 1.1}24%{scale:1;filter:none}73%{opacity:1}100%{opacity:0;scale:1.04}}
@keyframes ty27-crackle{0%{opacity:0;stroke-dashoffset:70}25%{opacity:1;stroke-dashoffset:40}54%{opacity:.3;stroke-dashoffset:22}90%{opacity:1;stroke-dashoffset:0}100%{opacity:0}}
@keyframes ty27-bolt{0%,20%{opacity:0;scale:0 1}42%{opacity:1;scale:1 1}72%{opacity:.9}100%{opacity:0;scale:1 1}}
@keyframes ty27-seat{0%,35%{filter:none}44%{filter:brightness(1.8)}53%{filter:none}65%{filter:brightness(1.65)}100%{filter:none}}
@media(max-width:900px) and (orientation:landscape){
 .game-stage .ty27-panic-copy{top:42%;width:min(66vw,550px);gap:1px}
 .game-stage .ty27-panic-emblem,.game-stage .ty27-arcs{top:42%}
 .game-stage .ty27-main{font-size:clamp(34px,8.2vh,65px)}
 .game-stage .ty27-verdict{font-size:clamp(18px,5vh,34px);margin-top:2px}
 .game-stage .ty27-detail{font-size:clamp(9px,2.5vh,13px)}
 .game-stage .ty27-eyebrow{font-size:clamp(8px,2vh,11px);letter-spacing:.12em}
 .game-stage .ty27-penalty{font-size:clamp(9px,2.2vh,12px);padding:2px 12px;margin-top:2px}
 .game-stage .ty27-panic-emblem{width:min(30vw,190px);height:min(30vw,190px)}
 .game-stage .ty27-arcs{height:min(58vh,200px)}
}
@media(prefers-reduced-motion:reduce){
 .game-stage .ty27-panic-event .ty27-dimmer{animation:none!important;opacity:.45!important}
 .game-stage .ty27-panic-event .ty27-whiteout,.game-stage .ty27-panic-event .ty27-arcs,.game-stage .ty27-panic-event .ty27-seat-bolt,.game-stage .ty27-panic-event .ty27-panic-emblem{display:none!important}
 .game-stage .ty27-panic-copy{animation:none!important;opacity:1!important;scale:1!important;filter:none!important}
 .game-stage .ty27-electrocuted{animation:none!important}
}

.game-stage .ty27-still .ty27-main,.game-stage .ty27-still .ty27-verdict{filter:none!important}
