#phase-beat{position:relative}
#phase-beat .beat-stats>span:has(#live-papers),#phase-beat .rhythm-rail,#phase-beat .bpm-note,#phase-beat .qte-call,#kit-skill,#kit-stage,#kit-guidance{display:none!important}
#phase-beat .beat-telemetry{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;width:100%;flex-shrink:0}
#phase-beat .beat-stats{position:static;display:flex;flex-direction:row;gap:24px;align-items:center;flex:0 0 auto}
#phase-beat .beat-stats b{font-size:25px}#phase-beat .beat-stats small{font-size:11px}
.ultimate-hud{display:flex;align-items:center;gap:9px;flex:1 1 200px;min-width:0}
.ultimate-meter{flex:1;min-width:70px;display:grid;grid-template-columns:1fr auto;gap:2px 6px;color:#f6deb0;font-size:11px;line-height:1.3}
.ultimate-meter progress{grid-column:1/-1;width:100%;height:13px;accent-color:#f0c66f}.ultimate-meter small{grid-column:2;grid-row:1;white-space:nowrap;font-size:10px}
#finisher-launch{flex:0 0 99px;min-width:95px;min-height:44px;padding:6px;border:2px solid #a3bca2;background:#314b43;color:#e3d7b7;font-size:12px;line-height:1.3;border-radius:11px}
#finisher-launch[data-ready=true]{border-color:#ffe6a1;background:#eac97f;color:#574648;box-shadow:0 0 13px #ffdc7c66;animation:unified-ready 1.5s ease-in-out infinite}
#finisher-launch:disabled{opacity:.7;cursor:default}#finisher-launch[data-ready=true]:disabled{opacity:1}
#phase-beat .personality-hud{height:62px;min-height:62px;flex-basis:62px;position:relative;inset:auto;width:100%}
#phase-beat .personality-hud>p{font-size:12px;line-height:1.45;background:#27493f}
#phase-beat .event-banner{height:60px;min-height:60px;overflow:hidden;gap:7px;align-items:center}
#phase-beat .event-banner #event-label{font-size:12px;line-height:1.4}
#phase-beat .event-banner #event-status{font-size:10px;white-space:nowrap}
#phase-beat .beat-arena{min-height:150px;flex:1 1 0}
#phase-beat .beat-reaction{height:35px!important;min-height:35px;flex:0 0 35px!important;width:100%}
#phase-beat .hit-feedback{height:35px!important;min-height:35px;display:flex;align-items:center;justify-content:center;font-size:12px;line-height:1.4;white-space:normal}
#phase-beat .beat-arena .hit-zone{inset:20px auto 7px 50%;height:calc(100% - 27px);width:min(57%,245px)}
.is-playing .master-equipped-title{display:none!important}.is-playing .play-panel .fong-bubble:has(.master-equipped-title:not([hidden])){height:56px;min-height:56px;flex-basis:56px}.is-playing .master-portrait-play:has(.master-equipped-title:not([hidden])){flex-basis:38px}
#phase-beat .beat-arena{isolation:isolate;overflow:hidden}
#finisher-stage.burst-dimension{display:block;padding:0;gap:0}
.burst-dimension{position:absolute;inset:-3px;z-index:0;pointer-events:none;overflow:hidden;border:2px solid #78eee1;border-radius:8px;background:repeating-conic-gradient(from 12deg at 50% 55%,#17696255 0deg 8deg,transparent 8deg 25deg),radial-gradient(ellipse at 50% 55%,#267f7966 12%,#152e3fe6 67%,#17292f);box-shadow:inset 0 0 30px #57d9d36b,0 0 16px #59e3d433}
.burst-storm{width:100%;height:100%;overflow:visible}.burst-speedlines{transform-origin:50% 55%;animation:burst-rush .8s ease-in-out infinite alternate;opacity:.5}
.burst-bolt{animation:burst-lightning 2.1s linear infinite;filter:drop-shadow(0 0 5px #b6ffff)}.burst-bolt-two{animation-delay:1.05s}
#play-panel[data-ultimate=true] .bridge-scene{filter:hue-rotate(95deg) saturate(1.5) brightness(.65)}
#play-panel[data-ultimate=true]{box-shadow:inset 0 0 38px #42cbbf55,0 0 24px #4bd7d44d;border-color:#84e7d4}
#play-panel[data-ultimate=true] .beat-stats b{color:#c3fff4;text-shadow:0 0 10px #53d6c6}
#play-panel[data-ultimate=true] #striking-weapon{isolation:isolate;filter:drop-shadow(0 0 7px #ffb34e)}
#striking-weapon>.burst-fire{position:absolute;inset:-35% -35% -15%;width:170%;height:150%;z-index:-1;pointer-events:none;overflow:visible;transform:rotate(12deg)}
.burst-flame-outer,.burst-flame-inner{transform-origin:50% 90%;animation:burst-flame .34s ease-in-out infinite alternate}.burst-flame-inner{animation-duration:.46s;animation-direction:alternate-reverse}
.ritual-stage[inert] :is(.burst-dimension,.burst-dimension *,.burst-fire *){animation-play-state:paused!important}
@keyframes burst-rush{from{transform:scale(.96);opacity:.3}to{transform:scale(1.04);opacity:.65}}
@keyframes burst-lightning{0%,12%,100%{opacity:.15}4%,8%{opacity:1}}
@keyframes burst-flame{from{transform:scale(.94,1.02) skewX(-4deg)}to{transform:scale(1.04,.94) skewX(4deg)}}
@keyframes unified-ready{50%{box-shadow:0 0 19px #ffe59899}}
/* Single action props have clear touch targets and one short cue. */
#event-props .simple-event{top:50%;right:3px;left:auto;bottom:auto;translate:0 -50%;width:65px;height:79px;max-height:90%;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:2px;place-items:center;overflow:hidden;animation:none}
.simple-event>span,.simple-event>svg{animation:comic-prop-bob 1.8s ease-in-out infinite}.simple-event>span{font-size:32px}.simple-event svg{width:100%;height:100%;min-height:0}.simple-event small{font-size:10px;line-height:1.3;color:#fff0bd;background:#294940;border-radius:4px;padding:2px 3px}
/* New paper casts have three distinct performances. */
.paper-doll[data-comedy-act=swagger] .comedy-hat{transform-origin:center;animation:comic-hat-wobble 2s ease-in-out infinite}
.paper-doll[data-comedy-act=pleading]{--cry-display:inline;--neutral-display:none}
.paper-doll[data-comedy-act=pleading] .paper-arm-left{transform:rotate(22deg);transform-origin:44px 107px}.paper-doll[data-comedy-act=pleading] .paper-arm-right{transform:rotate(-22deg);transform-origin:96px 107px}
.paper-doll[data-comedy-act=wrap] .comedy-hat{transform:translate(13px,20px) rotate(28deg);transform-origin:center}.paper-doll[data-comedy-act=wrap] .comedy-beard{transform:translate(15px,18px) rotate(22deg);transform-origin:center}.paper-doll[data-comedy-act=wrap] .paper-leg-left{transform:rotate(10deg);transform-origin:center}
@keyframes comic-hat-wobble{0%,70%,100%{transform:rotate(0)}80%{transform:rotate(-7deg)}90%{transform:rotate(5deg)}}
.extra-king-cameo{position:absolute;right:3px;bottom:0;width:68px;height:100px;pointer-events:none;z-index:4;animation:extra-trip 1.7s ease-out both}.extra-king-cameo svg{width:100%;height:100%}.extra-king-cameo i{position:absolute;top:10px;left:2px;color:#fff0b7;font-size:22px;font-style:normal}
.extra-king-hat{transform-origin:60px 30px;animation:extra-hat 2.8s ease-in-out infinite}.loot-card:has(.extra-king-hat){background:linear-gradient(135deg,#594c6b,#284b40)}.friend-icon svg{width:100%;height:100%}
@keyframes extra-trip{0%{transform:translateX(70px) rotate(20deg)}30%{transform:translateX(0) rotate(-14deg)}60%{transform:translateX(-9px) rotate(15deg)}100%{transform:translateX(0) rotate(0)}}
@keyframes extra-hat{0%,15%,100%{transform:translate(0,0) rotate(0)}40%{transform:translate(22px,17px) rotate(30deg)}70%{transform:translate(-7px,10px) rotate(-15deg)}}
.clockoff-stamp{transform-origin:60px 80px;animation:clockoff-seal 3.6s ease-in-out infinite}
@keyframes clockoff-seal{0%,45%,100%{transform:translateY(0)}55%{transform:translateY(-12px) rotate(-5deg)}65%{transform:translateY(8px)}76%{transform:translateY(-3px)}}
/* The royal meatball callbacks use actual owned props, not another resource. */
.chase-helmet{position:absolute;left:30%;top:-8%;font-style:normal;font-size:28px;filter:drop-shadow(0 2px 0 #263f36)}
#stall-skit[data-scene=meatball-coronation] [data-skit-actor]{position:relative;transform-origin:50% 85%}
#stall-skit[data-scene=meatball-coronation][data-act="0"] [data-skit-actor=cat]{animation:cat-chase 1.2s ease-in-out infinite}
#stall-skit[data-scene=meatball-coronation][data-act="2"] [data-skit-actor=cat],.meatball-court .stall-piece:not([data-piece=beef-balls]):not([data-piece=dragon-throne]) .furnishing-art{animation:royal-bow 1.8s ease-in-out infinite}
@keyframes ball-escape{0%,100%{transform:translate(0,0) rotate(-8deg)}50%{transform:translate(35px,-18px) rotate(15deg)}}
@keyframes cat-chase{0%,100%{transform:translate(-14px,0) rotate(-8deg)}50%{transform:translate(18px,5px) rotate(10deg)}}
@keyframes royal-bow{0%,100%{transform:rotate(0)}50%{transform:rotate(22deg) translateY(4px)}}
.comic-ending-book{padding:10px;margin:12px 0;border:1px solid #e6c67f;border-radius:12px;background:#294b42;color:#f4dfaf}.comic-ending-book summary{cursor:pointer}.comic-ending-book li{margin:9px 0;font-size:12px;line-height:1.65}
.ritual-stage[inert] .extra-king-cameo,.ritual-stage[inert] .extra-king-hat,.ritual-stage[inert] .comedy-hat{animation-play-state:paused!important}
@media(max-height:650px){#phase-beat .beat-stats b{font-size:22px}#phase-beat .beat-arena{min-height:120px}#phase-beat .beat-telemetry{gap:5px}.ultimate-hud{flex-basis:170px}#phase-beat .personality-hud{height:58px;min-height:58px;flex-basis:58px}#phase-beat .event-banner{height:56px;min-height:56px}.is-playing .play-panel .fong-bubble:has(.master-equipped-title:not([hidden])){height:50px;min-height:50px;flex-basis:50px}.unified-finisher h3{font-size:16px}}
@media(max-height:500px) and (min-aspect-ratio:4/3){#phase-beat{display:grid;grid-template-columns:minmax(0,1fr) 225px;grid-template-rows:54px minmax(0,1fr) 34px;grid-template-areas:'telemetry telemetry' 'arena hud' 'arena feedback';gap:5px 12px}#phase-beat .beat-telemetry{grid-area:telemetry;flex-wrap:nowrap}#phase-beat .beat-stats{gap:25px}#phase-beat .ultimate-hud{max-width:340px;flex-basis:240px}#phase-beat .personality-hud{grid-area:hud;height:100%;min-height:0;flex-basis:auto}#phase-beat .beat-arena{grid-area:arena;min-height:110px}#phase-beat .beat-reaction{grid-area:feedback}#phase-beat .event-banner{height:90px;min-height:90px;align-self:center}#phase-beat .event-banner #event-label{font-size:12px}.is-playing .play-panel .fong-bubble:has(.master-equipped-title:not([hidden])){height:42px;min-height:42px;flex-basis:42px}#finisher-stage.unified-finisher{grid-template-columns:minmax(0,1fr) minmax(140px,43%);grid-template-rows:32px minmax(34px,1fr) 42px 15px;gap:2px 8px;padding:6px}#finisher-title{grid-column:1/-1;font-size:15px}.ultimate-cast{grid-column:1;grid-row:2/5;min-height:65px}#ultimate-punchline{grid-column:2;grid-row:2;align-self:center;font-size:11px;padding:3px}#ultimate-nice{grid-column:2;grid-row:3;font-size:11px;padding:3px 5px;min-height:40px}#ultimate-nice-note{grid-column:2;grid-row:4;font-size:10px;line-height:1.3}.ultimate-tools-fan i{font-size:18px;transform:rotate(calc(var(--tool)*30deg)) translateX(40px) rotate(calc(var(--tool)*-30deg))}}
@media(prefers-reduced-motion:reduce){#finisher-launch[data-ready=true],.ultimate-cast *, .simple-event>svg,.simple-event>span,.extra-king-cameo,.extra-king-hat,.clockoff-stamp,.paper-doll .comedy-hat,.meatball-court .furnishing-art,#stall-skit[data-scene=meatball-coronation] [data-skit-actor]{animation:none!important;transform:none}.ultimate-movie-tool,.ultimate-movie-paper{opacity:1}.unified-finisher[data-act=payoff][data-family=gadget] .ultimate-movie-tool{opacity:0}.ultimate-tools-fan{opacity:0}.unified-finisher[data-act=setup][data-family=gadget] .ultimate-tools-fan{opacity:1}#ultimate-nice[data-ready=true]{transform:none}}
/* Repeat callbacks are acted out by the props themselves. */
#stall-skit[data-scene=meatball-coronation] [data-skit-actor=beef-balls]{animation:none;transform:none}
#stall-skit[data-scene=meatball-coronation] svg{overflow:visible}
#stall-skit[data-scene=meatball-coronation][data-act="0"] .runaway-ball{animation:ball-escape 1.2s ease-in-out infinite;transform-origin:60px 75px}
#stall-skit[data-scene=meatball-coronation][data-act="1"] .runaway-ball{transform:translate(10px,-6px) rotate(-10deg);transform-origin:60px 75px}
.royal-meatball-on-throne{display:none;position:absolute;left:23%;top:1%;width:54%;height:68%;z-index:3}
#stall-skit[data-scene=meatball-coronation][data-act="2"] .royal-meatball-on-throne{display:block}
#stall-skit[data-scene=meatball-coronation][data-act="2"] [data-skit-actor=beef-balls] .runaway-ball{visibility:hidden}
.meatball-court .stall-piece:not([data-piece=dragon-throne]) .furnishing-art{animation:royal-bow 1.8s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.runaway-ball,.ultimate-blade-papers span,.meatball-court .furnishing-art{animation:none!important}}

/* A visible, remembered pre-ritual choice; native checkbox keeps the entire label tappable. */
.random-events-option{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:10px;min-height:60px;margin:12px 0;padding:12px;border:1px solid #a2b59a;border-radius:13px;background:#29453e;color:#f2dfb7;cursor:pointer;text-align:left}
.random-events-option input{width:22px;height:22px;margin:0;accent-color:#efcd83;cursor:pointer}.random-events-option b{display:block;font-size:14px;line-height:1.4}.random-events-option small{display:block;margin-top:4px;font-size:11px;line-height:1.65;color:#d4dfc7}.random-events-option:has(input:checked){border-color:#f0ce83;background:#3c5546}.random-events-option:focus-within{outline:3px solid #f0ce83;outline-offset:3px}

/* Read-only gesture labels stay visible below the paper and fit on one row. */
#phase-beat .gesture-controls{display:block;position:relative;flex:0 0 46px;min-height:46px;width:100%;margin:0}
#phase-beat .gesture-controls::after{content:none}
#phase-beat .gesture-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;position:static;width:100%;height:44px;min-height:44px;padding:0;overflow:visible;scroll-snap-type:none;touch-action:manipulation}
#phase-beat .gesture-tools .gesture-hint{width:100%;min-width:0;height:44px;min-height:44px;padding:2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;line-height:1.2}
#phase-beat .gesture-tools .gesture-hint>span{font-size:18px;line-height:1}#phase-beat .gesture-tools .gesture-hint b{font-size:11px;line-height:1.2;white-space:normal;text-align:center}
@media(max-height:500px) and (min-aspect-ratio:4/3){#phase-beat{grid-template-rows:54px minmax(0,1fr) 46px;grid-template-areas:'telemetry hud' 'arena hud' 'controls feedback'}#phase-beat .gesture-controls{grid-area:controls;align-self:end}#phase-beat .beat-reaction{align-self:end}}
/* Keep the finisher caption readable when the hint row reduces available height. */
.ultimate-meter{grid-template-columns:minmax(0,1fr);gap:1px}.ultimate-meter label{grid-row:1;white-space:nowrap}.ultimate-meter small{grid-column:1;grid-row:2}.ultimate-meter progress{grid-column:1;grid-row:3;height:8px}

#phase-beat .beat-telemetry{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:8px;block-size:60px;min-block-size:60px;max-block-size:60px;min-width:0;overflow:visible}
#phase-beat .beat-stats{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:6px;min-width:0;width:100%;height:50px}
#phase-beat .beat-stats>span{display:block;min-width:0;text-align:center;overflow:hidden}
#phase-beat .beat-stats b{display:block;width:100%;font-size:20px;line-height:1.3;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:0}
#phase-beat .beat-stats small{display:block;font-size:10px;line-height:1.3;white-space:nowrap}
#phase-beat .ultimate-hud{display:grid;grid-template-columns:minmax(0,1fr) 82px;gap:6px;width:100%;max-width:none;min-width:0;height:50px}
#phase-beat .ultimate-meter{min-width:0;font-size:10px;overflow:hidden}.ultimate-meter label,.ultimate-meter small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#phase-beat #finisher-launch{width:82px;min-width:0;height:44px;border-radius:8px;font-size:11px;letter-spacing:0;font-variant-numeric:tabular-nums}
@media(min-width:600px){#phase-beat .beat-telemetry{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#phase-beat .ultimate-hud{grid-template-columns:minmax(0,1fr) 104px}#phase-beat #finisher-launch{width:104px;font-size:12px}#phase-beat .beat-stats b{font-size:25px}#phase-beat .ultimate-meter{font-size:11px}}

body :is(button,[role=button]):not(:where(.stall-showcase *,#quick-dock *,[role=tablist] *,#sound-setup,#settings-sound)){--button-depth:2.25px;--button-edge:#142e29;box-shadow:inset 0 .75px 0 #ffffff4d,inset 0 -1.5px 0 #00000018,0 var(--button-depth) 0 var(--button-edge),0 calc(var(--button-depth) + 1.5px) 3.75px #091c2430!important;transition:translate .1s ease,box-shadow .1s ease;letter-spacing:0}
body :is(.bbl-button,.work-button,#finisher-launch[data-ready=true]){--button-depth:3px;--button-edge:#8b653e}
body :is(.icon-button,.dialog-x,.purchase-close,.settings-open,.text-button){--button-depth:1.5px}
body :is([aria-selected=true],[aria-pressed=true]){--button-depth:.75px}
body :is(#confirm-discard,#confirm-quit,[data-discard]){--button-edge:#784940}
body :is(button,[role=button]):not(:disabled):not(:where(.stall-showcase *,#quick-dock *,[role=tablist] *,#sound-setup,#settings-sound)):not(.hit-zone,.incense-stick,.pork-piece,.ritual-prop,.blessing-paper,.copy-target,.comic-event-prop):active{translate:0 1.5px;box-shadow:inset 0 1.5px 2.25px #0000001c,0 .75px 0 var(--button-edge)!important}
body :is(button,[role=button]):focus-visible{outline:3px solid #ffe4a3;outline-offset:3px}
body button:disabled:not(:where(.stall-showcase *,#quick-dock *,[role=tablist] *,#sound-setup,#settings-sound)){box-shadow:inset 0 .75px 0 #ffffff26,0 .75px 0 var(--button-edge)!important}
body button:is(.hit-zone,.incense-stick,.pork-piece,.ritual-prop,.blessing-paper,.copy-target,.comic-event-prop){box-shadow:none!important;filter:drop-shadow(0 2.25px 0 #0b201f73)}
body button:is(.hit-zone,.incense-stick,.pork-piece,.ritual-prop,.blessing-paper,.copy-target,.comic-event-prop):not(:disabled):active{box-shadow:none!important;filter:drop-shadow(0 .75px 0 #0b201f73)}
@media(prefers-reduced-motion:reduce){.burst-dimension *,.burst-fire *{animation:none!important}.burst-bolt{opacity:.65}body :is(button,[role=button]){transition:none}}
