:root{--slack-plum:#350d36;--slack-rail:#3f0e40;--ink:#1d1c1d;--muted:#696969;--line:#e5e5e5;--green:#007a5a;--purple:#611f69}*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Slack-Lato,Lato,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--slack-plum)}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,input:focus-visible{outline:3px solid #2c9fd4;outline-offset:3px}.hidden{display:none!important}.app{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.workspace-top{height:40px;min-height:40px;display:flex;align-items:center;position:relative;padding:0 17px;color:#fff;gap:16px}.workspace-name{font-size:13px;font-weight:700;opacity:.9;width:180px}.workspace-title{border:1px solid #ffffff2b;background:#ffffff12;height:27px;border-radius:6px;position:absolute;left:50%;transform:translateX(-50%);width:min(38%,520px);display:flex;justify-content:center;align-items:center;gap:10px;font-size:13px;color:#f1e8f2}.workspace-title span{color:#c4a5c8}.sound-button{margin-left:auto;width:31px;height:29px;border:none;background:transparent;color:#f6eaf7;border-radius:5px;display:grid;place-items:center;position:relative}.sound-button:hover{background:#ffffff20}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.mute-slash{position:absolute;width:24px;height:2px;background:currentColor;transform:rotate(-45deg)}.workspace-body{display:flex;flex:1;min-height:0;gap:0;padding:0 7px 7px 0}.workspace-rail{width:68px;flex:none;display:flex;flex-direction:column;align-items:center;padding:11px 0 12px;background:var(--slack-rail);color:#ddc5df;gap:14px}.workspace-icon{border:1px solid #ffffff35;width:38px;height:38px;border-radius:10px;color:#fff;background:#ffffff1c;font-size:30px;font-weight:800;line-height:1}.rail-divider{height:1px;background:#ffffff1c;width:30px}#rail-bosses{display:flex;flex-direction:column;gap:13px}.rail-boss{position:relative;width:44px;height:44px;padding:0;border:2px solid transparent;background:#ffffff1a;border-radius:9px;overflow:hidden;transition:background .15s}.rail-boss canvas{width:55px;height:55px;position:absolute;left:50%;top:50%;transform:translate(-50%,-40%)}.rail-boss:hover{background:#ffffff35}.rail-boss.active{border-color:#fff;background:#f6eef7}.rail-bottom{margin-top:auto;font-size:24px}.channel{background:#fff;flex:1;min-width:0;min-height:0;border:1px solid #482c4c;border-radius:9px;overflow:hidden;display:flex;flex-direction:column}.channel-header{height:59px;min-height:59px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:16px;padding:0 23px;background:#fff}.channel-header h1{font-size:18px;letter-spacing:-.03em;font-weight:800;margin:0;display:flex;align-items:center;gap:8px;white-space:nowrap}.channel-header h1>span{font-size:24px;font-weight:500;color:#636363}.channel-boss{color:var(--muted);font-size:13px;border-left:1px solid #ddd;padding-left:16px}.quiet-button{margin-left:auto;border:0;background:transparent;color:#616061;padding:6px;border-radius:5px;display:grid;place-items:center}.quiet-button:hover{background:#f4f0f5}.view{min-height:0;flex:1}.setup,.result{display:grid;place-items:center;padding:24px;overflow:auto;background:linear-gradient(150deg,#fff 35%,#f6f3f7)}.setup-panel{width:min(700px,100%)}h2{font-size:24px;margin:0 0 22px;font-weight:800;letter-spacing:-.035em}.boss-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.boss-card{background:#fff;border:1px solid #ddd;border-radius:9px;overflow:hidden;padding:0;transition:border-color .15s,box-shadow .15s;text-align:left;position:relative}.boss-card:hover{border-color:#ad81b2}.boss-card.active{border:2px solid var(--purple);box-shadow:0 0 0 3px #611f6910}.boss-card.active:after{content:'✓';position:absolute;right:9px;top:9px;background:var(--purple);color:#fff;border-radius:50%;width:22px;height:22px;display:grid;place-items:center;font-size:13px}.boss-face{height:180px;background:var(--office-image) center/cover;overflow:hidden;position:relative}.boss-face:before{content:'';position:absolute;inset:0;background:#f7f3fa44}.boss-face .portrait{position:absolute;left:50%;bottom:-9px;transform:translateX(-50%);width:190px;height:190px}.boss-card strong{display:block;padding:15px 14px;font-size:15px;font-weight:750}.rage-setting{padding:30px 0 25px}.rage-setting label{display:flex;justify-content:space-between;font-size:15px;font-weight:750;margin-bottom:12px}.rage-setting output{color:var(--purple);font-variant-numeric:tabular-nums}input[type=range]{accent-color:var(--purple);width:100%;cursor:pointer;height:24px;margin:0}.primary,.secondary{border:1px solid transparent;border-radius:5px;padding:11px 23px;font-size:15px;font-weight:750;min-height:43px;transition:background .15s}.primary{background:var(--green);color:#fff}.primary:hover{background:#006c50}.primary:active{background:#005d45}.secondary{background:#fff;border-color:#c7c7c7;color:#343434}.secondary:hover{background:#f6f6f6}.setup-panel>.primary{width:100%}.game{display:flex;flex-direction:column;padding:16px 21px 18px;gap:16px;background:#fff;overflow:hidden}.combat-layout{display:grid;grid-template-columns:45px minmax(0,1fr) 45px;gap:15px;flex:1;min-height:0}.vertical-meter{display:flex;align-items:center;flex-direction:column;gap:6px;padding:8px 0;min-height:0}.meter-label{font-size:12px;font-weight:700;color:#696969;white-space:nowrap}.vertical-meter b{font-size:16px;line-height:21px;font-variant-numeric:tabular-nums;font-weight:800}.player-meter b{color:#d76b27}.boss-meter b{color:#d43b52}.meter-track{position:relative;width:26px;flex:1;min-height:70px;border-radius:7px;background:#f0edf1;border:1px solid #dfdbe2;overflow:hidden;margin-top:4px}.meter-fill{position:absolute;bottom:0;left:0;right:0;height:100%;transition:height .28s cubic-bezier(.22,.8,.2,1)}#rage-fill{background:linear-gradient(0deg,#fbb843,#ed7442)}#hp-fill{background:linear-gradient(0deg,#eb8595,#da3c59)}.meter-ticks{position:absolute;inset:0;background:repeating-linear-gradient(to top,transparent 0,transparent calc(20% - 1px),#fff8 calc(20% - 1px),#fff8 20%)}.battle-window{border:1px solid #d3ccd7;border-radius:9px;overflow:hidden;position:relative;min-height:0;background:#e8e7ea;isolation:isolate}.arena{position:relative;width:100%;height:100%;min-height:220px;overflow:hidden;isolation:isolate}.office-background,.office-foreground{position:absolute;inset:0;background-image:var(--office-image);background-position:center;background-size:cover}.office-background{z-index:0}.office-shade{position:absolute;inset:0;background:linear-gradient(0deg,#16152322,transparent 60%);z-index:1}.office-foreground{clip-path:inset(var(--desk-cut,80%) 0 0);z-index:4;pointer-events:none}.boss-wrap{position:absolute;z-index:2;width:min(93%,540px);aspect-ratio:1;left:50%;bottom:-13%;transform:translateX(-50%);pointer-events:none}.boss-canvas{width:100%;height:100%;display:block;filter:drop-shadow(0 12px 6px #13101f35)}.damage-layer{position:absolute;inset:12%;pointer-events:none;z-index:3}.damage-mark{position:absolute;font-size:clamp(20px,3vw,38px);filter:drop-shadow(0 2px 2px #25354b55);animation:markLand .3s both}.speech{position:absolute;z-index:5;top:17px;left:17px;max-width:min(65%,380px);padding:12px 15px;border:1px solid #ddd;background:#fffffff2;box-shadow:0 3px 13px #19121f14;border-radius:8px;color:#1d1c1d;font-size:16px;line-height:1.45}.speech-person{display:flex;gap:10px;align-items:center;margin-bottom:4px;font-size:13px;font-weight:800}.speech-time{font-size:11px;color:#8b898b;font-weight:400}.combo{position:absolute;right:16px;top:17px;font-size:13px;font-weight:850;color:#fff;background:#35103cac;border:1px solid #ffffff3b;border-radius:5px;padding:6px 9px;z-index:5;opacity:0}.combo.visible{opacity:1}.fx-layer{position:absolute;inset:0;z-index:6;pointer-events:none}.attack-composer{display:grid;grid-template-columns:1.1fr 1fr;border:1px solid #bdb9bd;border-radius:8px;min-height:155px;background:#fff;overflow:hidden;flex:none}.physical-panel,.magic-panel{padding:10px 13px 12px;min-width:0}.magic-panel{border-left:1px solid var(--line)}.composer-label{height:25px;display:flex;align-items:center;justify-content:space-between;color:#767176;font-size:12px;font-weight:650;margin-bottom:5px}.grip-symbol,.magic-symbol{font-size:17px;color:#8b7b91}.physical-items{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.weapon{min-width:0;padding:4px 2px 6px;height:91px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:1px;border:1px solid transparent;border-radius:7px;background:#fff;color:#5e555f;font-size:12px;touch-action:none;user-select:none;-webkit-user-select:none}.weapon img{width:100%;height:63px;max-width:70px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 3px 2px #23102b19)}.weapon:hover{background:#f8f4fa;border-color:#dacade}.weapon:active{background:#eee5f2}.comeback-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-height:91px}.comeback-card{border:1px solid #d9cce0;border-radius:6px;background:#fcf9fd;color:#4a2455;padding:10px 11px;text-align:left;font-size:14px;font-weight:650;line-height:1.45;touch-action:none;user-select:none;-webkit-user-select:none;transition:background .15s,border-color .15s}.comeback-card:hover{border-color:#a97abd;background:#f5edf8}.comeback-card:active{background:#e9dcef}.comeback-card:disabled{opacity:.4;cursor:default}.magic-wait{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:6px}.magic-wait i{width:7px;height:7px;background:#b69cbd;border-radius:50%;animation:typing 1s infinite}.magic-wait i:nth-child(2){animation-delay:.15s}.magic-wait i:nth-child(3){animation-delay:.3s}.result-panel{text-align:center;width:min(460px,100%)}.result-boss{height:230px;width:230px;margin:0 auto}.result-boss canvas{width:100%;height:100%}.result h2{font-size:34px;margin:3px 0 10px}.result p{font-size:16px;line-height:1.5;color:#646064;margin:0 0 28px}.result-actions{display:flex;justify-content:center;gap:10px}.drag-ghost{position:fixed;z-index:99;pointer-events:none;transform:translate(-50%,-50%) rotate(-8deg);font-size:15px;font-weight:750;max-width:220px;text-align:center}.drag-ghost.prop{width:100px;height:100px}.drag-ghost.prop img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 6px #24122a44)}.drag-ghost.magic{padding:13px 18px;border:1px solid #bfa4cf;border-radius:7px;background:#faf4ff;box-shadow:0 7px 24px #391d5440;color:#4a2455}.flying{position:fixed;z-index:80;pointer-events:none;width:84px;height:84px;font-size:44px;color:#ac73e2;transition:transform .14s cubic-bezier(.18,.66,.18,1),opacity .14s}.flying img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 4px #291a3250)}.impact-text{position:absolute;left:50%;top:75%;transform:translate(-50%,-50%) rotate(-7deg);font-size:clamp(24px,4vw,45px);white-space:nowrap;color:#fff;font-weight:1000;letter-spacing:-.03em;-webkit-text-stroke:1px #391444;text-shadow:3px 4px 0 #9b4682;animation:impact .6s ease-out forwards}.burst{position:absolute;width:16px;height:16px;background:#ffd754;clip-path:polygon(50% 0,62% 35%,100% 50%,62% 64%,50% 100%,37% 64%,0 50%,37% 35%);animation:spark .6s ease-out forwards}.counter-pop{position:absolute;right:15px;top:90px;border:1px solid #dfadc0;background:#fff4f8;box-shadow:0 4px 15px #43102d22;color:#b32e63;padding:9px 13px;font-size:13px;font-weight:750;max-width:50%;border-radius:7px;animation:slideIn .2s both}.hit-ring{position:absolute;width:70px;height:70px;border:8px solid #ffcf4f;border-radius:50%;transform:translate(-50%,-50%);animation:hitRing .4s ease-out both}.damage-number{position:absolute;font-size:27px;font-weight:1000;color:#e53737;text-shadow:2px 2px #fff,-2px -2px #fff;animation:damageFly .65s ease-out both}.hit-debris{position:absolute;font-size:24px;color:#334559;font-weight:1000;animation:debrisFly .8s cubic-bezier(.15,.55,.45,1) both}.debris-1{font-size:40px;color:#233043}.debris-2{color:#65a849}.debris-3{color:#d54949}.debris-4{color:#f5aa1c}.debris-5{color:#ff8550}.debris-magic{color:#c798f8}.toner-cloud{position:absolute;width:100px;height:80px;border-radius:50%;background:radial-gradient(ellipse,#263344a8,transparent 70%);transform:translate(-50%,-50%);animation:toner .6s ease-out both}.shake{animation:screenShake .3s}
@keyframes typing{50%{opacity:.3;transform:translateY(-3px)}}@keyframes hitRing{0%{opacity:1;transform:translate(-50%,-50%) scale(.2)}100%{opacity:0;transform:translate(-50%,-50%) scale(3)}}@keyframes damageFly{0%{opacity:0;transform:scale(.5)}20%{opacity:1;transform:scale(1.25)}100%{opacity:0;transform:translateY(-50px) scale(.9)}}@keyframes debrisFly{0%{opacity:1;transform:translate(0,0) scale(.5)}70%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--rot)) scale(.75)}}@keyframes toner{25%{opacity:1;transform:translate(-50%,-50%) scale(2)}100%{opacity:0;transform:translate(-50%,-65%) scale(3)}}@keyframes markLand{from{opacity:0;transform:scale(2) rotate(-18deg)}to{opacity:1;transform:scale(1) rotate(8deg)}}@keyframes screenShake{20%{transform:translateX(-4px)}40%{transform:translateX(4px)}60%{transform:translateX(-2px)}80%{transform:translateX(2px)}}@keyframes impact{0%{opacity:0;transform:translate(-50%,-50%) rotate(-12deg) scale(.1)}25%{opacity:1;transform:translate(-50%,-50%) rotate(-6deg) scale(1.1)}70%{opacity:1}100%{opacity:0;transform:translate(-50%,-75%) rotate(-2deg) scale(1)}}@keyframes spark{to{opacity:0;transform:translate(var(--x),var(--y)) rotate(160deg) scale(.2)}}@keyframes slideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1500px){.game{padding:20px 50px}.boss-wrap{width:560px}.attack-composer{max-width:1350px;width:100%;align-self:center}}
@media(max-width:1050px){.attack-composer{grid-template-columns:1fr 1fr}.physical-panel,.magic-panel{padding:8px}.weapon img{height:57px}.comeback-card{font-size:13px;padding:8px}.combat-layout{gap:10px}.game{padding:13px;gap:12px}.boss-wrap{width:min(98%,500px)}}
@media(max-width:760px){.workspace-title{display:none}.workspace-top{height:34px;min-height:34px;padding:0 12px}.workspace-name{font-size:12px}.workspace-rail{width:49px;padding-top:10px;gap:12px}.workspace-icon{width:32px;height:32px;font-size:25px}.rail-boss{width:35px;height:35px}.rail-boss canvas{width:46px;height:46px}.workspace-body{padding:0 4px 4px 0}.channel-header{height:49px;min-height:49px;padding:0 13px;gap:9px}.channel-header h1{font-size:16px}.channel-boss{font-size:12px;padding-left:9px}.channel-header h1>span{font-size:21px}.game{padding:9px 8px 11px;gap:10px}.combat-layout{grid-template-columns:27px minmax(0,1fr) 27px;gap:6px}.meter-track{width:18px;border-radius:5px}.vertical-meter{gap:3px;padding:5px 0}.vertical-meter b{font-size:12px}.meter-label{font-size:11px}.attack-composer{grid-template-columns:1fr;min-height:0}.physical-panel,.magic-panel{padding:6px 8px 8px}.magic-panel{border-left:0;border-top:1px solid var(--line)}.composer-label{font-size:11px;height:18px;margin-bottom:2px}.weapon{height:62px;font-size:11px;gap:0;padding:0;justify-content:center}.weapon img{height:43px;max-width:48px}.physical-items{gap:1px}.comeback-cards{min-height:64px;gap:5px}.comeback-card{font-size:12px;padding:7px;line-height:1.35}.arena{min-height:190px}.boss-wrap{width:125%;max-width:440px;bottom:-12%}.speech{top:9px;left:8px;max-width:88%;padding:8px 10px;font-size:13px;line-height:1.35}.speech-person{font-size:11px;margin-bottom:3px}.speech-time{font-size:10px}.combo{top:auto;bottom:12px;right:10px;font-size:11px;padding:4px 7px}.counter-pop{top:83px;right:8px;font-size:11px;max-width:75%;padding:7px}.setup,.result{padding:17px 13px}.setup h2{font-size:20px}.boss-options{gap:7px}.boss-face{height:120px}.boss-face .portrait{width:136px;height:136px;bottom:-7px}.boss-card strong{font-size:12px;padding:11px 7px}.boss-card.active:after{width:17px;height:17px;font-size:11px;right:5px;top:5px}.rage-setting{padding:25px 0 19px}.impact-text{font-size:25px;top:77%}.damage-number{font-size:22px}.flying{width:68px;height:68px}.result-boss{width:200px;height:200px}}
@media(max-width:390px){.workspace-rail{width:42px}.rail-boss{width:31px;height:31px}.workspace-icon{width:29px;height:29px}.channel-boss{display:none}.game{padding:7px 5px}.combat-layout{grid-template-columns:23px minmax(0,1fr) 23px;gap:4px}.comeback-card{font-size:11px;padding:5px}.weapon{font-size:10px}.boss-card strong{font-size:11px}.boss-face{height:100px}.boss-face .portrait{width:118px;height:118px}.arena{min-height:170px}}
@media(max-height:680px) and (max-width:760px){.channel-header{height:40px;min-height:40px}.game{gap:7px;padding-top:7px}.weapon{height:52px}.weapon img{height:34px}.comeback-cards{min-height:53px}.boss-wrap{width:min(115%,340px);bottom:-20%}.composer-label{height:16px}.speech{font-size:12px;padding:6px 8px}.speech-person{display:none}.arena{min-height:140px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Fourth boss: four-card selector and dedicated elevator cutout. */
.boss-options{grid-template-columns:repeat(4,minmax(0,1fr))}
.boss-face{height:160px}
.dispatch-scene[data-boss="tyrant"] .dispatch-seated[data-dispatch-boss="tyrant"]{display:block}
@media(max-width:760px){
 .boss-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .boss-face{height:132px}
 .boss-face .portrait{width:150px;height:150px}
}
/* Rage registration */
.setup{place-items:start center}.setup-panel{padding:15px 0 25px}.rage-registration{margin-top:25px;border-top:1px solid #e9e3ea;padding-top:24px}.rage-registration h2{font-size:19px;margin-bottom:7px}.rage-registration p{font-size:13px;line-height:1.55;color:#6d666e;margin:0 0 14px}.rage-events{display:grid;grid-template-columns:1fr 1fr;gap:7px}.rage-event{display:flex;align-items:center;gap:9px;border:1px solid #e4dfe5;background:#fff;border-radius:7px;padding:9px 11px;font-size:13px;line-height:1.4;cursor:pointer}.rage-event:has(input:checked){border-color:#6b2773;background:#fbf5fc;color:#53145e}.rage-event input{accent-color:#611f69;width:16px;height:16px;flex:none}.rage-setting{padding:19px 0 15px}.rage-setting label{margin-bottom:5px}.rage-status{color:#802b70;font-weight:800;font-size:14px;margin-top:5px}.rage-setting small{display:block;color:#7b737b;font-size:12px;margin-top:7px}
/* Spell collision is visually separate from prop impact. */
.spell-projectile{width:240px;height:auto;min-height:60px;display:grid;place-items:center;padding:9px 14px;border-radius:50px;color:white;font-size:19px;font-weight:900;text-align:center;line-height:1.25;text-shadow:0 0 9px #fff;background:radial-gradient(ellipse,#ecb9ff,#873de4 58%,#42299cb5 78%,transparent 90%);box-shadow:0 0 12px #fff,0 0 35px #a04cf4,0 0 80px #712ee2;filter:drop-shadow(0 0 14px #b883ff);transition:transform .23s cubic-bezier(.1,.45,.15,1),opacity .23s}.boss-spell{position:absolute;top:21%;left:50%;font-size:70px;color:#f7528d;text-shadow:0 0 18px #ff4574,0 0 42px #d41a63;animation:bossSpell .42s ease-in both}.magic-flash{position:absolute;inset:0;background:radial-gradient(circle at 50% 53%,#fff 0,#f0ccffb5 10%,#914ff266 32%,transparent 69%);animation:spellFlash .6s both}.magic-sigil{position:absolute;transform:translate(-50%,-50%);font-size:140px;line-height:1;color:#fff;text-shadow:0 0 11px #fff,0 0 38px #a238f9,0 0 80px #7e26e2;animation:sigil .8s both}.magic-spark{position:absolute;width:7px;height:45px;border-radius:10px;background:linear-gradient(#fff,#d2a3ff,#8e3deb00);box-shadow:0 0 11px #b469ff;animation:magicSpark .8s ease-out both}.magic-reply{position:absolute;top:67%;left:50%;transform:translateX(-50%);width:max-content;max-width:90%;padding:9px 17px;border-radius:8px;color:#fff;background:#542276ed;box-shadow:0 0 24px #b860fb;font-size:clamp(16px,3vw,25px);font-weight:900;text-align:center;animation:spellReply 1.1s both}.magic-number{color:#a02fed;text-shadow:2px 2px white,-2px -2px white}.magic-shudder{animation:magicShudder .45s ease-out}
@keyframes bossSpell{from{transform:translate(70px,0) scale(.3);opacity:0}65%{opacity:1}to{transform:translate(-20px,110px) scale(1.5);opacity:0}}@keyframes spellFlash{0%{opacity:0}25%{opacity:1}100%{opacity:0}}@keyframes sigil{0%{opacity:0;transform:translate(-50%,-50%) scale(.15) rotate(-60deg)}35%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(2.4) rotate(80deg)}}@keyframes magicSpark{to{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(65deg) scale(.3)}}@keyframes spellReply{0%{opacity:0;transform:translate(-50%,22px) scale(.65)}25%{opacity:1;transform:translate(-50%,0) scale(1.1)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-22px)}}@keyframes magicShudder{15%{filter:brightness(2) hue-rotate(40deg)}35%{filter:brightness(1.6) hue-rotate(-30deg)}65%{filter:brightness(1.3)}100%{filter:none}}
@media(max-width:760px){.rage-events{grid-template-columns:1fr}.rage-event{padding:8px 10px}.rage-registration{margin-top:17px;padding-top:18px}.rage-registration h2{font-size:17px}.spell-projectile{width:175px;font-size:15px}.magic-sigil{font-size:100px}}
/* Game-native splash */
.boot{position:fixed;inset:0;z-index:200;background:radial-gradient(circle at 50% 40%,#632469 0,#350d36 58%,#260827 100%);display:grid;place-items:center;color:white;overflow:hidden}.boot-content{display:flex;align-items:center;flex-direction:column;position:relative;z-index:2;animation:bootEnter .7s both}.boot-logo{width:132px;height:132px;position:relative;margin-bottom:16px;filter:drop-shadow(0 14px 19px #16041880);animation:logoDrop .65s cubic-bezier(.16,1.4,.42,1) both}.boot-logo svg{width:100%;height:100%}.boot-bubble{fill:#f8f3fa;stroke:#d0b5d4;stroke-width:2}.boot-bubble-line{fill:none;stroke:#8d6692;stroke-width:6;stroke-linecap:round}.boot-stamp{position:absolute;right:-3px;bottom:12px;width:64px;height:64px;border-radius:12px;display:grid;place-items:center;background:#df4254;color:#fff;border:3px solid #fff3;font-size:45px;font-weight:900;transform:rotate(-13deg);box-shadow:0 5px 0 #8c1a30}.boot h1{font-size:clamp(38px,7vw,64px);letter-spacing:.05em;line-height:1.2;margin:0 0 34px;text-shadow:0 3px 14px #1a0a2188}.boot .primary{min-width:210px;min-height:52px;font-size:18px;box-shadow:0 8px 20px #17102666}.boot-paper{position:absolute;width:68px;height:88px;background:#ffffff18;border:1px solid #ffffff24;border-radius:4px;transform:rotate(22deg)}.paper-one{left:22%;top:27%}.paper-two{right:18%;bottom:22%;transform:rotate(-16deg)}.boot.leaving .boot-content{animation:bootExit .4s ease-in both}.boot.leaving .boot-paper{animation:paperScatter .45s both}@keyframes logoDrop{0%{opacity:0;transform:translateY(-95px) rotate(-20deg)}70%{opacity:1;transform:translateY(8px) rotate(4deg)}100%{transform:translateY(0)}}@keyframes bootEnter{from{opacity:0}to{opacity:1}}@keyframes bootExit{to{opacity:0;transform:scale(.35) translateY(-90px)}}@keyframes paperScatter{to{opacity:0;transform:translateY(-170px) rotate(90deg)}}
/* Victory dispatch, with boss portrait sourced from the locked sprite atlas. */
.result-panel{width:min(560px,100%)}.dispatch-button{display:block;width:min(310px,100%);margin:0 auto 15px;border:1px solid #693472;background:#5d2264;color:#fff;border-radius:7px;min-height:49px;padding:10px 20px;font-weight:800;font-size:16px;box-shadow:0 5px 15px #4e18502c}.dispatch-button:hover{background:#75327d}.dispatch-button:disabled{opacity:.5;cursor:default}.result.dispatching .result-actions{opacity:.3;pointer-events:none}.dispatch-scene{height:340px;position:relative;margin:0 auto 18px;overflow:hidden;border-radius:12px;background:radial-gradient(ellipse at 50% 54%,#f8edff,#e9e6ed 60%,#e1dbe4);border:1px solid #dcd2df}.dispatch-flight{position:absolute;left:50%;bottom:5px;width:245px;height:315px;transform:translateX(-50%);z-index:1}.dispatch-elevator{position:absolute;width:100%;height:100%;object-fit:fill;left:0;bottom:0}.dispatch-floor{position:absolute;z-index:8;left:50%;top:13px;transform:translateX(-50%);background:#211828;color:#f5ce67;border:2px solid #d2bdcd;border-radius:5px;padding:3px 9px;font-size:12px;font-weight:900;white-space:nowrap;box-shadow:0 0 10px #fbd6787a}.dispatch-chair{position:absolute;z-index:2;left:50%;bottom:11px;width:155px;height:220px;transform:translateX(-50%)}.dispatch-chair img{width:100%;height:100%;object-fit:contain}.dispatch-boss{position:absolute;z-index:3;left:50%;bottom:27px;width:153px;height:153px;transform:translateX(-50%);filter:drop-shadow(0 4px 5px #23132b55)}.dispatch-hands{position:absolute;z-index:5;width:290px;height:140px;left:50%;top:90px;transform:translate(-50%,-160px);opacity:0}.dispatch-hands img{width:100%;height:100%;object-fit:fill}.dispatch-door{position:absolute;z-index:6;top:35px;bottom:19px;width:42%;background:linear-gradient(90deg,#aeb0bd,#d5d7df 30%,#878b9c 95%);border:2px solid #6b6878;box-shadow:inset 3px 0 8px #f8f9ff66}.dispatch-door.left{left:8%;transform:translateX(-110%);border-radius:5px 0 0 5px}.dispatch-door.right{right:8%;transform:translateX(110%);border-radius:0 5px 5px 0}.dispatch-plea{position:absolute;z-index:9;left:50%;top:39%;width:max-content;max-width:90%;transform:translateX(-50%);color:#6a3268;background:#fffdf9e8;border:1px solid #c8b2cd;border-radius:9px;padding:7px 12px;font-size:14px;font-weight:700;opacity:0}.dispatch-confetti{position:absolute;z-index:9;left:50%;top:0;color:#8a52a4;font-size:38px;white-space:nowrap;opacity:0}.dispatch-stamp{position:absolute;z-index:10;left:50%;top:48%;width:max-content;max-width:90%;padding:11px 20px;color:#b52f51;border:5px solid #b52f51;border-radius:10px;font-size:clamp(20px,4vw,31px);font-weight:1000;letter-spacing:.04em;transform:translate(-50%,-50%) rotate(-11deg) scale(2);opacity:0;background:#fffdf8e8;box-shadow:0 3px 15px #63172b25}.dispatch-scene.playing .dispatch-chair{animation:chairSlide 1.2s cubic-bezier(.15,.75,.4,1) both}.dispatch-scene.playing .dispatch-boss{animation:bossSit 1.2s ease-in-out both}.dispatch-scene.playing .dispatch-hands{animation:handsPress 1.3s ease-in-out both}.dispatch-scene.playing .dispatch-door.left{animation:doorLeft 3.6s ease-in-out both}.dispatch-scene.playing .dispatch-door.right{animation:doorRight 3.6s ease-in-out both}.dispatch-scene.playing .dispatch-flight{animation:elevatorLaunch 4s ease-in both}.dispatch-scene.playing .dispatch-plea{animation:pleaFade 1.3s 1.45s both}.dispatch-scene.playing .dispatch-confetti{animation:confettiDrop 1.3s 3.1s both}.dispatch-scene.playing .dispatch-stamp{animation:stampLand .58s 3.6s both}.dispatch-scene.done .dispatch-flight{opacity:0}.dispatch-scene.done .dispatch-stamp{opacity:1;transform:translate(-50%,-50%) rotate(-11deg) scale(1)}.dispatch-scene.done .dispatch-confetti{opacity:.65;top:55%}
@keyframes chairSlide{0%{transform:translateX(180%);filter:blur(3px)}48%{transform:translateX(-62%)}65%{transform:translateX(-48%)}100%{transform:translateX(-50%)}}@keyframes bossSit{0%{transform:translate(-50%,-28px) rotate(-8deg)}18%{transform:translate(-40%,-29px) rotate(7deg)}32%{transform:translate(-58%,-24px) rotate(-12deg)}45%{transform:translate(-50%,-28px) rotate(8deg)}74%{transform:translate(-50%,15px) scaleY(.78)}83%{transform:translate(-53%,0) rotate(-6deg)}91%{transform:translate(-47%,0) rotate(5deg)}100%{transform:translate(-50%,0)}}@keyframes handsPress{0%,22%{transform:translate(-50%,-160px);opacity:0}40%{opacity:1}64%{transform:translate(-50%,30px);opacity:1}80%{transform:translate(-50%,18px);opacity:1}100%{transform:translate(-50%,-160px);opacity:0}}@keyframes doorLeft{0%,49%{transform:translateX(-110%)}67%,100%{transform:translateX(0)}}@keyframes doorRight{0%,49%{transform:translateX(110%)}67%,100%{transform:translateX(0)}}@keyframes elevatorLaunch{0%,71%{transform:translateX(-50%) translateY(0)}76%{transform:translateX(-50%) translateY(14px)}100%{transform:translateX(-50%) translateY(-540px)}}@keyframes pleaFade{0%,25%{opacity:0;transform:translate(-50%,12px)}35%,75%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,-20px) scale(.7)}}@keyframes confettiDrop{0%{opacity:0;transform:translate(-50%,-30px) rotate(-10deg)}30%{opacity:1}100%{opacity:0;transform:translate(-50%,230px) rotate(23deg)}}@keyframes stampLand{0%{opacity:0;transform:translate(-50%,-50%) rotate(-24deg) scale(2.4)}70%{opacity:1;transform:translate(-50%,-50%) rotate(-9deg) scale(.88)}100%{opacity:1;transform:translate(-50%,-50%) rotate(-11deg) scale(1)}}
@media(max-width:760px){.boot-logo{width:110px;height:110px}.boot-stamp{width:55px;height:55px;font-size:38px}.dispatch-scene{height:290px}.dispatch-flight{width:200px;height:260px}.dispatch-chair{width:126px;height:184px}.dispatch-boss{width:130px;height:130px;bottom:22px}.dispatch-hands{width:235px;height:116px;top:72px}.dispatch-door{top:31px;bottom:17px}.dispatch-floor{top:10px}.dispatch-plea{font-size:12px}.result-panel{padding:12px 0}}
.boot-prop{position:absolute;width:clamp(100px,16vw,210px);height:clamp(105px,18vw,225px);object-fit:contain;pointer-events:none;filter:drop-shadow(0 16px 24px #18081c99);animation:propFloat 5s ease-in-out infinite}.prop-folder{left:clamp(4%,15%,21%);top:19%;transform:rotate(-19deg)}.prop-chicken{right:clamp(4%,14%,19%);bottom:15%;transform:rotate(13deg);animation-delay:-2.5s}.boot.leaving .boot-prop{animation:paperScatter .45s ease-in both}.dispatch-seated{display:none;position:absolute;z-index:3;left:50%;bottom:10px;width:190px;height:228px;object-fit:contain;transform:translateX(-50%);filter:drop-shadow(0 4px 5px #23132b55)}.dispatch-scene[data-boss="pua"] .dispatch-seated[data-dispatch-boss="pua"],.dispatch-scene[data-boss="kpi"] .dispatch-seated[data-dispatch-boss="kpi"],.dispatch-scene[data-boss="pie"] .dispatch-seated[data-dispatch-boss="pie"]{display:block}.dispatch-scene.playing .dispatch-seated{animation:seatedSlide 1.25s cubic-bezier(.15,.75,.4,1) both}@keyframes propFloat{0%,100%{translate:0 0}50%{translate:0 -14px}}@keyframes seatedSlide{0%{transform:translateX(170%) rotate(11deg);filter:blur(3px)}40%{transform:translateX(-63%) rotate(-7deg)}58%{transform:translateX(-46%) rotate(4deg)}72%{transform:translateX(-51%) scaleY(.92)}85%{transform:translateX(-49%) rotate(-3deg)}100%{transform:translateX(-50%) rotate(0)}}
@media(max-width:760px){.boot-prop{width:95px;height:105px;opacity:.84}.prop-folder{left:1%;top:14%}.prop-chicken{right:1%;bottom:13%}.dispatch-seated{width:157px;height:188px;bottom:8px}}
.office-background,.office-foreground{width:100%;height:100%;object-fit:cover;display:block}.arena{background-image:url('./assets/pua-office.webp');background-position:center;background-size:cover}
.dispatch-confetti{display:flex;align-items:center;justify-content:center;gap:10px;width:80%;transform:translateX(-50%);pointer-events:none}.dispatch-confetti img{width:20%;max-width:60px;height:64px;object-fit:contain;filter:drop-shadow(0 3px 3px #35103c22)}.dispatch-confetti img:nth-child(odd){rotate:-12deg}.dispatch-confetti img:nth-child(even){rotate:12deg}.dispatch-scene.done .dispatch-confetti{opacity:1;top:62%;transform:translateX(-50%)}

.physical-projectile{transition:none;will-change:transform,opacity}.physical-projectile img{filter:drop-shadow(0 10px 7px #291a324d)}

/* Phase combat, weaknesses, rage ultimates and award certificate */
.boot-how{margin:-22px 0 27px;color:#ead8ec;font-size:17px;font-weight:650;letter-spacing:.04em}.weakness-chip{position:absolute;z-index:5;right:15px;bottom:14px;padding:5px 9px;border-radius:999px;background:#24102db8;border:1px solid #ffffff38;color:#f6eaf7;font-size:12px;font-weight:800;backdrop-filter:blur(6px)}
.weapon.weak-hint,.comeback-card.weak-hint{animation:weakPulse 1.8s ease-in-out infinite;border-color:#a76ab6;background:#fbf5fd;box-shadow:0 0 0 2px #bd7dcc22,0 0 17px #9e58b644}.precision-pop{position:absolute;z-index:12;left:50%;top:31%;transform:translate(-50%,-50%) rotate(-5deg);padding:7px 14px;border:3px solid #f4cf58;background:#44184de8;color:#fff4b5;border-radius:8px;font-size:clamp(21px,4vw,38px);font-weight:1000;letter-spacing:.06em;text-shadow:0 2px #6b214f;animation:precisionLand .78s both;white-space:nowrap}.phase-banner{position:absolute;z-index:30;left:50%;top:50%;transform:translate(-50%,-50%);min-width:min(440px,88%);padding:17px 23px;text-align:center;border:1px solid #ffffff77;border-radius:10px;background:#35103ce8;color:#fff;box-shadow:0 14px 55px #21092588,0 0 0 999px #1c071d35;animation:phaseBreak 1.15s both}.phase-banner small{display:block;color:#d8b9db;font-size:11px;font-weight:800;letter-spacing:.18em;margin-bottom:4px}.phase-banner strong{font-size:clamp(23px,5vw,39px);font-weight:1000}.ultimate-menu{position:absolute;z-index:20;left:50%;bottom:13px;transform:translateX(-50%);width:min(520px,93%);display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;padding:9px 10px;border-radius:10px;background:#2b0c31ed;border:1px solid #f4b343;box-shadow:0 0 0 3px #f4b34322,0 8px 32px #21062488;animation:ultReady .48s cubic-bezier(.2,1.4,.3,1) both}.ultimate-menu div{display:flex;flex-direction:column;color:#fff}.ultimate-menu b{font-size:15px;color:#ffd36c}.ultimate-menu span{font-size:11px;color:#d9c4dc}.ultimate-menu button{border:1px solid #f1c45e;border-radius:7px;background:#fff7dd;color:#4e1c45;font-weight:900;padding:9px 11px;white-space:nowrap}.ultimate-menu button:last-child{background:#7c3bb2;color:white;border-color:#d1a0f3}.ultimate-menu button:hover{filter:brightness(1.08)}.ultimate-menu.busy{pointer-events:none;opacity:.6}.ultimate-storm{position:absolute;inset:0;z-index:18;overflow:hidden;background:radial-gradient(circle at 50% 50%,#fff3a744,#6b244c33 40%,#250729b8);animation:ultVeil 1.55s both}.ultimate-prop{position:absolute;width:140px;height:140px;object-fit:contain;filter:drop-shadow(0 9px 7px #18051e88);animation:ultThrow 1.2s var(--delay) cubic-bezier(.16,.74,.28,1) both}.truth-field{position:absolute;inset:0;z-index:18;overflow:hidden;background:radial-gradient(circle,#e8c6ff99 0,#59298ddc 48%,#220a39f5 100%);animation:ultVeil 1.8s both}.truth-lie{position:absolute;color:#f1dfff85;font-size:clamp(13px,2.2vw,22px);font-weight:800;animation:lieShatter 1.25s var(--delay) both}.truth-reply{position:absolute;left:50%;top:50%;width:90%;transform:translate(-50%,-50%);color:#fff;text-align:center;font-size:clamp(28px,6vw,58px);font-weight:1000;line-height:1.15;text-shadow:0 0 15px #fff,0 0 42px #c263ff;animation:truthBlast 1.7s both}.award-button{display:block;width:min(310px,100%);margin:0 auto 11px;border:1px solid #b68d32;background:#fff8df;color:#6b4511;border-radius:7px;min-height:47px;padding:10px 20px;font-weight:900;font-size:15px;box-shadow:0 4px 12px #59380f1c}.award-button:hover{background:#fff1bf}.award-modal{position:fixed;inset:0;z-index:300;background:#1f0924db;display:grid;place-items:center;padding:18px;backdrop-filter:blur(7px)}.award-shell{position:relative;width:min(500px,100%);max-height:96dvh;display:flex;flex-direction:column;gap:11px}.award-shell canvas{width:100%;max-height:calc(96dvh - 65px);object-fit:contain;background:#fff;box-shadow:0 22px 70px #100314;border-radius:7px}.award-close{position:absolute;z-index:2;right:-13px;top:-13px;width:36px;height:36px;border:2px solid #fff;background:#421348;color:#fff;border-radius:50%;font-size:25px;line-height:1}.award-actions{display:flex;justify-content:center;gap:9px}.award-actions button{min-width:130px}
@keyframes weakPulse{0%,100%{box-shadow:0 0 0 1px #b778c122,0 0 5px #a866b526}50%{box-shadow:0 0 0 3px #b778c12d,0 0 18px #9e58b65c}}@keyframes precisionLand{0%{opacity:0;transform:translate(-50%,-50%) rotate(-14deg) scale(2)}30%,72%{opacity:1;transform:translate(-50%,-50%) rotate(-5deg) scale(1)}100%{opacity:0;transform:translate(-50%,-75%) scale(.9)}}@keyframes phaseBreak{0%{opacity:0;transform:translate(-50%,-50%) scale(1.45)}20%,75%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(.9)}}@keyframes ultReady{from{opacity:0;transform:translate(-50%,25px) scale(.85)}to{opacity:1;transform:translate(-50%,0) scale(1)}}@keyframes ultVeil{0%{opacity:0}15%,78%{opacity:1}100%{opacity:0}}@keyframes ultThrow{0%{opacity:0;transform:translate(var(--sx),var(--sy)) rotate(-100deg) scale(.4)}25%{opacity:1}75%{opacity:1;transform:translate(var(--tx),var(--ty)) rotate(320deg) scale(1.35)}100%{opacity:0;transform:translate(var(--tx),calc(var(--ty) + 70px)) rotate(390deg) scale(.7)}}@keyframes lieShatter{0%{opacity:0;transform:scale(.6)}25%,60%{opacity:1;transform:scale(1)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(18deg) scale(.2);filter:blur(5px)}}@keyframes truthBlast{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}25%,65%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.8)}}
@media(max-width:760px){.boot-how{font-size:14px;margin-top:-24px}.weakness-chip{font-size:10px;right:8px;bottom:8px}.ultimate-menu{grid-template-columns:1fr 1fr;bottom:7px;padding:7px}.ultimate-menu div{grid-column:1/-1;flex-direction:row;align-items:center;gap:7px}.ultimate-menu div span{display:none}.ultimate-menu button{font-size:12px;padding:7px}.phase-banner{padding:13px}.award-modal{padding:10px}.award-close{right:-4px;top:-8px}}

/* Approved quieter setup copy and wordless phase-break effects. */
.system-disclaimer{margin:9px 2px 0!important;color:#918a92!important;font-size:11px!important;line-height:1.45!important}.phase-fx{position:absolute;inset:0;z-index:28;pointer-events:none;overflow:hidden;background:radial-gradient(circle at 50% 48%,#ffffffb8 0,#f7d5ff45 16%,transparent 53%);animation:phaseFlash .9s both}.phase-fx:before,.phase-fx:after{content:'';position:absolute;inset:-8%;background:repeating-linear-gradient(103deg,transparent 0 8%,#fff 8.2% 8.5%,transparent 8.7% 17%);mix-blend-mode:screen;opacity:.8;animation:phaseGlitch .7s steps(2) both}.phase-fx:after{background:linear-gradient(90deg,transparent 0 46%,#fff 47% 48%,transparent 49%),linear-gradient(12deg,transparent 0 53%,#dca7ffcc 54% 54.4%,transparent 55%);filter:drop-shadow(0 0 7px #fff)}.phase-fx i{position:absolute;left:50%;top:48%;width:16px;height:90px;background:linear-gradient(#fff,#dfbcff,transparent);clip-path:polygon(42% 0,100% 0,58% 100%,0 100%);transform-origin:50% 100%;animation:phaseShard .88s both}.phase-fx i:nth-child(1){--r:-72deg;--d:210px}.phase-fx i:nth-child(2){--r:-40deg;--d:260px}.phase-fx i:nth-child(3){--r:-13deg;--d:230px}.phase-fx i:nth-child(4){--r:21deg;--d:260px}.phase-fx i:nth-child(5){--r:48deg;--d:220px}.phase-fx i:nth-child(6){--r:78deg;--d:250px}.phase-fx b{position:absolute;inset:0;border:0 solid #ff315f;animation:phaseFrame .78s both}.battle-window.phase-two{animation:phaseTwoHit .72s both}.battle-window.phase-three{animation:phaseThreeCrash .9s both}.battle-window.phase-three .arena:after{content:'';position:absolute;inset:0;z-index:26;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 12px,#e53a5d16 13px 15px);animation:scanCrash .9s both}.boss-meter.critical .meter-track{box-shadow:0 0 0 2px #ff314f4d,0 0 18px #e52c51;animation:hpCritical .8s infinite}.boss-meter.critical #hp-fill{background:linear-gradient(0deg,#ffb0b8,#ec2349)}
@keyframes phaseFlash{0%{opacity:0}8%,28%{opacity:1}31%{opacity:.15}38%{opacity:.9}100%{opacity:0}}@keyframes phaseGlitch{0%{transform:translateX(-6%);opacity:0}18%{opacity:.85}35%{transform:translateX(5%)}55%{transform:translateX(-2%)}100%{opacity:0;transform:none}}@keyframes phaseShard{0%{opacity:0;transform:translate(-50%,-50%) rotate(var(--r)) scaleY(.1)}18%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + cos(var(--r))*var(--d)),calc(-50% + sin(var(--r))*var(--d))) rotate(calc(var(--r) + 130deg)) scaleY(.55)}}@keyframes phaseFrame{0%,30%{border-width:0}42%{border-width:12px;opacity:.75}100%{border-width:0;opacity:0}}@keyframes phaseTwoHit{12%{filter:brightness(1.55);transform:translateX(-7px)}25%{transform:translateX(6px)}42%{filter:brightness(.72);transform:translateX(-3px)}100%{filter:none;transform:none}}@keyframes phaseThreeCrash{0%{filter:none}10%{filter:contrast(1.8) hue-rotate(35deg);transform:translate(-7px,3px)}22%{filter:brightness(.3) saturate(.4);transform:translate(8px,-2px)}38%{filter:invert(.12) contrast(1.7);transform:translate(-4px,1px)}60%{filter:brightness(.55);transform:none}100%{filter:none}}@keyframes scanCrash{0%{opacity:0;transform:translateY(-25%)}20%,65%{opacity:1}100%{opacity:0;transform:translateY(25%)}}@keyframes hpCritical{50%{filter:brightness(1.45);transform:scaleX(1.08)}}
@media(max-width:760px){.system-disclaimer{font-size:10px!important}.phase-fx i{height:65px}.boss-meter.critical .meter-track{box-shadow:0 0 10px #e52c51}}

/* Scrollable rage questionnaire with tactile selection feedback. */
.rage-events{display:flex;flex-direction:column;gap:0;max-height:322px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #ded9df;border-radius:9px;background:#fff;scrollbar-width:thin;scrollbar-color:#b9adb9 transparent;box-shadow:inset 0 -12px 18px -18px #35103c55}.rage-events::-webkit-scrollbar{width:8px}.rage-events::-webkit-scrollbar-thumb{background:#c4b8c5;border:2px solid #fff;border-radius:999px}.rage-event{position:relative;display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;border:0;border-bottom:1px solid #ebe7ec;border-radius:0;padding:10px 13px;background:#fff;transition:background .18s,border-color .18s,transform .18s}.rage-event:last-child{border-bottom:0}.rage-event:hover{background:#faf8fa}.rage-event:has(input:checked){background:linear-gradient(90deg,#fff3f5,#fbf5fc);box-shadow:inset 3px 0 #d93c57;color:#53145e}.rage-event em{font-style:normal;font-weight:900;font-size:13px;color:#a35a67;background:#fff1f3;border:1px solid #f1cdd3;border-radius:999px;padding:3px 7px;min-width:43px;text-align:center;transition:transform .2s,background .2s,color .2s}.rage-event:has(input:checked) em{background:#d93c57;color:#fff;border-color:#d93c57}.rage-event.rage-picked{animation:rageItemLand .48s cubic-bezier(.2,1.45,.35,1)}.rage-event.rage-picked em{animation:rageScorePop .48s cubic-bezier(.2,1.8,.35,1)}.rage-setting.rage-hot input[type=range]{accent-color:#d93c57}.rage-setting.rage-hot output,.rage-setting.rage-hot .rage-status{color:#c72e4b}.setup-panel.rage-bump{animation:ragePanelBump .34s ease-out}
@keyframes rageItemLand{0%{background:#fff;transform:translateX(0)}28%{background:#ffe3e8;transform:translateX(4px)}60%{transform:translateX(-2px)}100%{transform:none}}@keyframes rageScorePop{0%{transform:scale(.75)}45%{transform:scale(1.25) rotate(-4deg)}100%{transform:scale(1)}}@keyframes ragePanelBump{0%,100%{transform:none}22%{transform:translateX(-2px)}48%{transform:translateX(2px)}72%{transform:translateX(-1px)}}
@media(max-width:760px){.rage-events{max-height:300px}.rage-event{min-height:62px;padding:9px 10px}.rage-event em{font-size:12px}}
@media(prefers-reduced-motion:reduce){.rage-event.rage-picked,.rage-event.rage-picked em,.setup-panel.rage-bump{animation:none}}

/* Timed battle and failed-settlement state. */
.combat-clock{position:absolute;z-index:10;left:50%;top:14px;transform:translateX(-50%);display:flex;align-items:center;gap:7px;padding:5px 9px;border:1px solid #ffffff70;border-radius:7px;background:#241029c9;color:#fff;box-shadow:0 4px 14px #22091f30;backdrop-filter:blur(7px);font-variant-numeric:tabular-nums}.combat-clock span{font-size:10px;font-weight:800;color:#dac6dd;letter-spacing:.05em}.combat-clock b{font-size:15px;line-height:1}.combat-clock.warning{background:#7c2735dc;border-color:#ffbdc5}.combat-clock.critical{animation:clockCritical .55s infinite;color:#fff4b3;box-shadow:0 0 0 3px #ff334433,0 0 22px #e1243f99}.combat-clock.bonus:after{content:'+2秒';position:absolute;left:50%;top:100%;transform:translateX(-50%);margin-top:5px;color:#246f51;background:#e9fff5;border:1px solid #8bd4b5;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:1000;white-space:nowrap;animation:timeBonus .62s both}.failure-summary{width:min(430px,100%);margin:-12px auto 22px;padding:17px;border:1px solid #dbccd9;border-radius:10px;background:#fff;box-shadow:0 7px 24px #35103c10}.failure-summary>strong{display:inline-block;color:#b52f51;border:3px solid #b52f51;border-radius:6px;padding:5px 12px;transform:rotate(-5deg);font-size:18px;margin-bottom:14px}.failure-summary>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.failure-summary span{display:flex;justify-content:space-between;gap:8px;padding:8px 9px;border-radius:6px;background:#f7f3f7;color:#6a626a;font-size:12px}.failure-summary span b{color:#35103c}.failure-summary p{margin:12px 0 0!important;font-size:13px!important;color:#8a5361!important}.result.failed .result-boss{filter:drop-shadow(0 8px 10px #6a294222)}.result.failed #result-title{color:#7b2639}.result.failed .result-actions .primary{background:#9d2942}.result.failed .result-actions .primary:hover{background:#842036}
@keyframes clockCritical{50%{transform:translateX(-50%) scale(1.06);filter:brightness(1.28)}}@keyframes timeBonus{0%{opacity:0;transform:translate(-50%,7px) scale(.7)}30%,70%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-8px)}}
@media(max-width:760px){.combat-clock{top:8px}.combat-clock span{display:none}.combat-clock b{font-size:13px}.failure-summary>div{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.combat-clock.critical,.combat-clock.bonus:after{animation:none}}

/* Boss counterattacks arrive as Slack-style direct messages. */
.boss-dm{position:absolute;z-index:32;right:14px;top:67px;width:min(370px,70%);display:grid;grid-template-columns:46px minmax(0,1fr);gap:10px;padding:11px 12px;border:1px solid #d8d4d8;border-radius:9px;background:#fffffff7;color:#1d1c1d;box-shadow:0 12px 32px #24112833,0 2px 6px #2411281f;backdrop-filter:blur(9px);animation:dmArrive 2.6s both}.dm-avatar{width:46px;height:46px;overflow:hidden;border-radius:8px;background:#eee8f0;align-self:start}.dm-avatar canvas{width:58px!important;height:58px!important;transform:translate(-6px,-2px)}.dm-content{min-width:0;text-align:left}.dm-meta{height:20px;display:flex;align-items:center;gap:6px;white-space:nowrap}.dm-meta strong{font-size:13px;font-weight:900;overflow:hidden;text-overflow:ellipsis}.dm-meta:before{content:'';width:7px;height:7px;border-radius:50%;background:#2bac76;box-shadow:0 0 0 2px #dff7ec}.dm-meta span{padding:2px 5px;border-radius:4px;background:#efe8f2;color:#6d3972;font-size:9px;font-weight:900;letter-spacing:.05em}.dm-meta em{margin-left:auto;color:#8a878a;font-size:10px;font-style:normal}.dm-content p{margin:3px 0 7px!important;color:#1d1c1d!important;font-size:14px!important;line-height:1.35!important;font-weight:650}.dm-content small{display:inline-block;padding:3px 7px;border-radius:999px;font-size:10px;font-weight:900}.dm-content small.rage{color:#a82445;background:#fff0f3;border:1px solid #f1c5cf}.dm-content small.heal{color:#167654;background:#eaf9f2;border:1px solid #bce6d3}
@keyframes dmArrive{0%{opacity:0;transform:translateX(45px) scale(.96)}8%,78%{opacity:1;transform:none}88%{opacity:1;transform:translateY(-3px)}100%{opacity:0;transform:translateX(28px) scale(.97)}}
@media(max-width:760px){.boss-dm{right:7px;top:62px;width:min(330px,88%);grid-template-columns:38px minmax(0,1fr);padding:9px}.dm-avatar{width:38px;height:38px}.dm-avatar canvas{width:48px!important;height:48px!important;transform:translate(-5px,-1px)}.dm-content p{font-size:12px!important}.dm-meta strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){.boss-dm{animation:dmFade 2.6s both}@keyframes dmFade{0%,100%{opacity:0}8%,88%{opacity:1}}}

/* Guided mixed-combat loop: Slack thread, discoverable counters and a soft shield. */
.slack-thread{display:grid;grid-template-columns:40px minmax(0,1fr);gap:9px;width:min(420px,43%);max-width:none;padding:10px 11px;top:13px;left:12px;border-color:#d8d5d8;border-left:4px solid #611f69;background:#fffffff7;box-shadow:0 5px 18px #2311251c;text-align:left}.speech-avatar{width:40px;height:40px;overflow:hidden;border-radius:7px;background:#eee8f0}.speech-avatar canvas{width:50px!important;height:50px!important;transform:translate(-5px,-1px)}.speech-body{min-width:0}.slack-thread .speech-person{margin-bottom:3px}.slack-thread .speech-person:before{content:'';width:7px;height:7px;border-radius:50%;background:#2bac76;box-shadow:0 0 0 2px #dff7ec}.slack-thread #speech-text{font-weight:650}.slack-thread small{display:inline-block;margin-top:6px;padding:2px 6px;border-radius:4px;background:#efe8f2;color:#682c70;font-size:9px;font-weight:900;letter-spacing:.03em}.magic-panel{position:relative}.magic-panel.coach-active{box-shadow:inset 0 0 0 2px #8b4bb455;animation:magicCoachPulse 1.25s infinite}.magic-coach{position:absolute;z-index:25;right:7px;top:-43px;width:max-content;max-width:95%;padding:7px 10px;border:1px solid #c697db;border-radius:7px;background:#4f1b59ed;color:#fff;font-size:12px;font-weight:850;box-shadow:0 7px 22px #32103942;animation:coachLand .42s cubic-bezier(.2,1.35,.3,1) both}.magic-coach:after{content:'';position:absolute;right:27px;bottom:-7px;width:12px;height:12px;background:#4f1b59;transform:rotate(45deg);border-right:1px solid #c697db;border-bottom:1px solid #c697db}.weapon{position:relative}.weapon.discovered-weak{border-color:#d7a824!important;background:#fff9e8!important;box-shadow:0 0 0 2px #f4cf5866,0 0 14px #f1c63f55}.weapon.discovered-weak:after{content:'克制';position:absolute;right:2px;top:2px;padding:2px 4px;border-radius:4px;background:#c89612;color:#fff;font-size:8px;font-weight:1000;letter-spacing:.04em}.weak-number{color:#f3b91f!important;font-size:34px!important;text-shadow:2px 2px #532f00,-2px -2px #fff!important}.magic-number.missed{color:#7e657f;font-size:18px;text-shadow:1px 1px #fff}.thick-shield{position:absolute;z-index:4;inset:19% 13% 7%;display:grid;place-items:end center;border:4px double #ffffffbf;border-radius:48% 48% 38% 38%;background:radial-gradient(circle at 50% 38%,#ffffff1a,#6a497038 55%,#34103b70);box-shadow:inset 0 0 28px #fff8,0 0 19px #4a255c99;animation:shieldForm .42s both}.thick-shield span{margin-bottom:9%;padding:4px 8px;border-radius:999px;background:#2c1232d9;color:#f6e9f8;border:1px solid #ffffff70;font-size:9px;font-weight:900;white-space:nowrap}.thick-shield.shattering{display:grid!important;animation:shieldBreak .52s both}.boss-wrap.shielded .boss-canvas{filter:drop-shadow(0 12px 6px #13101f35) saturate(.8)}.combat-clock.bonus:after,.combat-clock.penalty:after{content:attr(data-delta)}.combat-clock.penalty:after{position:absolute;left:50%;top:100%;transform:translateX(-50%);margin-top:5px;color:#a82445;background:#fff0f3;border:1px solid #f1c5cf;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:1000;white-space:nowrap;animation:timeBonus .62s both}.boss-dm.rage{border-left:4px solid #d83b58}.boss-dm.heal{border-left:4px solid #1d9a6c}.boss-dm.rage .dm-meta span{background:#fff0f3;color:#a82445}.boss-dm.heal .dm-meta span{background:#eaf9f2;color:#167654}
@keyframes magicCoachPulse{50%{box-shadow:inset 0 0 0 3px #a45bc477,0 0 16px #8b4bb43b}}@keyframes coachLand{from{opacity:0;transform:translateY(8px) scale(.92)}to{opacity:1;transform:none}}@keyframes shieldForm{from{opacity:0;transform:scale(.72)}to{opacity:1;transform:scale(1)}}@keyframes shieldBreak{0%{opacity:1;transform:scale(1)}45%{filter:brightness(2.5);transform:scale(1.12)}100%{opacity:0;transform:scale(1.35) rotate(5deg)}}
@media(max-width:760px){.slack-thread{top:38px;left:6px;width:min(360px,94%);grid-template-columns:32px minmax(0,1fr);padding:7px 8px}.speech-avatar{width:32px;height:32px}.speech-avatar canvas{width:40px!important;height:40px!important;transform:translate(-4px,-1px)}.slack-thread #speech-text{font-size:12px}.slack-thread small{margin-top:3px}.magic-coach{top:-37px;font-size:10px;padding:6px 8px}.weapon.discovered-weak:after{font-size:7px}.thick-shield span{font-size:8px}}
@media(prefers-reduced-motion:reduce){.magic-panel.coach-active,.magic-coach,.thick-shield,.thick-shield.shattering{animation:none}}

/* High-energy comeback guidance: loud enough to pull players toward the real damage. */
.magic-panel.coach-active{z-index:3;border-radius:9px;animation:magicCoachSuperPulse 1.05s ease-in-out infinite;box-shadow:inset 0 0 0 3px #bd62ff,0 0 18px #a939ffcc,0 0 42px #8a21e899,0 0 72px #bd5cff55}
.magic-coach{top:-55px;right:8px;display:flex;align-items:center;gap:9px;padding:8px 13px;border:2px solid #e1adff;background:linear-gradient(115deg,#45105cf5,#8124bff5 55%,#4e0a72f5);box-shadow:0 0 8px #fff,0 0 22px #d86dff,0 0 52px #9d22ed,0 9px 28px #35104888;animation:magicCoachBlast .48s cubic-bezier(.15,1.45,.25,1) both,magicCoachBadgePulse .88s .48s ease-in-out infinite;color:#fff}
.magic-coach b{font-size:15px;font-weight:1000;letter-spacing:.08em;white-space:nowrap;text-shadow:0 0 5px #fff,0 0 15px #eea8ff,0 0 28px #d04cff}
.magic-coach span{font-size:11px;font-weight:800;color:#f5ddff;white-space:nowrap}
.magic-coach:before{content:'';position:absolute;inset:-7px;border:2px solid #c55cffaa;border-radius:11px;animation:magicCoachRipple 1.05s ease-out infinite;pointer-events:none}
@keyframes magicCoachSuperPulse{0%,100%{filter:brightness(1);box-shadow:inset 0 0 0 3px #bd62ff,0 0 18px #a939ffbb,0 0 42px #8a21e877,0 0 72px #bd5cff44}50%{filter:brightness(1.16);box-shadow:inset 0 0 0 4px #e7b2ff,0 0 28px #d66aff,0 0 62px #a62cffcc,0 0 96px #7c18dc88}}
@keyframes magicCoachBlast{0%{opacity:0;transform:translateY(13px) scale(.7) rotate(-3deg)}70%{opacity:1;transform:translateY(-2px) scale(1.08) rotate(1deg)}100%{opacity:1;transform:none}}
@keyframes magicCoachBadgePulse{0%,100%{transform:scale(1)}50%{transform:scale(1.045)}}
@keyframes magicCoachRipple{0%{opacity:.95;transform:scale(.94)}100%{opacity:0;transform:scale(1.14)}}
@media(max-width:760px){.magic-coach{top:-49px;right:3px;gap:6px;padding:7px 9px;max-width:calc(100% - 6px)}.magic-coach b{font-size:12px}.magic-coach span{font-size:9px;white-space:normal;line-height:1.2}}
@media(prefers-reduced-motion:reduce){.magic-panel.coach-active,.magic-coach,.magic-coach:before{animation:none}}

/* Compact mode selector and five-item rage registration. */
.mode-select{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:20px 0 0}
.mode-select button{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:7px;min-height:50px;padding:8px 12px;border:1px solid #ddd5df;border-radius:9px;background:#fff;color:#514a53;text-align:left;cursor:pointer;transition:border-color .18s,box-shadow .18s,background .18s}
.mode-select button>span{font-size:20px;color:#85678e}.mode-select button>b{font-size:14px}.mode-select button>small{font-size:12px;color:#817783;font-weight:800}
.mode-select button.active{border-color:#742b7f;background:linear-gradient(110deg,#fbf4ff,#fff);box-shadow:0 0 0 2px #8d4c9b25,0 5px 15px #5a1e6614;color:#5b1c68}
.mode-select button.active>span{filter:drop-shadow(0 0 5px #bb67d9)}
.rage-registration{margin-top:17px!important;padding-top:16px!important}.rage-registration .rage-instruction{margin:0 0 9px;font-size:13px;color:#645b66}.rage-registration .rage-instruction strong{color:#9c2947}
.rage-free-label{display:block;margin:12px 0 5px;font-size:12px;font-weight:800;color:#69616a}
#rage-free-text{display:block;width:100%;min-height:56px;resize:vertical;border:1px solid #ddd5df;border-radius:8px;padding:9px 11px;background:#fff;color:#342b36;font:inherit;font-size:13px;line-height:1.4;outline:none}
#rage-free-text:focus{border-color:#8a4898;box-shadow:0 0 0 3px #8a489822}#rage-free-text::placeholder{color:#aaa1ab}
.custom-rage-option{margin-top:5px!important;background:#fbf5fc!important}
.system-disclaimer{margin-top:12px!important}

/* Zen guidance lives above the controls and never covers a weapon or reply. */
.attack-composer{grid-template-rows:auto 1fr}
.tutorial-hint{grid-column:1/-1;grid-row:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:34px;padding:4px 10px;border-bottom:1px solid #eadbed;background:linear-gradient(90deg,#fff,#fbf4ff,#fff);color:#5b1c68}
.tutorial-hint>span{font-size:18px;filter:drop-shadow(0 0 5px #bd62ff)}.tutorial-hint>b{font-size:12px;font-weight:950;letter-spacing:.04em}
.physical-panel,.magic-panel{grid-row:2}
.combat-clock.zen-mode{background:#2d1235cc;border-color:#dcb7e8a8;box-shadow:0 0 0 2px #ffffff26,0 0 16px #b363d477}
.combat-clock.zen-mode span{display:none}.combat-clock.zen-mode b{font-size:16px;color:#f6d8ff}
.reason-transition{gap:5px}.reason-transition>span{display:block!important;margin:0!important;padding:0!important;border:0!important;background:none!important;color:#ffe8ff!important;font-size:clamp(40px,9vw,78px)!important;line-height:1;filter:drop-shadow(0 0 18px #e88cff);animation:phaseGlitch .72s both}.reason-transition>b{margin:0;font-size:clamp(30px,6vw,56px);letter-spacing:.06em}
@media(max-width:760px){.mode-select{margin-top:14px;gap:7px}.mode-select button{min-height:45px;padding:6px 9px;grid-template-columns:24px 1fr auto}.mode-select button>span{font-size:17px}.mode-select button>b{font-size:13px}.mode-select button>small{font-size:11px}.rage-registration{margin-top:13px!important;padding-top:13px!important}.rage-events{max-height:270px}.rage-event{min-height:52px}.rage-free-label{margin-top:9px}#rage-free-text{min-height:48px}.attack-composer{grid-template-rows:auto auto auto}.tutorial-hint{grid-row:1;min-height:29px}.physical-panel{grid-row:2}.magic-panel{grid-row:3}.tutorial-hint>span{font-size:16px}.tutorial-hint>b{font-size:11px}.reason-transition>b{font-size:32px}}
@media(max-height:720px) and (max-width:760px){.rage-events{max-height:200px}.rage-event{min-height:45px;padding:6px 9px}.rage-registration .system-disclaimer{font-size:9px!important}.tutorial-hint{min-height:25px;padding:2px 8px}.attack-composer .physical-panel,.attack-composer .magic-panel{padding-top:5px;padding-bottom:5px}}
@media(prefers-reduced-motion:reduce){.mode-select button,.tutorial-hint>span{transition:none;animation:none}}

/* Balanced combat guidance: visible, never covering the prop row. */
.magic-coach{position:relative;inset:auto;width:100%;max-width:none;margin:0 0 8px;justify-content:center;min-height:36px;flex:none}
.magic-coach:after{display:none}
.magic-coach.compact{width:max-content;max-width:100%;min-height:27px;margin:0 0 6px auto;padding:4px 9px;animation:none;box-shadow:0 0 10px #b64cff77,0 0 23px #7d24bc44}
.magic-coach.compact span{display:none}
.magic-coach.compact b{font-size:11px}
.tactic-hint{grid-column:1/-1;display:flex;align-items:center;gap:7px;margin-top:7px;padding:6px 8px;border-radius:6px;background:#fff4fd;border:1px solid #d9a7e7;color:#4d2057;font-size:11px;line-height:1.3;animation:tacticHintIn .25s both}
.tactic-hint b{flex:none;padding:2px 5px;border-radius:4px;background:#6c2877;color:#fff;font-size:9px;letter-spacing:.04em}
.comeback-card.hinted-answer{border-color:#c463e2;background:#fbf1ff;box-shadow:0 0 0 2px #ce72e644,0 0 18px #b347d277;animation:hintedReply 1.05s ease-in-out infinite}
.tool-miss-pop{position:absolute;z-index:13;left:50%;top:68%;transform:translate(-50%,-50%);padding:5px 9px;border-radius:999px;background:#27202ad9;border:1px solid #ffffff55;color:#eee6ef;font-size:11px;font-weight:900;animation:toolMissFade .65s both;white-space:nowrap}
.reason-phase .physical-panel{background:#f3f2f3}
.reason-phase .weapon{filter:grayscale(1);opacity:.5}
.reason-phase .weapon:hover{filter:grayscale(1);opacity:.72;border-color:#aaa;background:#eceaec}
.reason-transition{position:absolute;z-index:45;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;background:radial-gradient(circle at 50% 45%,#f7f4f8f2,#302134f4 72%);color:#fff;animation:reasonShift 2.35s both;pointer-events:none}
.reason-transition small{font-size:12px;font-weight:900;letter-spacing:.25em;color:#ddb7e2}
.reason-transition b{margin:7px 0 5px;font-size:clamp(34px,7vw,68px);font-weight:1000;text-shadow:0 3px 0 #522158,0 0 28px #c36dce}
.reason-transition span{font-size:13px;font-weight:850;color:#f5eaf7;background:#35103cc9;border:1px solid #ffffff55;border-radius:999px;padding:6px 11px}
.dead-prop-pop{position:absolute;z-index:16;left:50%;top:69%;transform:translate(-50%,-50%);max-width:90%;padding:8px 12px;border-radius:7px;background:#302a31ec;border:1px solid #8c858e;color:#f4eef5;font-size:13px;font-weight:900;text-align:center;white-space:nowrap;animation:deadPropFade .9s both}
.first-ult-intro{position:absolute;z-index:35;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle,#6e2b85bb,#1a071dd9 65%);color:#fff;animation:firstUltIntro 1.22s both;pointer-events:none}
.first-ult-intro small{font-size:12px;font-weight:900;letter-spacing:.28em;color:#f4c5ff;text-shadow:0 0 12px #e68cff}
.first-ult-intro b{margin-top:6px;font-size:clamp(36px,7vw,72px);font-weight:1000;letter-spacing:.05em;text-shadow:0 0 8px #fff,0 0 28px #ee9cff,0 0 65px #b92cff}
.first-ultimate{filter:brightness(1.2) saturate(1.2);animation-duration:1.95s!important}
@keyframes tacticHintIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@keyframes toolMissFade{0%{opacity:0;transform:translate(-50%,-35%) scale(.85)}25%,65%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-75%) scale(.92)}}
@keyframes reasonShift{0%{opacity:0;filter:grayscale(0);transform:scale(1.12)}12%,78%{opacity:1;filter:grayscale(.15);transform:scale(1)}100%{opacity:0;filter:grayscale(.8);transform:scale(.96)}}
@keyframes deadPropFade{0%{opacity:0;transform:translate(-50%,-35%) scale(.8)}20%,70%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-70%) scale(.94)}}
@keyframes hintedReply{0%,100%{box-shadow:0 0 0 1px #ce72e633,0 0 8px #b347d244}50%{box-shadow:0 0 0 3px #db8aef66,0 0 24px #b347d2aa}}
@keyframes firstUltIntro{0%{opacity:0;transform:scale(1.25)}15%,62%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.82)}}
@media(max-width:760px){.magic-coach{top:auto;right:auto;margin-bottom:5px;padding:6px 8px}.magic-coach span{font-size:9px}.tactic-hint{font-size:10px;align-items:flex-start}.first-ult-intro b{font-size:34px}}
.boss-rebuttal-wait{grid-column:1/-1;min-height:91px;display:flex;align-items:center;gap:11px;padding:8px 13px;border:1px solid #ead9e8;border-radius:7px;background:linear-gradient(110deg,#fff9fc,#f7eff7);color:#473945;animation:tacticHintIn .18s both}.rebuttal-avatar{width:48px;height:48px;flex:0 0 48px;border-radius:9px;overflow:hidden;background:#eadfeb;position:relative}.rebuttal-avatar canvas{position:absolute;width:62px;height:62px;left:50%;top:50%;transform:translate(-50%,-42%)}.boss-rebuttal-wait b{display:block;font-size:12px;color:#6b5069;margin-bottom:4px}.boss-rebuttal-wait p{margin:0;font-size:14px;font-weight:750;line-height:1.4}.award-actions button.feedback{background:#4a2455;color:#fff;border-color:#4a2455}
@media(max-width:760px){.boss-dm{top:auto;right:7px;bottom:7px;width:calc(100% - 14px);max-width:none;min-height:58px;grid-template-columns:34px minmax(0,1fr);gap:8px;padding:7px 9px;pointer-events:none}.boss-dm .dm-avatar{width:34px;height:34px}.boss-dm .dm-avatar canvas{width:44px!important;height:44px!important}.boss-dm .dm-meta{height:16px}.boss-dm .dm-content p{margin:1px 0 4px!important;font-size:11px!important;line-height:1.25!important}.boss-dm .dm-content small{padding:2px 6px;font-size:9px}}
.award-preview{display:block;width:100%;height:auto;border-radius:4px;box-shadow:0 2px 12px #24112824;-webkit-touch-callout:default;user-select:auto}.award-preview-hint{margin:8px 4px 2px!important;color:#5b174f!important;font-size:13px!important;font-weight:800;text-align:center}.preview-hidden{display:none!important}
@media(prefers-reduced-motion:reduce){.comeback-card.hinted-answer,.first-ult-intro,.first-ultimate{animation:none}}

/* Keep the phase shift readable with one short line and a strong visual cue. */
.reason-transition{gap:5px}.reason-transition>span{display:block!important;margin:0!important;padding:0!important;border:0!important;background:none!important;color:#ffe8ff!important;font-size:clamp(40px,9vw,78px)!important;line-height:1;filter:drop-shadow(0 0 18px #e88cff);animation:phaseGlitch .72s both}.reason-transition>b{margin:0;font-size:clamp(30px,6vw,56px);letter-spacing:.06em}
@media(max-width:760px){.reason-transition>b{font-size:32px}}

/* Full-width attack lanes keep physical tools and comebacks equally easy to scan. */
.attack-composer{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;align-content:start;min-height:0}
.tutorial-hint{grid-column:1;grid-row:1}
.physical-panel{grid-column:1;grid-row:2;border-bottom:1px solid var(--line)}
.magic-panel{grid-column:1;grid-row:3;border-left:0;border-top:0}
.physical-items{width:100%;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.comeback-cards{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-height:76px}
.comeback-card{width:100%;min-height:76px;display:flex;align-items:center;padding:12px 16px;font-size:clamp(13px,1.25vw,16px);line-height:1.4}
@media(max-width:760px){.physical-items{gap:2px}.comeback-cards{gap:7px;min-height:68px}.comeback-card{min-height:68px;padding:9px 10px;font-size:12px}}

/* Three calm Slack-like setup steps with a clear progress rail. */
.setup{background:radial-gradient(ellipse at 50% 0%,#fff 15%,#f8f5f8 68%,#f4eff5);}
.setup-panel{width:min(760px,100%);padding:clamp(18px,3vw,32px);border:1px solid #e4dfe6;border-radius:13px;background:#fff;box-shadow:0 14px 42px #28112c12;}
.setup-progress{margin:0 0 25px;padding:0 0 14px;border-bottom:1px solid #eee9ef;}
.setup-progress-track{height:5px;border-radius:9px;background:#eee9ef;overflow:hidden;}
.setup-progress-track i{display:block;height:100%;width:33.333%;border-radius:inherit;background:linear-gradient(90deg,#611f69,#a64ab5);transition:width .28s ease;}
.setup-progress-label{display:flex;justify-content:space-between;align-items:center;margin-top:9px;color:#6c626d;}
.setup-progress-label small{font-size:11px;font-weight:850;letter-spacing:.08em;color:#927f94;}
.setup-progress-label b{font-size:12px;color:#611f69;}
.setup-step{animation:setupStepEnter .22s ease both;}
@keyframes setupStepEnter{from{opacity:.35;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.setup-step h2{margin:0 0 17px;font-size:clamp(21px,3vw,27px);}
.setup-step .setup-next{width:100%;margin-top:17px;}
.setup-actions{display:flex;gap:10px;margin-top:15px;}
.setup-actions button{flex:1;}
.rage-instruction{margin:-6px 0 11px;color:#6d646f;font-size:13px;}
.rage-instruction strong{color:#611f69;}
.setup .system-disclaimer{font-size:11px;color:#817781;margin:12px 0;}
.mode-select button{min-height:86px;border-radius:9px;}
.mode-select button.active{box-shadow:0 0 0 3px #611f6914;}

/* The battle returns to two balanced lanes; each lane uses all of its width. */
.attack-composer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);align-content:stretch;min-height:174px;}
.tutorial-hint{grid-column:1/-1;grid-row:1;}
.physical-panel{grid-column:1;grid-row:2;border-bottom:0;}
.magic-panel{grid-column:2;grid-row:2;border-left:1px solid var(--line);border-top:0;}
.physical-items{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;}
.comeback-cards{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-height:76px;}
.comeback-card{width:100%;min-height:76px;display:flex;align-items:center;padding:11px 13px;font-size:clamp(12px,1vw,15px);line-height:1.35;}
.magic-coach{position:relative;inset:auto;width:100%;max-width:none;min-height:44px;margin:0 0 8px;padding:8px 10px;justify-content:center;gap:5px;text-align:center;border:2px solid #e6aaff;background:linear-gradient(110deg,#471052,#8125b8 55%,#4a0c68);box-shadow:0 0 9px #fff,0 0 22px #dc70ff,0 0 45px #8c26c9,0 5px 16px #35104866;}
.magic-coach b{font-size:clamp(12px,1.2vw,16px);}
.magic-coach span{font-size:clamp(10px,.9vw,12px);white-space:normal;}
.magic-coach.compact{width:100%;min-height:31px;margin-bottom:6px;padding:5px 8px;justify-content:center;animation:none;box-shadow:0 0 12px #bb4cff99,0 0 28px #7d24bc66;}
.magic-coach.compact b{font-size:12px;}
.magic-coach.compact span{display:inline;font-size:10px;}
.magic-panel.coach-active{box-shadow:inset 0 0 0 3px #aa4ee0;animation:magicCoachPulse .65s infinite;}
.weapon{overflow:visible;}
.weapon.discovered-weak{z-index:2;border:2px solid #d29400!important;background:#fff4c6!important;box-shadow:0 0 0 3px #ffd44799,0 0 19px #ffc31fbb;animation:weaponWeakPulse .9s ease-in-out infinite alternate;}
.weapon-damage-bubble{position:absolute;z-index:4;left:50%;top:-11px;transform:translateX(-50%);width:max-content;max-width:calc(100% + 18px);padding:3px 6px;border:1px solid #ffe47b;border-radius:999px;background:#ffcf3f;color:#432300;font-size:9px;line-height:1;font-weight:1000;white-space:nowrap;box-shadow:0 2px 9px #4f330055;pointer-events:none;}
.weapon-damage-bubble:after{content:'';position:absolute;left:50%;bottom:-4px;width:6px;height:6px;background:#ffcf3f;border-right:1px solid #ffe47b;border-bottom:1px solid #ffe47b;transform:translateX(-50%) rotate(45deg);}
@keyframes weaponWeakPulse{from{filter:brightness(1);transform:translateY(0)}to{filter:brightness(1.12);transform:translateY(-2px)}}
.comeback-card.hinted-answer{position:relative;z-index:2;border:2px solid #a334cf!important;background:linear-gradient(120deg,#fbf3ff,#efe0ff)!important;box-shadow:0 0 0 3px #d785ff77,0 0 20px #bd4becaa!important;animation:hintedReply 1s ease-in-out infinite!important;}
@media(max-width:760px){
 .setup{padding:14px;}
 .setup-panel{padding:17px 14px;border-radius:10px;}
 .setup-progress{margin-bottom:17px;}
 .boss-options{gap:7px;}
 .boss-face{height:130px;}
 .boss-face .portrait{width:150px;height:150px;}
 .boss-card strong{padding:10px 7px;font-size:12px;}
 .setup-step h2{font-size:20px;margin-bottom:13px;}
 .setup-actions{gap:7px;}
 .setup-actions button{padding:9px 12px;font-size:13px;}
 .attack-composer{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;min-height:0;align-content:start;}
 .tutorial-hint{grid-column:1;grid-row:1;}
 .physical-panel{grid-column:1;grid-row:2;border-bottom:1px solid var(--line);}
 .magic-panel{grid-column:1;grid-row:3;border-left:0;border-top:0;}
 .physical-items{gap:2px;}
 .comeback-cards{gap:7px;min-height:65px;}
 .comeback-card{min-height:65px;padding:8px 9px;font-size:12px;}
 .magic-coach{min-height:36px;margin-bottom:5px;padding:6px 7px;}
 .magic-coach b{font-size:12px;}
 .magic-coach span{font-size:10px;}
 .magic-coach.compact{min-height:29px;padding:4px 6px;}
 .magic-coach.compact b{font-size:10px;}
 .magic-coach.compact span{font-size:9px;}
 .weapon-damage-bubble{top:-9px;padding:2px 4px;font-size:7px;}
}
@media(prefers-reduced-motion:reduce){.setup-step,.setup-progress-track i,.weapon.discovered-weak,.comeback-card.hinted-answer{animation:none!important;transition:none!important}}
.weapon.discovered-weak:after{display:none!important;content:none!important}

/* Keep the boss's line beside the reply choices so the target is unmistakable. */
.attack-composer{min-height:250px;}
.magic-panel{display:flex;flex-direction:column;}
.magic-panel>.slack-thread{position:relative;inset:auto;width:100%;max-width:none;margin:0 0 7px;padding:8px 10px;grid-template-columns:34px minmax(0,1fr);gap:8px;flex:none;}
.magic-panel>.slack-thread .speech-avatar{width:34px;height:34px;}
.magic-panel>.slack-thread .speech-avatar canvas{width:44px!important;height:44px!important;transform:translate(-5px,-2px);}
.magic-panel>.slack-thread #speech-text{font-size:clamp(12px,1vw,15px);line-height:1.35;}
.magic-panel>.slack-thread small{margin-top:3px;}
.magic-panel>.magic-coach{position:relative;z-index:3;inset:auto;width:100%;max-width:none;min-height:38px;margin:0 0 19px;padding:6px 9px;display:flex;justify-content:center;align-items:center;gap:7px;}
.magic-panel>.magic-coach:after{content:'⬇';display:block;position:absolute;z-index:5;left:50%;bottom:-22px;transform:translateX(-50%);color:#a52bd1;font-size:23px;line-height:1;text-shadow:0 0 5px #fff,0 0 12px #d86dff;animation:replyArrowBounce .55s ease-in-out infinite alternate;}
@keyframes replyArrowBounce{to{transform:translate(-50%,4px);filter:brightness(1.35);}}
.comeback-cards{flex:1;min-height:72px;}
.magic-coach.compact{margin-bottom:19px;}
.magic-coach.compact:after{display:none;}
.boss-dm.heal{left:12px;right:auto;top:13px;bottom:auto;width:min(420px,43%);}
@media(max-width:760px){
 .attack-composer{min-height:0;}
 .magic-panel>.slack-thread{margin-bottom:5px;padding:6px 7px;grid-template-columns:30px minmax(0,1fr);}
 .magic-panel>.slack-thread .speech-avatar{width:30px;height:30px;}
 .magic-panel>.slack-thread .speech-avatar canvas{width:39px!important;height:39px!important;}
 .magic-panel>.magic-coach{min-height:34px;margin-bottom:16px;padding:5px 6px;}
 .magic-panel>.magic-coach:after{bottom:-19px;font-size:20px;}
 .magic-coach.compact{margin-bottom:5px;}
 .boss-dm.heal{left:6px;right:auto;top:38px;bottom:auto;width:min(360px,94%);}
}
.comeback-cards{overflow:visible;}
.comeback-card.hinted-answer:before{content:'↓ 回这句';position:absolute;z-index:6;top:-21px;left:50%;transform:translateX(-50%);padding:3px 9px;border:1px solid #dda2f0;border-radius:999px;background:#5f1f76;color:#fff;font-size:10px;line-height:1.1;font-weight:1000;white-space:nowrap;box-shadow:0 0 10px #b64cff88;}
@media(max-width:760px){.comeback-card.hinted-answer:before{top:-18px;padding:2px 7px;font-size:9px;}}

/* Boss dialogue stays on the boss's canvas; keep the large game layout. */
.attack-composer{min-height:174px;}
.magic-panel{display:block;}
.magic-panel>.slack-thread{display:none;}
.speech.slack-thread{position:absolute;z-index:12;left:auto;right:14px;top:auto;bottom:14px;width:min(410px,43%);max-width:43%;padding:10px 12px;grid-template-columns:38px minmax(0,1fr);gap:8px;border-left:4px solid #611f69;background:#fffffff5;box-shadow:0 8px 24px #2411283c;}
.speech.slack-thread .speech-avatar{width:38px;height:38px;}
.speech.slack-thread .speech-avatar canvas{width:48px!important;height:48px!important;transform:translate(-5px,-1px);}
.speech.slack-thread #speech-text{font-size:clamp(12px,1.05vw,15px);line-height:1.35;font-weight:700;}
.speech.slack-thread small{margin-top:4px;}
.boss-dm.heal{right:14px;left:auto;top:62px;bottom:auto;width:min(370px,43%);}
.magic-coach{position:relative;inset:auto;width:100%;max-width:none;min-height:44px;margin:0 0 22px;padding:8px 10px;display:flex;justify-content:center;align-items:center;gap:6px;overflow:visible;}
.magic-coach:after{content:'⬇';position:absolute;display:grid;place-items:center;z-index:28;left:50%;bottom:-52px;width:58px;height:58px;transform:translateX(-50%);border:3px solid #fff;background:radial-gradient(circle at 50% 38%,#fff76a 0 8%,#ffb400 32%,#ec3fff 70%,#7422ff);border-radius:50%;color:#fff;font-size:48px;font-weight:1000;line-height:1;text-shadow:0 0 5px #fff,0 0 13px #ff35ee,0 0 23px #6d00ff;filter:drop-shadow(0 0 8px #f5caff) drop-shadow(0 0 16px #ac32ff);animation:workbenchArrowBlast .42s ease-in-out infinite alternate;}
.magic-coach:before{content:'✦';position:absolute;z-index:29;left:calc(50% - 39px);bottom:-37px;color:#fff64a;font-size:22px;text-shadow:0 0 7px #fff,0 0 17px #ff4ce1;animation:arrowSparkLeft .65s ease-in-out infinite alternate;}
.magic-coach .arrow-spark{display:none;}
@keyframes workbenchArrowBlast{from{transform:translate(-50%,0) scale(.94) rotate(-3deg);filter:drop-shadow(0 0 8px #fff) drop-shadow(0 0 14px #b32dff)}to{transform:translate(-50%,6px) scale(1.1) rotate(3deg);filter:drop-shadow(0 0 14px #fff) drop-shadow(0 0 27px #f22bff)}}
@keyframes arrowSparkLeft{to{transform:translate(-9px,-8px) rotate(45deg);opacity:.55}}
.magic-coach.compact{min-height:30px;margin-bottom:6px;padding:5px 8px;}
.magic-coach.compact:after,.magic-coach.compact:before{display:none;}
.comeback-cards{overflow:visible;}
.comeback-card.hinted-answer:before{content:'↓ 回这句';top:-22px;padding:4px 10px;font-size:11px;box-shadow:0 0 10px #b64cff,0 0 22px #e97aff;animation:hintBadgeFlash .6s ease-in-out infinite alternate;}
@keyframes hintBadgeFlash{to{filter:brightness(1.5);transform:translateX(-50%) scale(1.1)}}
@media(max-width:760px){
 .attack-composer{min-height:174px;}
 .speech.slack-thread{right:7px;bottom:7px;width:min(360px,72%);max-width:72%;grid-template-columns:30px minmax(0,1fr);padding:7px 8px;gap:6px;}
 .speech.slack-thread .speech-avatar{width:30px;height:30px;}
 .speech.slack-thread .speech-avatar canvas{width:39px!important;height:39px!important;}
 .speech.slack-thread #speech-text{font-size:11px;line-height:1.28;}
 .speech.slack-thread small{font-size:8px;margin-top:2px;}
 .boss-dm.heal{left:auto;right:7px;top:38px;bottom:auto;width:min(340px,82%);}
 .magic-coach{min-height:36px;margin-bottom:20px;padding:6px 7px;}
 .magic-coach:after{bottom:-44px;width:48px;height:48px;font-size:39px;}
 .magic-coach:before{bottom:-32px;}
 .magic-coach b{font-size:12px;}
 .magic-coach span{font-size:10px;}
 .magic-coach.compact{margin-bottom:5px;}
 .comeback-card.hinted-answer:before{top:-18px;padding:2px 7px;font-size:9px;}
}
@media(prefers-reduced-motion:reduce){.magic-coach:after,.magic-coach:before,.comeback-card.hinted-answer:before{animation:none!important;}}
/* Win the cascade over the earlier coach-arrow rule. */
.magic-panel>.magic-coach:after{content:'⬇';display:grid;place-items:center;position:absolute;z-index:28;left:50%;bottom:-52px;width:58px;height:58px;transform:translateX(-50%);border:3px solid #fff;background:radial-gradient(circle at 50% 38%,#fff76a 0 8%,#ffb400 32%,#ec3fff 70%,#7422ff);border-radius:50%;color:#fff;font-size:48px;font-weight:1000;line-height:1;text-shadow:0 0 5px #fff,0 0 13px #ff35ee,0 0 23px #6d00ff;filter:drop-shadow(0 0 8px #f5caff) drop-shadow(0 0 16px #ac32ff);animation:workbenchArrowBlast .42s ease-in-out infinite alternate;}
.magic-panel>.magic-coach:before{content:'✦';position:absolute;z-index:29;left:calc(50% - 39px);bottom:-37px;color:#fff64a;font-size:22px;text-shadow:0 0 7px #fff,0 0 17px #ff4ce1;animation:arrowSparkLeft .65s ease-in-out infinite alternate;pointer-events:none;}
@media(max-width:760px){.magic-panel>.magic-coach:after{bottom:-44px;width:48px;height:48px;font-size:39px;}.magic-panel>.magic-coach:before{bottom:-32px;}}
@media(prefers-reduced-motion:reduce){.magic-panel>.magic-coach:after,.magic-panel>.magic-coach:before{animation:none!important;}}

/* Zen mode draws an actual connection from the boss's line to its reply. */
.game{position:relative;}
.reply-connector{position:absolute;inset:0;width:100%;height:100%;z-index:38;overflow:visible;pointer-events:none;}
.reply-arrow-halo{fill:none;stroke:#f6a5ff;stroke-width:15;stroke-linecap:round;opacity:.85;filter:url(#reply-arrow-glow);}
.reply-arrow-path{fill:none;stroke:url(#reply-arrow-gradient);stroke-width:7;stroke-linecap:round;stroke-dasharray:13 10;marker-end:url(#reply-arrow-head);filter:drop-shadow(0 0 6px #ff57e8);animation:replyConnectorDash .48s linear infinite,replyConnectorPulse .7s ease-in-out infinite alternate;}
#reply-arrow-origin{fill:#fff36a;stroke:#fff;stroke-width:3;filter:drop-shadow(0 0 7px #ff3be1);animation:replyOriginPulse .55s ease-in-out infinite alternate;}
@keyframes replyConnectorDash{to{stroke-dashoffset:-23}}
@keyframes replyConnectorPulse{to{stroke-width:10;filter:drop-shadow(0 0 12px #fff) drop-shadow(0 0 20px #ef37ff)}}
@keyframes replyOriginPulse{to{r:11;opacity:.65}}
.game.zen-arrow-active .magic-panel>.magic-coach:after,.game.zen-arrow-active .magic-panel>.magic-coach:before{display:none!important;}
.physical-sleep-banner{display:flex;align-items:center;justify-content:center;gap:8px;min-height:31px;margin:0 0 5px;padding:5px 8px;border:1px solid #d5c7db;border-radius:7px;background:linear-gradient(90deg,#eee8f1,#faf8fb,#eee8f1);color:#69586e;font-size:12px;font-weight:900;}
.physical-sleep-banner span{min-width:34px;padding:2px 7px;border-radius:999px;background:#4d3e53;color:white;text-align:center;font-variant-numeric:tabular-nums;}
.physical-sleep-banner small{font-size:10px;font-weight:750;color:#796d7e;}
.physical-panel.dead-tools .weapon{filter:grayscale(1);opacity:.38;}
.physical-panel.dead-tools .weapon:hover{opacity:.55;}
.zen-dead-overlay{position:absolute;z-index:10;left:50%;top:48%;transform:translate(-50%,-50%);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;width:min(380px,72%);padding:12px 15px;border:2px solid #fff;border-radius:13px;background:linear-gradient(110deg,#26142cdd,#4a3552e8);color:#fff;box-shadow:0 0 0 3px #d9cce455,0 10px 28px #190d1e88;animation:zenSleepPop .35s cubic-bezier(.18,1.5,.4,1) both;pointer-events:none;}
.zen-dead-overlay>span{font-size:28px;filter:drop-shadow(0 0 8px #ddc8ff);animation:zenSleepBob 1s ease-in-out infinite alternate;}
.zen-dead-overlay strong{font-size:15px;font-weight:1000;}
.zen-dead-overlay small{grid-column:2;font-size:10px;color:#e1d5e5;}
.zen-dead-overlay .zen-dead-count{grid-column:3;grid-row:1/3;display:grid;place-items:center;width:43px;height:43px;border-radius:50%;background:#fff;color:#513d59;font-size:20px;font-variant-numeric:tabular-nums;box-shadow:0 0 16px #e9dfff;}
@keyframes zenSleepPop{from{opacity:0;transform:translate(-50%,-42%) scale(.78)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes zenSleepBob{to{transform:translateY(-4px) rotate(-8deg)}}
@media(max-width:760px){
 .reply-arrow-halo{stroke-width:12;}
 .reply-arrow-path{stroke-width:6;stroke-dasharray:10 8;}
 .physical-sleep-banner{min-height:25px;gap:5px;margin-bottom:3px;padding:3px 5px;font-size:10px;}
 .physical-sleep-banner small{font-size:8px;}
 .zen-dead-overlay{top:46%;width:min(330px,84%);gap:6px;padding:9px 10px;}
 .zen-dead-overlay>span{font-size:24px;}
 .zen-dead-overlay strong{font-size:13px;}
 .zen-dead-overlay small{font-size:9px;}
 .zen-dead-overlay .zen-dead-count{width:36px;height:36px;font-size:17px;}
}
@media(prefers-reduced-motion:reduce){.reply-arrow-path,.reply-arrow-origin,.zen-dead-overlay,.zen-dead-overlay>span{animation:none!important;}}

/* Zen target clarity: replace the connecting arrow with a pinned quote label and a matching answer highlight. */
.game.zen-target-mode .reply-connector{display:none!important;}
.game.zen-target-mode .magic-coach:before,.game.zen-target-mode .magic-coach:after{display:none!important;content:none!important;}
.game.zen-target-mode .magic-coach{margin-bottom:6px;min-height:34px;padding:6px 10px;border:1px solid #c697db;border-radius:8px;background:linear-gradient(100deg,#47164fed,#612578ed);box-shadow:0 0 0 2px #d98aff21,0 4px 16px #37113b30;}
.game.zen-target-mode .comeback-card.hinted-answer:before{content:'✓ 对症回怼';top:-22px;padding:4px 10px;font-size:11px;box-shadow:0 0 10px #b64cff,0 0 22px #e97aff;animation:hintBadgeFlash .6s ease-in-out infinite alternate;}
.speech.slack-thread .reply-target{display:inline-flex;align-items:center;gap:5px;width:max-content;margin:4px 0 2px;padding:3px 8px;border:1px solid #e1c3eb;border-radius:999px;background:#f5e9fa;color:#64256c;font-size:10px;font-weight:950;letter-spacing:.03em;}
.speech.slack-thread .reply-target i{font-style:normal;color:#a728be;}
.speech.slack-thread .reply-waiting{display:block;margin-top:5px;color:#6f6471;font-size:10px;font-weight:700;}
.speech.slack-thread.heal-reminder{animation:targetHealReminder .72s ease-out 1;box-shadow:0 0 0 3px #60dcac99,0 0 24px #47d7a9aa,0 8px 24px #2411283c;border-color:#58cfa2;}
@keyframes targetHealReminder{0%,100%{transform:translateY(0) scale(1)}25%{transform:translateY(-3px) scale(1.025)}55%{transform:translateY(1px) scale(.995)}}
.boss-dm.heal .dm-meta span{font-weight:900;letter-spacing:.02em;}
@media(max-width:760px){.game.zen-target-mode .magic-coach{min-height:30px;margin-bottom:5px;padding:5px 7px}.speech.slack-thread .reply-target{font-size:9px;padding:2px 6px}.speech.slack-thread .reply-waiting{font-size:9px;margin-top:3px}}
@media(prefers-reduced-motion:reduce){.speech.slack-thread.heal-reminder{animation:none!important}}
.game.zen-target-mode .comeback-card.hinted-answer{padding-top:25px;}
.game.zen-target-mode .comeback-card.hinted-answer:before{content:'✓ 对症回怼';top:5px;left:8px;right:auto;transform:none;padding:2px 7px;font-size:9px;box-shadow:0 0 8px #b64cff66,0 0 15px #e97aff66;}
@media(max-width:760px){.game.zen-target-mode .comeback-card.hinted-answer{padding-top:23px}.game.zen-target-mode .comeback-card.hinted-answer:before{top:4px;left:7px;padding:2px 6px;font-size:8px}}

/* Illustrated mode cards: the scene carries the distinction, with only a short label below. */
.mode-select{gap:14px;align-items:stretch}
.mode-select button{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-height:0;padding:9px;border-radius:12px;overflow:hidden;box-shadow:0 3px 12px #2d10300c}
.mode-select button:hover{transform:translateY(-2px);box-shadow:0 8px 18px #2d103018}
.mode-select button.active{background:#fff;border-color:#742b7f;box-shadow:0 0 0 3px #8d4c9b25,0 8px 20px #5a1e6617}
.mode-art{display:block;width:100%;aspect-ratio:1.6;object-fit:cover;border-radius:8px;background:#f2edf3}
.mode-choice-meta{display:grid;grid-template-columns:25px 1fr auto;align-items:center;gap:6px;padding:1px 3px 2px}
.mode-choice-meta i{font-style:normal;font-size:18px;color:#85678e}
.mode-choice-meta b{font-size:14px;white-space:nowrap}
.mode-choice-meta small{font-size:11px;color:#817783;font-weight:800;white-space:nowrap}
.mode-select button.active .mode-choice-meta i{color:#742b7f;filter:drop-shadow(0 0 5px #bb67d9)}
@media(max-width:760px){
 .mode-select{gap:9px}
 .mode-select button{padding:7px;gap:6px}
 .mode-art{aspect-ratio:1.28}
 .mode-choice-meta{grid-template-columns:20px 1fr;gap:4px}
 .mode-choice-meta i{font-size:16px}
 .mode-choice-meta b{font-size:12px}
 .mode-choice-meta small{grid-column:2;font-size:10px;margin-top:-3px}
}
@media(prefers-reduced-motion:reduce){.mode-select button:hover{transform:none}}
.mode-select button>.mode-choice-meta{color:#514a53;font-size:inherit;filter:none}
.mode-select button.active>.mode-choice-meta{color:#5b1c68}

/* Mode selection uses quiet, opaque cards instead of a purple glow. */
.mode-select button.active{background:#fff;border-color:#8d9eaa;box-shadow:0 0 0 2px #8d9eaa28,0 8px 20px #25394714;color:#344a58}
.mode-select button[data-mode="zen"].active{background:#f5faf6;border-color:#83a98e;box-shadow:0 0 0 2px #83a98e30,0 8px 20px #27583914;color:#41684d}
.mode-select button[data-mode="challenge"].active{background:#fff8ef;border-color:#dfa061;box-shadow:0 0 0 2px #dfa06130,0 8px 20px #81501a14;color:#87521f}
.mode-select button.active .mode-choice-meta i{filter:none}
.mode-select button.active>.mode-choice-meta{filter:none;color:inherit}
.mode-select button.active .mode-choice-meta i{color:inherit;filter:none}

/* Three sequential challenge tiers. */
.challenge-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0 4px}
.challenge-level{min-height:68px;padding:9px 10px;display:grid;grid-template-columns:32px 1fr;grid-template-rows:auto auto;align-items:center;gap:1px 7px;border:1px solid #ded9df;border-radius:10px;background:#fff;color:#514a53;text-align:left;cursor:pointer;transition:border-color .16s,background .16s,transform .16s,box-shadow .16s}
.challenge-level:hover:not(:disabled){transform:translateY(-1px);border-color:#d49a61}
.challenge-level.active{border-color:#dfa061;background:#fff8ef;box-shadow:0 0 0 2px #dfa06127;color:#87521f}
.challenge-level:disabled{opacity:.48;cursor:not-allowed;background:#f3f1f3}
.challenge-level-number{grid-row:1/3;display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#f1edf2;color:#756b78;font-size:12px;font-weight:900;font-variant-numeric:tabular-nums}
.challenge-level.active .challenge-level-number{background:#f2d6b7;color:#794719}
.challenge-level strong{font-size:13px;line-height:1.1}
.challenge-level small{font-size:10px;color:#8a818c;line-height:1.1}
.next-level-button{width:100%;min-height:48px;margin:0 0 10px;padding:11px 16px;border:0;border-radius:10px;background:#287d55;color:#fff;font-size:15px;font-weight:900;cursor:pointer;box-shadow:0 4px 12px #287d5533;transition:transform .15s,filter .15s}
.next-level-button:hover{transform:translateY(-1px);filter:brightness(1.06)}
.next-level-button:active{transform:translateY(1px)}
@media(max-width:520px){.challenge-levels{gap:6px;margin-top:11px}.challenge-level{grid-template-columns:26px 1fr;gap:2px 5px;min-height:60px;padding:7px 5px}.challenge-level-number{width:25px;height:25px;font-size:10px}.challenge-level strong{font-size:11px}.challenge-level small{font-size:9px}}

/* Keep challenge answer hints punchy without the leftover directional badge. */
.game:not(.zen-target-mode) .comeback-card.hinted-answer:before{display:none!important;content:none!important}

/* Sustained, readable escalation across the three battle stages. */
.battle-window.stage-one{border-color:#d3ccd7;box-shadow:0 4px 16px #25132912;}
.battle-window.stage-two{border-color:#d58b32;box-shadow:inset 0 0 0 2px #ffba4740,0 0 18px #edaa3850;}
.battle-window.stage-two .office-shade{background:linear-gradient(0deg,#24152338,transparent 62%),radial-gradient(ellipse at 50% 58%,#ffae3138,transparent 68%);animation:stageTwoGlow 2.6s ease-in-out infinite alternate;}
.battle-window.stage-two .boss-canvas{filter:drop-shadow(0 12px 6px #13101f35) drop-shadow(0 0 9px #ffae3655);}
.battle-window.stage-three{border-color:#ef405d;box-shadow:inset 0 0 0 2px #ff315b55,0 0 0 2px #ff315b30,0 0 25px #ff315b77;}
.battle-window.stage-three .office-shade{background:linear-gradient(0deg,#27081355,transparent 62%),radial-gradient(ellipse at 50% 55%,#ff174b55,transparent 70%);animation:stageThreeAlarm 1.05s steps(2,end) infinite;}
.battle-window.stage-three .office-background{filter:saturate(1.22) contrast(1.04) brightness(.92);}
.battle-window.stage-three .boss-canvas{filter:drop-shadow(0 12px 6px #13101f35) drop-shadow(0 0 16px #ff315c88);}
.battle-window.stage-two .speech{border-color:#e7b667;box-shadow:0 3px 15px #a35e1b24;}
.battle-window.stage-three .speech{border-color:#ef8996;box-shadow:0 3px 18px #d9294b2e;}
.boss-meter.critical .meter-track{animation:hpCritical .52s infinite;}
.magic-wait{gap:5px;color:#795d80;font-size:12px;font-weight:750;}
.magic-wait span{margin-right:5px;animation:waitTextIn .18s both;}
.magic-wait i{width:6px;height:6px;animation:typing .55s infinite;}
.magic-wait i:nth-child(2){animation-delay:.1s}.magic-wait i:nth-child(3){animation-delay:.2s}
@keyframes stageTwoGlow{to{filter:brightness(1.08)}}
@keyframes stageThreeAlarm{0%,100%{filter:brightness(.9)}50%{filter:brightness(1.16)}}
@keyframes waitTextIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.battle-window.stage-two .office-shade,.battle-window.stage-three .office-shade,.boss-meter.critical .meter-track,.magic-wait span{animation:none!important}}

/* Final cleanup: no directional effects in the reply workbench. */
.magic-coach::before,.magic-coach::after,.magic-panel>.magic-coach::before,.magic-panel>.magic-coach::after{content:none!important;display:none!important;animation:none!important;}
.reply-connector,.reply-arrow-halo,.reply-arrow-path,#reply-arrow-origin{display:none!important;visibility:hidden!important;animation:none!important;}
.comeback-card.hinted-answer::before{content:none!important;display:none!important;animation:none!important;}
.game.zen-target-mode .comeback-card.hinted-answer{padding-top:10px!important;}

/* Standalone, skippable first-run tutorial. */
.tutorial-screen{display:grid;place-items:center;padding:clamp(12px,3vw,28px);overflow:auto;background:linear-gradient(145deg,#f8f7f8,#f0edf2)}
.tutorial-shell{width:min(680px,100%);padding:clamp(17px,4vw,28px);border:1px solid #ddd8df;border-radius:14px;background:#fff;box-shadow:0 12px 36px #24112812}
.tutorial-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.tutorial-header small{color:#777078;font-size:12px;font-weight:800;letter-spacing:.04em}
.tutorial-header h2{margin:5px 0 0;font-size:clamp(21px,4vw,27px);letter-spacing:-.035em}
.tutorial-skip{flex:none;border:0;border-radius:6px;padding:8px 10px;background:#f3f1f4;color:#625a64;font-size:13px;font-weight:750}
.tutorial-skip:hover{background:#e9e5eb}
.tutorial-progress{display:flex;align-items:center;gap:12px;margin:17px 0 12px;color:#776f79;font-size:12px;font-weight:850;font-variant-numeric:tabular-nums}
.tutorial-progress-track{height:5px;flex:1;overflow:hidden;border-radius:99px;background:#ece9ee}
.tutorial-progress-track i{display:block;height:100%;width:25%;border-radius:inherit;background:#08785a;transition:width .24s ease}
.tutorial-content{min-height:335px;padding:4px 0 10px;animation:tutorialIn .22s ease both}
.tutorial-lede{margin:5px 0 15px;color:#4c454f;text-align:center;font-size:15px;line-height:1.5;font-weight:650}
.tutorial-battle-demo{position:relative;height:180px;overflow:hidden;border:1px solid #ded9df;border-radius:11px;background:#f3eef4}
.tutorial-scene-art{width:100%;height:100%;display:block;object-fit:cover;object-position:center 42%}
.tutorial-hit-mark{position:absolute;left:64%;top:39%;padding:8px 13px;border:2px solid #fff;border-radius:8px;background:#f8c543;color:#4d2810;font-size:20px;font-weight:1000;box-shadow:0 3px 12px #2e182533;opacity:0;transform:scale(.45) rotate(-13deg);pointer-events:none}
.tutorial-hit-mark.hit{animation:tutorialHit .48s cubic-bezier(.2,1.4,.35,1) both}
.tutorial-prop-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px}
.tutorial-prop{min-width:0;display:grid;justify-items:center;gap:5px;padding:7px 5px;border:1px solid #e1dde2;border-radius:9px;background:#fff;color:#403a42;font-size:12px;font-weight:750;transition:transform .15s,border-color .15s,background .15s}
.tutorial-prop img{width:56px;height:56px;object-fit:contain}
.tutorial-prop:hover{transform:translateY(-2px);border-color:#bda8c0}
.tutorial-prop.thrown{border-color:#e8a242;background:#fff8e9;transform:rotate(-5deg) translateY(-4px)}
.tutorial-feedback{min-height:22px;margin:9px 0 0;color:#716a74;text-align:center;font-size:13px;font-weight:750}
.tutorial-reply-demo{max-width:510px;margin:0 auto;display:grid;gap:12px}
.tutorial-boss-quote{display:grid;gap:7px;padding:13px 15px;border:1px solid #ddd9df;border-left:4px solid #611f69;border-radius:8px;background:#faf9fa}
.tutorial-boss-quote small{color:#716a74;font-size:12px;font-weight:750}
.tutorial-boss-quote b{font-size:17px}
.tutorial-reply-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tutorial-reply-options button{min-height:74px;padding:12px;border:1px solid #d8d3da;border-radius:9px;background:#fff;color:#342e36;font-size:14px;line-height:1.4;font-weight:750;text-align:left;transition:background .15s,border .15s,transform .15s}
.tutorial-reply-options button:hover{transform:translateY(-1px);border-color:#99739e}
.tutorial-reply-options button.correct{border-color:#18815f;background:#eff9f4;box-shadow:0 0 0 2px #18815f20}
.tutorial-reply-options button.wrong{border-color:#c67979;background:#fff2f1;color:#795656}
.tutorial-ultimate-demo{max-width:470px;margin:38px auto 0}
.tutorial-rage-meter{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:12px;color:#bd4930;font-size:14px;font-weight:900}
.tutorial-rage-meter b{font-size:20px;font-variant-numeric:tabular-nums}
.tutorial-rage-meter>div{height:13px;overflow:hidden;border-radius:99px;background:#f0e7e7}
.tutorial-rage-meter i{display:block;width:100%;height:100%;background:linear-gradient(90deg,#f4ab36,#e74d51);border-radius:inherit}
.tutorial-ultimate-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}
.tutorial-ultimate-cards>div{display:grid;gap:7px;place-items:center;min-height:105px;padding:12px;border:1px solid #dbcbe0;border-radius:11px;background:linear-gradient(145deg,#fff,#f7f0fa);text-align:center}
.tutorial-ultimate-cards strong{color:#57265f;font-size:16px}
.tutorial-ultimate-cards small{color:#706a73;font-size:13px}
.tutorial-dead-demo{display:grid;grid-template-columns:1fr .8fr 1fr;align-items:center;gap:10px;max-width:520px;margin:38px auto 0}
.tutorial-dead-prop,.tutorial-dead-reply{min-height:122px;display:grid;place-items:center;align-content:center;gap:5px;padding:10px;border-radius:10px;text-align:center;font-weight:850}
.tutorial-dead-prop{border:1px solid #dedade;background:#f3f2f3;color:#7e7880;filter:grayscale(1);opacity:.72}
.tutorial-dead-prop img{width:54px;height:54px;object-fit:contain}
.tutorial-dead-prop b{font-size:18px}
.tutorial-dead-boss{display:grid;place-items:center;gap:6px;color:#746c75;font-size:28px;text-align:center}
.tutorial-dead-boss strong{font-size:13px}
.tutorial-dead-reply{border:1px solid #aa78bb;background:#f7effa;color:#632d70;font-size:15px}
.tutorial-dead-reply b{font-size:13px}
.tutorial-actions{display:flex;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid #eeeaf0}
.tutorial-actions .primary{min-width:145px}
@keyframes tutorialIn{from{opacity:.55;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes tutorialHit{0%{opacity:0;transform:scale(.45) rotate(-13deg)}35%{opacity:1;transform:scale(1.2) rotate(6deg)}65%{opacity:1;transform:scale(.92) rotate(-3deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
@media(max-width:520px){.tutorial-screen{padding:10px}.tutorial-shell{padding:16px 13px}.tutorial-content{min-height:310px}.tutorial-battle-demo{height:150px}.tutorial-prop-row{gap:5px}.tutorial-prop{font-size:11px}.tutorial-prop img{width:47px;height:47px}.tutorial-reply-options{grid-template-columns:1fr}.tutorial-reply-options button{min-height:54px}.tutorial-ultimate-demo,.tutorial-dead-demo{margin-top:26px}.tutorial-dead-demo{gap:5px}.tutorial-dead-prop,.tutorial-dead-reply{min-height:102px;padding:6px;font-size:12px}.tutorial-dead-prop img{width:44px;height:44px}.tutorial-actions .primary{min-width:125px}}
@media(prefers-reduced-motion:reduce){.tutorial-content,.tutorial-hit-mark.hit{animation:none!important}.tutorial-progress-track i,.tutorial-prop,.tutorial-reply-options button{transition:none!important}}

/* Remove all reply coach arrows, coach jiggle/frame, and phase transition square/shards. */
.phase-fx,
.phase-fx::before,
.phase-fx::after,
.phase-fx i,
.phase-fx b{display:none!important;visibility:hidden!important;animation:none!important;content:none!important;}
.magic-coach,
.magic-panel>.magic-coach{animation:none!important;transform:none!important;filter:none!important;}
.magic-coach::before,
.magic-coach::after,
.magic-panel>.magic-coach::before,
.magic-panel>.magic-coach::after{display:none!important;visibility:hidden!important;content:none!important;animation:none!important;}
.magic-panel.coach-active{box-shadow:none!important;animation:none!important;}
.magic-panel.coach-active::before,
.magic-panel.coach-active::after{display:none!important;content:none!important;animation:none!important;}
.reply-connector,
.reply-arrow-halo,
.reply-arrow-path,
#reply-arrow-origin{display:none!important;visibility:hidden!important;animation:none!important;}
.comeback-card.hinted-answer::before{display:none!important;visibility:hidden!important;content:none!important;animation:none!important;}

/* Tutorial hit strengths, working ultimate demos, and an interactive final magic reply. */
.tutorial-prop em{padding:2px 7px;border-radius:999px;background:#eee9ef;color:#6f6872;font-size:10px;font-style:normal;font-weight:900}
.tutorial-prop[data-counter="true"] em{background:#ffe9b9;color:#85470b;box-shadow:0 0 0 1px #e7a83d55}
.tutorial-prop.counter-hit{border-color:#ed7d28;background:#fff1d7;box-shadow:0 0 0 3px #f5ab3f4a,0 6px 20px #e47b3650}
.tutorial-hit-mark.ordinary{background:#f5c454;color:#51320c;font-size:17px}
.tutorial-hit-mark.precision{background:linear-gradient(135deg,#ffdf55,#ff7a28);color:#54200c;font-size:clamp(20px,4vw,30px);text-shadow:0 1px #fff8;box-shadow:0 0 0 4px #fff9,0 0 28px #ff9e20,0 8px 25px #52200c55}
.tutorial-battle-demo.precision-impact{animation:tutorialScenePrecision .55s cubic-bezier(.2,.9,.3,1)}
.tutorial-battle-demo.ordinary-impact{animation:tutorialSceneTap .28s ease-out}
.tutorial-ultimate-cards>button{display:grid;justify-items:center;align-content:center;gap:7px;min-height:115px;padding:12px;border:1px solid #dbcbe0;border-radius:11px;background:linear-gradient(145deg,#fff,#f7f0fa);cursor:pointer;transition:transform .14s,box-shadow .14s,border .14s}
.tutorial-ultimate-cards>button:hover{transform:translateY(-2px);border-color:#ae75bf;box-shadow:0 6px 16px #71377b25}
.tutorial-ultimate-cards>button strong{color:#57265f;font-size:16px}
.tutorial-ultimate-cards>button small{color:#706a73;font-size:12px}
.tutorial-ultimate-cards>button span{padding:4px 10px;border-radius:999px;background:#57265f;color:#fff;font-size:11px;font-weight:900}
.tutorial-ultimate-cards>button.released{animation:tutorialUltimateButton .6s ease-out;border-color:#e59224;box-shadow:0 0 0 4px #ffcf5d88,0 0 28px #ff9e3488}
.tutorial-ultimate-cards>button[data-tutorial-ultimate="magic"].released{border-color:#9d5cc8;box-shadow:0 0 0 4px #c97cff77,0 0 32px #9a43cb99}
.tutorial-screen.tutorial-hit-shake{animation:tutorialFullShake .64s cubic-bezier(.36,.07,.19,.97)}
.tutorial-screen.tutorial-magic-shake{animation:tutorialMagicShake .82s cubic-bezier(.36,.07,.19,.97)}
.tutorial-screen.tutorial-ultimate-shake{animation:tutorialUltimateShake .9s cubic-bezier(.36,.07,.19,.97)}
.tutorial-impact-flash{position:fixed;z-index:50;inset:0;display:grid;align-content:center;justify-items:center;gap:6px;background:radial-gradient(circle at center,#fff8 0,#ffb54345 25%,#ff554422 55%,transparent 80%);pointer-events:none;animation:tutorialFlash .95s ease-out both}
.tutorial-impact-flash small{padding:5px 10px;border:1px solid #ffffffaa;border-radius:999px;background:#2c1722d9;color:#fff;font-size:12px;font-weight:900;letter-spacing:.08em}
.tutorial-impact-flash b{padding:7px 18px;border:2px solid #fff;border-radius:12px;background:linear-gradient(120deg,#ffcf4d,#ff793d);color:#37130b;font-size:clamp(25px,6vw,52px);font-weight:1000;text-align:center;text-shadow:0 2px #fff7;box-shadow:0 0 0 5px #ffb54455,0 0 34px #ff8a24aa,0 12px 32px #31111b66;animation:tutorialFlashText .95s cubic-bezier(.18,1.4,.3,1) both}
.tutorial-impact-flash.magic-hit{background:radial-gradient(circle at center,#fff9 0,#dd8cff66 28%,#832da544 58%,transparent 82%)}
.tutorial-impact-flash.magic-hit b{background:linear-gradient(120deg,#e0a3ff,#9c56e6);color:#261136;box-shadow:0 0 0 5px #d38aff55,0 0 36px #b44cffaa,0 12px 32px #24102e77}
.tutorial-impact-flash.ultimate{background:radial-gradient(circle at center,#fff 0,#ffda5cdd 15%,#fc7538aa 45%,#a8263977 72%,#170b2277 100%)}
.tutorial-impact-flash.ultimate b{font-size:clamp(30px,8vw,68px);background:linear-gradient(120deg,#fff071,#ff8b30);box-shadow:0 0 0 7px #fff6,0 0 55px #ff7a18,0 14px 38px #210b1d88}
.tutorial-dead-demo{grid-template-columns:1fr 1fr;max-width:390px;margin:15px auto}
.tutorial-dead-boss{min-height:122px;padding:10px;border:1px solid #d6ccd9;border-radius:10px;background:linear-gradient(145deg,#f5eff7,#e8e0eb);font-size:25px}
.tutorial-dead-boss span{font-size:34px;filter:drop-shadow(0 2px 3px #51445522)}
.tutorial-dead-boss.hit{animation:tutorialBossHit .65s ease-out;border-color:#bf5ad4;box-shadow:0 0 0 3px #d68bea55,0 0 20px #b34ace66}
.tutorial-dead-hp{width:min(130px,90%);height:10px;overflow:hidden;border-radius:99px;background:#d8d1da}
.tutorial-dead-hp i{display:block;width:100%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ed6e50,#c92645);transition:width .6s cubic-bezier(.2,.8,.2,1)}
.tutorial-dead-boss small{font-size:10px;color:#756c79}
.tutorial-dead-options{max-width:520px;margin:10px auto 0}
.tutorial-dead-options button{min-height:58px}
@keyframes tutorialFullShake{10%,90%{transform:translate3d(-3px,1px,0) rotate(-.3deg)}20%,80%{transform:translate3d(6px,-2px,0) rotate(.45deg)}30%,50%,70%{transform:translate3d(-9px,3px,0) rotate(-.6deg)}40%,60%{transform:translate3d(9px,-2px,0) rotate(.55deg)}}
@keyframes tutorialMagicShake{10%,90%{transform:translate3d(3px,-2px,0) rotate(.3deg)}20%,80%{transform:translate3d(-6px,2px,0) rotate(-.45deg)}30%,50%,70%{transform:translate3d(10px,-3px,0) rotate(.65deg)}40%,60%{transform:translate3d(-9px,3px,0) rotate(-.55deg)}}
@keyframes tutorialUltimateShake{8%,92%{transform:translate3d(-5px,2px,0) rotate(-.5deg)}18%,82%{transform:translate3d(9px,-4px,0) rotate(.8deg)}28%,50%,72%{transform:translate3d(-13px,5px,0) rotate(-1deg)}39%,61%{transform:translate3d(13px,-4px,0) rotate(.9deg)}}
@keyframes tutorialScenePrecision{0%,100%{transform:translateX(0)}22%{transform:translateX(-7px) rotate(-1deg)}45%{transform:translateX(8px) rotate(1.3deg)}68%{transform:translateX(-4px) rotate(-.6deg)}}
@keyframes tutorialSceneTap{35%{transform:scale(1.015)}}
@keyframes tutorialUltimateButton{20%{transform:scale(1.06) rotate(-2deg)}45%{transform:scale(.96) rotate(1deg)}70%{transform:scale(1.03)}}
@keyframes tutorialFlash{0%{opacity:0}13%{opacity:1}65%{opacity:.92}100%{opacity:0}}
@keyframes tutorialFlashText{0%{opacity:0;transform:scale(.35) rotate(-12deg)}25%{opacity:1;transform:scale(1.15) rotate(4deg)}55%{transform:scale(.94) rotate(-2deg)}100%{opacity:0;transform:scale(.8)}}
@keyframes tutorialBossHit{18%{transform:translateX(-10px) rotate(-8deg)}42%{transform:translateX(8px) rotate(6deg)}68%{transform:translateX(-4px) rotate(-3deg)}}
@media(max-width:520px){.tutorial-dead-options{grid-template-columns:1fr}.tutorial-dead-options button{min-height:52px}.tutorial-ultimate-cards>button{min-height:105px;padding:9px}.tutorial-ultimate-cards>button strong{font-size:14px}.tutorial-ultimate-cards>button small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.tutorial-screen.tutorial-hit-shake,.tutorial-screen.tutorial-magic-shake,.tutorial-screen.tutorial-ultimate-shake,.tutorial-battle-demo.precision-impact,.tutorial-battle-demo.ordinary-impact,.tutorial-dead-boss.hit,.tutorial-ultimate-cards>button.released{animation:none!important}.tutorial-impact-flash,.tutorial-impact-flash b{animation-duration:.01ms!important}}
/* Final challenge boss ultimate: telegraphed counter and timed reject shield. */
.attack-composer.boss-ultimate-layout{grid-template-columns:minmax(0,1.1fr) 132px minmax(0,1fr);overflow:visible}
.reject-shield{align-self:stretch;display:grid;place-content:center;justify-items:center;gap:5px;min-width:118px;margin:8px 5px;padding:10px 7px;border:2px solid #8c7590;border-radius:12px;background:linear-gradient(160deg,#f5f2f6,#e5dfe8);color:#65596a;text-align:center;cursor:not-allowed;transition:transform .12s,filter .12s,box-shadow .12s,border-color .12s}
.reject-shield>span{font-size:30px;filter:grayscale(1);opacity:.55}
.reject-shield>b{font-size:13px;font-weight:1000}
.reject-shield>small{max-width:110px;font-size:10px;line-height:1.25;color:#766d79}
.reject-shield.ready{border-color:#20a977;background:linear-gradient(145deg,#e4fff0,#7de7ac);color:#064c32;cursor:pointer;box-shadow:0 0 0 3px #52eea966,0 0 25px #1ed78199,0 5px 14px #16472b35;animation:rejectShieldPulse .62s ease-in-out infinite alternate}
.reject-shield.ready>span{filter:none;opacity:1;animation:shieldIconPulse .62s ease-in-out infinite alternate}
.reject-shield.ready>small{color:#095d3e;font-weight:900}
.reject-shield.ready:active{transform:scale(.91)}
.reject-shield.blocking,.reject-shield.blocked{border-color:#fff;background:linear-gradient(145deg,#effff6,#27d984);box-shadow:0 0 0 7px #fff9,0 0 45px #21e28e;color:#06472c;animation:shieldBlock .45s cubic-bezier(.2,1.4,.3,1)}
.reject-shield.blocked>span{filter:none;opacity:1}
.boss-ultimate-banner{position:absolute;z-index:12;left:50%;top:48%;width:min(78%,480px);display:grid;justify-items:center;gap:8px;padding:15px 20px;transform:translate(-50%,-50%);border:2px solid #ffbd4a;border-radius:15px;background:linear-gradient(140deg,#241329f2,#511d39f2);color:white;text-align:center;box-shadow:0 0 0 4px #ffad3d55,0 12px 34px #14091888,0 0 35px #ff863c77;pointer-events:none}
.boss-ultimate-banner small{color:#ffdc8c;font-size:12px;font-weight:1000;letter-spacing:.08em}
.boss-ultimate-banner>b{font-size:clamp(19px,3.2vw,30px);line-height:1.15;text-shadow:0 2px 8px #ff6f35aa}
.boss-ultimate-banner>span{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;color:#fff;font-size:13px;font-weight:850}
.boss-ultimate-banner>span i{font-style:normal}
.boss-ultimate-banner>span strong{min-width:58px;padding:4px 8px;border-radius:999px;background:#ffda62;color:#45192a;font-size:15px;font-variant-numeric:tabular-nums}
.boss-ultimate-banner.charging{animation:bossUltBannerIn .32s cubic-bezier(.18,1.5,.4,1),bossUltCharge 1s ease-in-out .32s infinite alternate}
.boss-ultimate-banner.critical{border-color:#ff475e;box-shadow:0 0 0 5px #ff234e88,0 0 42px #ff174e;animation:bossUltUrgent .2s steps(2,end) infinite}
.boss-ultimate-banner.blocked{border-color:#4ff3a7;background:linear-gradient(140deg,#073a2a,#087b53);box-shadow:0 0 0 5px #39f6a977,0 0 45px #2cff9e}
.boss-ultimate-banner.hit{border-color:#ff4d61;background:linear-gradient(140deg,#4a101d,#960f2c);box-shadow:0 0 0 5px #ff315c88,0 0 48px #ff315c}
.boss-ultimate-banner.blocked small{color:#9cffca}.boss-ultimate-banner.hit small{color:#ffd3d9}
.game.boss-ultimate-active .battle-window{border-color:#ffad3d;box-shadow:0 0 0 3px #ffb53655,0 0 26px #ff843d88;animation:bossArenaPulse .62s ease-in-out infinite alternate}
.battle-window.boss-ult-shake{animation:bossUltScreenShake .72s cubic-bezier(.36,.07,.19,.97)!important}
.boss-ult-feedback{position:absolute;z-index:14;inset:0;display:grid;align-content:center;justify-items:center;gap:7px;background:radial-gradient(circle,#ffdf6977 0,#ff7a3c44 44%,transparent 78%);animation:bossUltFlash .9s ease-out both}
.boss-ult-feedback small{padding:5px 9px;border-radius:999px;background:#231126dd;color:#fff;font-size:12px;font-weight:950}
.boss-ult-feedback b{padding:9px 18px;border:2px solid white;border-radius:12px;background:linear-gradient(120deg,#ffe768,#ff8e35);color:#36130c;font-size:clamp(24px,5vw,46px);font-weight:1000;text-align:center;box-shadow:0 0 0 5px #fff8,0 0 35px #ff7a20}
.boss-ult-feedback.blocked{background:radial-gradient(circle,#8dffc977 0,#17d88955 42%,transparent 78%)}
.boss-ult-feedback.blocked b{background:linear-gradient(120deg,#a9ffd4,#48e69c);color:#063d27;box-shadow:0 0 0 5px #fff8,0 0 35px #1ce28b}
.boss-ult-feedback.hit{background:radial-gradient(circle,#ffadb966 0,#ec284d66 48%,transparent 82%)}
.boss-ult-feedback.hit b{background:linear-gradient(120deg,#ffbac5,#ff4565);color:#4a0c1d;box-shadow:0 0 0 5px #fff8,0 0 35px #ff244f}
@keyframes rejectShieldPulse{to{transform:scale(1.045);box-shadow:0 0 0 5px #52eea977,0 0 37px #1ed781bb,0 8px 18px #16472b44}}
@keyframes shieldIconPulse{to{transform:scale(1.18) rotate(-8deg);filter:drop-shadow(0 0 9px #fff)}}
@keyframes shieldBlock{20%{transform:scale(1.24) rotate(-8deg)}55%{transform:scale(.9) rotate(5deg)}}
@keyframes bossUltBannerIn{from{opacity:0;transform:translate(-50%,-42%) scale(.72)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes bossUltCharge{to{filter:brightness(1.22);box-shadow:0 0 0 7px #ffb53666,0 12px 35px #140918aa,0 0 52px #ff6938cc}}
@keyframes bossUltUrgent{50%{filter:brightness(1.34);transform:translate(-50%,-50%) scale(1.045)}}
@keyframes bossArenaPulse{to{filter:brightness(1.13)}}
@keyframes bossUltScreenShake{12%,88%{transform:translate3d(-4px,1px,0) rotate(-.3deg)}24%,76%{transform:translate3d(8px,-3px,0) rotate(.55deg)}36%,56%,68%{transform:translate3d(-11px,3px,0) rotate(-.7deg)}46%,60%{transform:translate3d(12px,-4px,0) rotate(.8deg)}}
@keyframes bossUltFlash{0%{opacity:0}16%{opacity:1}72%{opacity:.9}100%{opacity:0}}
@media(max-width:760px){
 .attack-composer.boss-ultimate-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto}
 .attack-composer.boss-ultimate-layout .physical-panel{grid-column:1;grid-row:2}
 .attack-composer.boss-ultimate-layout .reject-shield{grid-column:1;grid-row:3;justify-self:center;align-self:center;width:min(100%,250px);min-height:66px;margin:4px 0;padding:7px 12px;grid-template-columns:34px auto;grid-template-rows:auto auto;column-gap:8px}
 .attack-composer.boss-ultimate-layout .reject-shield>span{grid-row:1/3;font-size:30px}
 .attack-composer.boss-ultimate-layout .reject-shield>b{align-self:end}
 .attack-composer.boss-ultimate-layout .reject-shield>small{align-self:start;max-width:none}
 .attack-composer.boss-ultimate-layout .magic-panel{grid-column:1;grid-row:4;border-left:0;border-top:1px solid var(--line)}
 .boss-ultimate-banner{top:48%;width:min(88%,400px);padding:12px 14px}
 .boss-ultimate-banner>b{font-size:clamp(17px,5.2vw,25px)}
 .boss-ultimate-banner>span{font-size:11px;gap:6px}
}
@media(prefers-reduced-motion:reduce){.reject-shield.ready,.reject-shield.ready>span,.boss-ultimate-banner.charging,.boss-ultimate-banner.critical,.game.boss-ultimate-active .battle-window,.battle-window.boss-ult-shake{animation:none!important}}

/* Explicit desktop workbench tracks keep the physical and magic panels side by side. */
.attack-composer.boss-ultimate-layout{
 display:grid!important;
 grid-template-areas:"hint hint hint" "physical shield magic"!important;
 grid-template-columns:minmax(0,1.1fr) 132px minmax(0,1fr)!important;
 grid-template-rows:auto minmax(0,1fr)!important;
 overflow:hidden;
 align-items:stretch;
}
.attack-composer.boss-ultimate-layout #tutorial-hint{grid-area:hint!important}
.attack-composer.boss-ultimate-layout .physical-panel{grid-area:physical!important;min-width:0}
.attack-composer.boss-ultimate-layout .reject-shield{grid-area:shield!important;width:calc(100% - 8px);min-width:0;justify-self:center;align-self:stretch}
.attack-composer.boss-ultimate-layout .magic-panel{grid-area:magic!important;min-width:0;border-left:1px solid var(--line);border-top:0}
.reject-shield.missed{border-color:#d65062;background:linear-gradient(145deg,#ffe6e9,#e99aa7);color:#681629;box-shadow:0 0 0 3px #ed5a6a33}
.reject-shield.missed>span{filter:none;opacity:.9}
.reject-shield.missed>small{color:#791d2c;font-weight:900}
@media(max-width:760px){
 .attack-composer.boss-ultimate-layout{
  grid-template-areas:"hint" "physical" "shield" "magic"!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto auto auto!important;
 }
 .attack-composer.boss-ultimate-layout .physical-panel{grid-area:physical!important}
 .attack-composer.boss-ultimate-layout .reject-shield{grid-area:shield!important;justify-self:center;align-self:center;width:min(100%,250px);min-height:66px;margin:4px 0;padding:7px 12px;grid-template-columns:34px auto;grid-template-rows:auto auto;column-gap:8px}
 .attack-composer.boss-ultimate-layout .reject-shield>span{grid-row:1/3;font-size:30px}
 .attack-composer.boss-ultimate-layout .reject-shield>b{align-self:end}
 .attack-composer.boss-ultimate-layout .reject-shield>small{align-self:start;max-width:none}
 .attack-composer.boss-ultimate-layout .magic-panel{grid-area:magic!important;border-left:0;border-top:1px solid var(--line)}
 .boss-ultimate-banner{top:48%;width:min(88%,400px);padding:12px 14px}
 .boss-ultimate-banner>b{font-size:clamp(17px,5.2vw,25px)}
 .boss-ultimate-banner>span{font-size:11px;gap:6px}
}

/* Hard-pin all final-stage composer areas and let the two replies use the full right panel. */
.attack-composer.boss-ultimate-layout{
 display:grid!important;
 grid-template-columns:minmax(0,1.1fr) 132px minmax(0,1fr)!important;
 grid-template-rows:auto minmax(0,1fr)!important;
 grid-auto-flow:row!important;
}
.attack-composer.boss-ultimate-layout #tutorial-hint{grid-column:1/-1!important;grid-row:1!important}
.attack-composer.boss-ultimate-layout .physical-panel{grid-column:1!important;grid-row:2!important;width:100%;min-width:0}
.attack-composer.boss-ultimate-layout .reject-shield{grid-column:2!important;grid-row:2!important;width:calc(100% - 8px);min-width:0}
.attack-composer.boss-ultimate-layout .magic-panel{grid-column:3!important;grid-row:2!important;width:100%;min-width:0}
.attack-composer.boss-ultimate-layout .magic-panel .comeback-cards{
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 width:100%;
 min-width:0;
 gap:10px;
}
.attack-composer.boss-ultimate-layout .magic-panel .comeback-card{
 display:block;
 width:100%;
 min-width:0;
 writing-mode:horizontal-tb;
 overflow-wrap:anywhere;
 word-break:normal;
}
@media(max-width:760px){
 .attack-composer.boss-ultimate-layout{
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto auto auto!important;
 }
 .attack-composer.boss-ultimate-layout #tutorial-hint{grid-column:1!important;grid-row:1!important}
 .attack-composer.boss-ultimate-layout .physical-panel{grid-column:1!important;grid-row:2!important}
 .attack-composer.boss-ultimate-layout .reject-shield{grid-column:1!important;grid-row:3!important;width:min(100%,250px);min-width:0}
 .attack-composer.boss-ultimate-layout .magic-panel{grid-column:1!important;grid-row:4!important;border-top:1px solid var(--line);border-left:0}
 .attack-composer.boss-ultimate-layout .magic-panel .comeback-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}


/* Touch screens can keep :hover on the last tapped reply; keep idle choices neutral. */
@media (max-width:760px) and (hover:none) and (pointer:coarse){
 .comeback-card:not(:disabled):not(.hinted-answer):hover,
 .comeback-card:not(:disabled):not(.hinted-answer):focus:not(:focus-visible){
  border-color:#d9cce0!important;
  background:#fcf9fd!important;
  box-shadow:none!important;
  outline:none!important;
  transform:none!important;
  filter:none!important;
 }
 .comeback-card:not(:disabled):not(.hinted-answer):active{
  border-color:#d9cce0!important;
  background:#fcf9fd!important;
  box-shadow:none!important;
 }
}


/* Let long rage items grow instead of flex-shrinking and clipping their copy on phones. */
@media(max-width:760px){
 #rage-events>.rage-event{
  flex:0 0 auto;
  height:auto;
 }
 #rage-events>.rage-event>span{
  display:block;
  min-width:0;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
  line-height:1.45;
 }
}


/* Keep full-rage controls in the workbench, clear of boss speech. */
.ultimate-toggle{grid-column:1/-1!important;grid-row:2!important;justify-self:center;align-self:center;min-height:30px;margin:4px auto;padding:5px 13px;border:1px solid #e4ad36;border-radius:999px;background:linear-gradient(100deg,#fff0ad,#ffd55c);color:#502b0a;font-size:12px;font-weight:950;box-shadow:0 0 0 2px #f1bc3d30,0 4px 12px #26112720;cursor:pointer;z-index:4}
.ultimate-toggle.expanded{border-radius:9px 9px 0 0;margin-bottom:-4px}
.attack-composer .ultimate-menu{position:relative!important;left:auto!important;bottom:auto!important;transform:none!important;grid-column:1/-1!important;grid-row:3!important;width:min(520px,100%);justify-self:center;margin:0;padding:8px 10px;border-radius:10px;background:#2b0c31ed;z-index:5}
.attack-composer:not(.boss-ultimate-layout){grid-template-rows:auto auto auto minmax(0,1fr)!important}
.attack-composer #tutorial-hint{grid-column:1/-1!important;grid-row:1!important}
.attack-composer:not(.boss-ultimate-layout) .physical-panel{grid-column:1!important;grid-row:4!important}
.attack-composer:not(.boss-ultimate-layout) .magic-panel{grid-column:2!important;grid-row:4!important}
.attack-composer.boss-ultimate-layout{grid-template-rows:auto auto auto minmax(0,1fr)!important}
.attack-composer.boss-ultimate-layout #tutorial-hint{grid-column:1/-1!important;grid-row:1!important}
.attack-composer.boss-ultimate-layout .physical-panel{grid-column:1!important;grid-row:4!important}
.attack-composer.boss-ultimate-layout .reject-shield{grid-column:2!important;grid-row:4!important}
.attack-composer.boss-ultimate-layout .magic-panel{grid-column:3!important;grid-row:4!important}
.speech.boss-reaction .reply-target{border-color:#e5c88e;background:#fff4db;color:#78541e}
.speech.boss-reaction .reply-target i{color:#b07a1d}
@media(max-width:760px){
 .attack-composer:not(.boss-ultimate-layout){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto auto auto!important}
 .attack-composer:not(.boss-ultimate-layout) #tutorial-hint{grid-column:1!important;grid-row:1!important}
 .attack-composer:not(.boss-ultimate-layout) .ultimate-toggle{grid-column:1!important;grid-row:2!important}
 .attack-composer:not(.boss-ultimate-layout) .ultimate-menu{grid-column:1!important;grid-row:3!important}
 .attack-composer:not(.boss-ultimate-layout) .physical-panel{grid-column:1!important;grid-row:4!important}
 .attack-composer:not(.boss-ultimate-layout) .magic-panel{grid-column:1!important;grid-row:5!important}
 .attack-composer.boss-ultimate-layout{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto auto auto auto!important}
 .attack-composer.boss-ultimate-layout #tutorial-hint{grid-column:1!important;grid-row:1!important}
 .attack-composer.boss-ultimate-layout .ultimate-toggle{grid-column:1!important;grid-row:2!important}
 .attack-composer.boss-ultimate-layout .ultimate-menu{grid-column:1!important;grid-row:3!important}
 .attack-composer.boss-ultimate-layout .physical-panel{grid-column:1!important;grid-row:4!important}
 .attack-composer.boss-ultimate-layout .reject-shield{grid-column:1!important;grid-row:5!important}
 .attack-composer.boss-ultimate-layout .magic-panel{grid-column:1!important;grid-row:6!important}
}


/* Challenge level 3: three full-width reply choices. */
.comeback-cards.three-choice{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;}
.comeback-cards.three-choice .comeback-card{min-width:0;min-height:76px;padding:9px 10px;font-size:clamp(11px,.92vw,14px);line-height:1.32;overflow-wrap:anywhere;word-break:break-word;}
@media(max-width:760px){.comeback-cards.three-choice{gap:6px;min-height:68px}.comeback-cards.three-choice .comeback-card{min-height:68px;padding:7px 6px;font-size:11px;line-height:1.3}}
@media(max-width:390px){.comeback-cards.three-choice{gap:4px}.comeback-cards.three-choice .comeback-card{padding:6px 4px;font-size:10px}}


/* Challenge level 3 reply options stack vertically across the full workbench. */
.comeback-cards.three-choice{grid-template-columns:minmax(0,1fr);grid-auto-flow:row;grid-auto-rows:minmax(50px,auto);gap:6px;min-height:0;}
.comeback-cards.three-choice .comeback-card{grid-column:1;min-height:50px;padding:9px 13px;font-size:clamp(12px,1vw,15px);line-height:1.35;overflow-wrap:anywhere;word-break:break-word;}
@media(max-width:760px){.comeback-cards.three-choice{gap:5px;min-height:0}.comeback-cards.three-choice .comeback-card{min-height:46px;padding:7px 10px;font-size:12px;line-height:1.3;}}
@media(max-width:390px){.comeback-cards.three-choice .comeback-card{min-height:44px;padding:6px 8px;font-size:11px;}}


/* Mobile: keep the boss heal DM away from the reply-target Slack message. */
@media(max-width:760px){
 .boss-dm.heal{
  left:7px!important;
  right:auto!important;
  top:8px!important;
  bottom:auto!important;
  width:min(300px,58%)!important;
  z-index:32;
 }
}


/* Lock challenge level 3 to a true one-column stack, including the boss-ultimate layout. */
#comeback-cards.three-choice{
 display:grid!important;
 grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:repeat(3,minmax(44px,auto))!important;
 grid-auto-flow:row!important;
 width:100%!important;
 min-width:0!important;
 min-height:0!important;
 gap:5px!important;
}
#comeback-cards.three-choice>.comeback-card{
 grid-column:1!important;
 grid-row:auto!important;
 display:block!important;
 width:100%!important;
 min-width:0!important;
 min-height:44px!important;
 padding:7px 10px!important;
 font-size:12px!important;
 line-height:1.3!important;
 white-space:normal!important;
 overflow-wrap:anywhere!important;
 word-break:break-word!important;
}

/* On phones, incoming Slack DMs and the reply target occupy separate lower corners. */
@media(max-width:760px){
 #speech.slack-thread{
  left:auto!important;
  right:7px!important;
  top:auto!important;
  bottom:7px!important;
  width:calc(50% - 11px)!important;
  max-width:calc(50% - 11px)!important;
 }
 #fx-layer .boss-dm{
  left:7px!important;
  right:auto!important;
  top:auto!important;
  bottom:7px!important;
  width:calc(50% - 11px)!important;
  max-width:none!important;
  grid-template-columns:24px minmax(0,1fr)!important;
  gap:4px!important;
  padding:6px!important;
 }
 #fx-layer .boss-dm .dm-avatar{
  width:24px!important;
  height:24px!important;
  border-radius:5px!important;
 }
 #fx-layer .boss-dm .dm-avatar canvas{
  width:32px!important;
  height:32px!important;
  transform:translate(-4px,-2px)!important;
 }
 #fx-layer .boss-dm .dm-meta{height:auto;min-height:16px;gap:3px;white-space:normal;flex-wrap:wrap}
 #fx-layer .boss-dm .dm-meta strong{font-size:10px!important}
 #fx-layer .boss-dm .dm-meta em{font-size:8px}
 #fx-layer .boss-dm .dm-content p{font-size:10px!important;line-height:1.25!important;margin:2px 0 4px!important}
 #fx-layer .boss-dm .dm-content small{font-size:8px;padding:2px 4px}
 #comeback-cards.three-choice{gap:4px!important}
 #comeback-cards.three-choice>.comeback-card{min-height:42px!important;padding:6px 8px!important;font-size:11px!important}
}
@media(max-width:390px){
 #speech.slack-thread{width:calc(50% - 9px)!important;max-width:calc(50% - 9px)!important;right:5px!important;padding:6px!important;grid-template-columns:24px minmax(0,1fr)!important;gap:4px!important}
 #speech.slack-thread .speech-avatar{width:24px!important;height:24px!important}
 #speech.slack-thread .speech-avatar canvas{width:32px!important;height:32px!important;transform:translate(-4px,-2px)!important}
 #speech.slack-thread #speech-text{font-size:10px!important;line-height:1.22!important}
 #speech.slack-thread small{font-size:7px!important}
 #fx-layer .boss-dm{left:5px!important;width:calc(50% - 9px)!important;padding:5px!important}
 #fx-layer .boss-dm .dm-content p{font-size:9px!important}
}


/* Zen mode: keep the zero-HP boss playable until the player chooses to stop. */
.zen-stop{position:absolute;z-index:20;top:12px;left:50%;transform:translateX(-50%);min-height:42px;padding:10px 18px;border:2px solid #fff;border-radius:999px;background:linear-gradient(110deg,#ffdf64,#ff9b46);color:#4b173d;font-size:14px;font-weight:1000;white-space:nowrap;box-shadow:0 0 0 3px #ffbe5488,0 6px 18px #32103366;cursor:pointer;animation:zenStopPulse 1.15s ease-in-out infinite alternate;}
.zen-stop:active{transform:translateX(-50%) scale(.94)}
@keyframes zenStopPulse{to{filter:brightness(1.12);box-shadow:0 0 0 5px #ffbe5477,0 0 26px #ffb443aa,0 7px 20px #32103366}}
@media(max-width:760px){.zen-stop{top:8px;min-height:38px;padding:8px 14px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.zen-stop{animation:none!important}}

/* Single combined rage ultimate: always full-size, centered in the arena. */
.ultimate-fire{position:absolute;z-index:26;left:50%;top:50%;transform:translate(-50%,-50%);width:clamp(190px,28vw,310px);min-height:clamp(132px,22vh,190px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:3px solid #ffe68a;border-radius:24px;background:radial-gradient(circle at 50% 24%,#c980f2 0%,#7730a5 48%,#351042 100%);color:#fff6d0;box-shadow:0 0 0 6px #ffd95135,0 0 44px #f5c842bb,0 0 100px #d546ff88,inset 0 0 24px #fff4;cursor:pointer;text-shadow:0 2px 8px #280634;animation:ultimateFirePulse 1s ease-in-out infinite}
.ultimate-fire-icon{font-size:clamp(34px,5vw,56px);line-height:1}
.ultimate-fire strong{font-size:clamp(25px,4vw,36px);font-weight:1000;letter-spacing:.08em}
.ultimate-fire small{font-size:12px;font-weight:900;letter-spacing:.12em;color:#fff0a8}
.ultimate-fire.busy{pointer-events:none;filter:brightness(1.2)}
@keyframes ultimateFirePulse{0%,100%{transform:translate(-50%,-50%) scale(.97);box-shadow:0 0 0 5px #ffd95130,0 0 34px #f5c842aa,0 0 82px #d546ff77,inset 0 0 22px #fff3}50%{transform:translate(-50%,-50%) scale(1.04);box-shadow:0 0 0 9px #ffd9513d,0 0 62px #f5c842dd,0 0 125px #d546ffbb,inset 0 0 30px #fff7}}
.ultimate-combined.truth-field{background:radial-gradient(circle at 50% 48%,#e8c6ff33 0,#59298d66 48%,#220a3980 100%)}
.ultimate-combined.ultimate-storm{background:radial-gradient(circle at 50% 50%,#fff3a722 0,#6b244c22 44%,transparent 100%)}
.ultimate-combo-title{position:absolute;z-index:3;left:50%;top:15%;transform:translateX(-50%) rotate(-5deg);padding:8px 20px;border:3px solid #ffe27a;border-radius:12px;background:#45114ddd;color:#fff2a3;font-size:clamp(25px,5vw,48px);font-weight:1000;white-space:nowrap;text-shadow:0 2px 4px #2c082f;box-shadow:0 0 24px #ffd558aa;animation:truthBlast 1.7s both}
.tutorial-ultimate-cards button[data-tutorial-ultimate]{grid-column:1/-1;min-height:105px;border:2px solid #f4d36c;background:linear-gradient(135deg,#4e1a64,#8a38a6);color:#fff4cc;box-shadow:0 0 28px #c05cffa0}
.tutorial-ultimate-cards button[data-tutorial-ultimate] strong{font-size:26px}
@media(max-width:760px){.ultimate-fire{width:min(76vw,260px);min-height:142px;border-radius:21px}.ultimate-fire-icon{font-size:40px}.ultimate-fire strong{font-size:28px}.ultimate-combo-title{top:12%;font-size:27px}}

/* Fourth boss layout overrides. */
.boss-options{grid-template-columns:repeat(4,minmax(0,1fr))}
.boss-face{height:160px}
.dispatch-scene[data-boss="tyrant"] .dispatch-seated[data-dispatch-boss="tyrant"]{display:block}
@media(max-width:760px){.boss-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.boss-face{height:132px}.boss-face .portrait{width:150px;height:150px}}

