/* Cantonese comic ritual set: theatrical motion, fixed interaction surfaces. */
.kit-art,.decor-icon{scale:1.2;transform-origin:center}.friend-icon{scale:1.2;flex-shrink:0}.kit-row,.decor-row,.friend-row{column-gap:18px!important;padding-block:15px!important}.kit-row>button:not(:disabled),.decor-row>button:not(:disabled){background:linear-gradient(130deg,#ffe78e,#f1a875)!important;color:#283b36!important;border:2px solid #fff0ba!important;border-radius:12px;font-size:13px!important;font-weight:750;box-shadow:0 3px 0 #876044,0 0 16px #ffd06922;min-width:78px;min-height:46px}.kit-row>button:active,.decor-row>button:active{translate:0 2px}.friend-row small{line-height:1.7}.patron-stars-5{border:2px solid #e6c774;background:linear-gradient(120deg,#69456855,#c6ad4622);border-radius:14px}.patron-stars-4{border:1px solid #d4acdc}
.purchase-dialog[data-pending=true] .purchase-parcel{display:none}.purchase-dialog[data-pending=true] .purchase-art #purchase-art{opacity:1!important;transform:none!important;scale:1.2}.purchase-dialog #purchase-detail{font-size:15px;line-height:1.8;padding:12px;background:#15483c;border:1px dashed #ecc874;border-radius:12px}.purchase-dialog #purchase-action{min-height:50px;background:#f4d17c;color:#284134;font-size:16px}.purchase-dialog[data-pending=true] .purchase-sparks{display:none}
.yellow-paper-tiger svg>ellipse,.yellow-paper-tiger svg>rect,.ritual-paper-tiger svg>ellipse,.ritual-paper-tiger svg>rect{fill:#ffdf65}.yellow-paper-tiger svg{filter:drop-shadow(0 5px 0 #b57b3b)}.blood-bowl{position:absolute;left:8px;bottom:3px;width:80px;min-height:64px;border:2px solid #d9a39d;border-radius:15px;background:#732b46;color:#fff0df;font-size:28px;z-index:3}.blood-bowl b{display:block;font-size:12px}.blood-bowl[hidden]{display:none}.is-dipped svg{filter:drop-shadow(0 2px 0 #8e2e45)}.is-dipped svg>path:first-child{fill:#bd566b}.pork-piece{scale:.82}.tiger-panel .phase-instruction{line-height:1.5}
.purify-scene{position:relative;min-height:180px;flex:1;isolation:isolate;width:100%;max-width:490px;border-radius:20px;background:radial-gradient(ellipse,#cfa95b33,transparent 70%);overflow:hidden}.ritual-paper-tiger{position:absolute;left:29%;top:4%;width:40%;height:70%}.ritual-paper-tiger svg{width:100%;height:100%}.ritual-fire{position:absolute;left:42%;bottom:8%;font-size:58px;line-height:1}.ritual-fire i{display:block;font-size:13px;background:#e2be72;color:#6a3b31;padding:2px 10px;border-radius:4px}.ritual-prop{position:absolute;border:2px solid #d7c082;border-radius:16px;background:#38584d;color:#fff2ba;min-width:65px;min-height:70px;touch-action:none;font-size:37px;cursor:pointer}.ritual-prop:disabled{opacity:.4}.ritual-prop:not(:disabled){box-shadow:0 0 0 4px #f4cb6b44;animation:prop-wiggle 2s ease-in-out infinite}#burn-paper{left:5%;top:30%}#scatter-grains{right:5%;top:17%}.green-horse{right:5%;bottom:7%;background:#70a987;color:#143a2e}.green-horse b{display:block;font-size:12px}.ritual-prop.is-finished{opacity:.15;scale:.7}.purify-scene #ritual-grains{position:absolute;inset:50% 0 0;pointer-events:none}#ritual-grains i{position:absolute;left:50%;color:#ffe89d;font-size:23px;animation:scatter-grain 900ms ease-out both}.blocks-stage{display:flex;align-items:center;justify-content:center;gap:18px;min-height:130px;width:100%;perspective:700px}.blocks-stage span{display:block;width:40%;max-width:170px;filter:drop-shadow(0 8px 0 #122e32)}.blocks-stage svg{display:block;width:100%;height:auto}.blocks-stage.is-rolling span{animation:blocks-tumble 600ms ease-in-out infinite alternate}.blocks-stage.is-rolling span+span{animation-delay:-300ms}#blocks-outcome{font-size:18px;line-height:1.6;text-align:center;color:#ffe293;min-height:58px;margin:6px 0}
.finisher-launch{flex:0 0 54px;min-width:44px;min-height:44px;padding:3px;border:2px solid #bda48b;border-radius:9px;font:600 12px/1.3 'DM Sans',system-ui,sans-serif;color:#ebd3a8;background:#42584a}.finisher-launch[data-ready=true]{border-color:#ffd472;background:#9a5941;color:#fff0b5;animation:ultimate-ready 1.3s ease-in-out infinite}.finisher-stage{position:absolute;inset:0;z-index:9;display:flex;flex-direction:column;align-items:center;justify-content:space-around;padding:8px;background:radial-gradient(circle,#f6bd7b,#6c438c);border:3px solid #ffe38c;border-radius:14px;color:#fff2c8;touch-action:none}.finisher-stage[hidden]{display:none}.finisher-stage h3{font-size:18px;text-align:center;margin:0}.ultimate-paper{font-size:38px;display:flex;align-items:center;gap:7px}.ultimate-paper strong{font-size:38px;rotate:-12deg;color:#804237;background:#fff0bd;border:3px solid #b66d83;padding:3px 7px}.finisher-stage p{font-size:12px;line-height:1.4;margin:2px}.finisher-actions{display:flex;gap:12px}.finisher-actions button{min-width:50px;min-height:44px;background:#f9dda0;border:2px solid #75454d;border-radius:12px;font-size:23px}.finisher-actions button:disabled{opacity:.45}
.auspicious-seal{position:relative;margin:15px auto;width:130px;height:130px;display:grid;place-items:center;border:6px double #ffdf87;border-radius:30%;background:linear-gradient(135deg,#e14a5c,#9e294e);box-shadow:0 0 0 7px #f3d47b44,0 0 50px #efcc6c77;color:#ffe88b;font-size:90px;line-height:1;rotate:-7deg;animation:auspicious-pop 900ms cubic-bezier(.1,1.5,.2,1) both}.auspicious-seal:after{content:'✦ ✦';position:absolute;left:-39px;right:-39px;top:-25px;font-size:28px;color:#f9dfa4;letter-spacing:36px}.loot-dialog{width:min(520px,calc(100vw - 28px));background:radial-gradient(at 50% 0,#745c77,#214e43 60%);border:3px solid #e6c17c}.loot-dialog h2{text-align:center;margin-right:0;color:#ffdd89}.loot-rays{font-size:39px;text-align:center;letter-spacing:14px;animation:loot-sparkle 1.4s ease-in-out infinite alternate}.loot-card{display:grid;grid-template-columns:72px minmax(0,1fr);gap:6px 14px;margin:16px 0;padding:14px 12px;border:1px solid #dbc590;border-radius:18px;background:#143d36c9;animation:auspicious-pop 650ms cubic-bezier(.1,1.4,.2,1) both}.loot-icon{grid-row:1/3;display:grid;place-items:center;font-size:49px}.loot-icon svg{width:72px;height:82px}.loot-card h3{margin:0;font-size:19px;color:#ffe29d}.loot-card p{margin:0;font-size:13px;line-height:1.65}#loot-close{position:sticky;bottom:-18px;display:block;width:100%;min-height:48px;background:#f4d58f;color:#294237}
#phase-blessing,#phase-divination{min-height:0;overflow:auto;overscroll-behavior:contain}.step-track li{min-width:0}.step-track li small{overflow-wrap:anywhere}.is-playing .step-track{gap:3px}
@keyframes prop-wiggle{0%,70%,100%{rotate:0deg}80%{rotate:-7deg}90%{rotate:6deg}}@keyframes scatter-grain{from{translate:0 -50px;opacity:1}to{translate:var(--x) var(--y);rotate:190deg;opacity:0}}@keyframes blocks-tumble{from{transform:translateY(-20px) rotateX(10deg) rotate(-25deg)}to{transform:translateY(20px) rotateX(330deg) rotate(25deg)}}@keyframes auspicious-pop{from{opacity:0;scale:.25;translate:0 20px}70%{opacity:1;scale:1.1}to{opacity:1;scale:1;translate:0 0}}@keyframes ultimate-ready{50%{box-shadow:0 0 15px #ffe28f;scale:1.04}}@keyframes loot-sparkle{to{scale:1.09;rotate:4deg}}
@media(max-height:650px){.purify-scene{min-height:125px}.blocks-stage{min-height:90px}.blocks-stage span{max-width:125px}.phase-panel #blocks-outcome{font-size:14px;min-height:38px}.finisher-stage h3{font-size:14px}.ultimate-paper,.ultimate-paper strong{font-size:26px}.finisher-stage p{font-size:12px}.finisher-actions button{min-height:40px}.ritual-prop{min-height:54px;min-width:54px;font-size:27px}}
@media(prefers-reduced-motion:reduce){.ritual-prop,.blocks-stage span,.auspicious-seal,.loot-rays,.loot-card,.finisher-launch,#ritual-grains i{animation:none!important}.loot-card,.auspicious-seal{opacity:1}}
#equipped-art,#result-kit-art,.skill-help-art svg,.loot-icon svg{scale:1.2}#stall-extension{gap:16px;padding:14px}.stall-extension .furnishing-art{scale:1.2;transform-origin:50% 100%}.stall-extension .stall-piece{padding-top:14px;min-height:135px}.collection-panel .collection-note{line-height:1.8}.loot-dialog .loot-card:nth-child(2){animation-delay:100ms}.loot-dialog .loot-card:nth-child(3){animation-delay:180ms}.loot-dialog .loot-card:nth-child(4){animation-delay:260ms}
.purify-scene[data-step="1"] .ritual-fire,.purify-scene[data-step="2"] .ritual-fire{filter:drop-shadow(0 0 14px #ffb43b);scale:1.2}.purify-scene[data-step="3"] .green-horse{filter:drop-shadow(0 0 14px #c1ff91)}
.secret-collection{margin-top:25px;border:1px solid #e1c783;border-radius:16px;padding:15px;background:#25483c}.secret-collection summary{font-size:19px;color:#f9d68e;cursor:pointer;padding:7px}.secret-collection>p{font-size:13px;line-height:1.8}.secret-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.secret-grid .loot-card{display:flex;flex-direction:column;margin:0;min-width:0}.secret-grid .loot-card h3{font-size:16px}.secret-grid .loot-card p{font-size:12px}.secret-grid .loot-icon{width:100%;height:88px}
.title-earned{border:2px solid #edcf79!important;background:linear-gradient(130deg,#6b425466,#c5aa4922)!important;border-radius:14px;box-shadow:0 0 18px #eac36d22}.title-earned>b{color:#ffe08a;font-size:18px!important}:lang(zh-Hant) #personal-postcard svg text{font-family:Iansui,'PingFang TC',system-ui,sans-serif}
.loot-dialog[data-auspicious=true] .loot-rays{font-family:Iansui,system-ui,sans-serif;display:grid;place-items:center;width:90px;height:90px;margin:0 auto 10px;background:linear-gradient(140deg,#e74e59,#a32857);border:5px double #ffdd81;border-radius:25%;box-shadow:0 0 0 5px #f0ce7133;color:#ffe38c;font-size:67px;letter-spacing:0;rotate:-7deg}#burn-paper svg{display:block;width:54px;height:69px}#burn-paper{padding:3px}#burn-paper.is-finished{opacity:0;scale:.1;rotate:90deg;transition:opacity .4s,scale .4s,rotate .4s}@media(prefers-reduced-motion:reduce){#burn-paper.is-finished{transition:none}}
.finisher-stage.is-win{animation:auspicious-pop 600ms cubic-bezier(.1,1.5,.2,1)}.finisher-stage.is-win .ultimate-paper strong{background:#ffe187;color:#9a315a;border-color:#b95576;scale:1.25}.finisher-stage.is-win:after{content:'🎉 ✨ 🎊';position:absolute;left:10%;right:10%;top:20%;text-align:center;font-size:35px;pointer-events:none;animation:loot-sparkle 700ms ease-out both}@media(prefers-reduced-motion:reduce){.finisher-stage.is-win,.finisher-stage.is-win:after{animation:none}}
.ritual-prop{width:72px;height:76px;line-height:1;padding:6px}.ritual-prop:disabled{pointer-events:none}.green-horse b{line-height:1.1;margin-top:3px}#scatter-grains{top:0}#bless{top:auto;bottom:0}#burn-paper{padding:3px}#burn-paper svg{width:56px;height:64px}@media(max-height:650px){.ritual-prop{width:56px;height:54px;min-height:54px;min-width:54px;padding:3px;font-size:27px}#burn-paper svg{width:44px;height:44px}.green-horse b{margin-top:2px;font-size:12px}}
/* Compact controls leave the paper and event targets unobstructed. */
.stall-tabs button{font-size:14px}.shop-tools{position:static;gap:14px;padding-inline:8px;box-shadow:none}.stall-tabs{position:relative}.skin-chooser{margin:14px 0;border:1px solid #b9c7a977;border-radius:14px;background:#21463e;padding:12px}.skin-chooser summary{cursor:pointer;min-height:36px;line-height:1.5;font-size:14px;font-weight:700;color:#f9e6b1}.skin-note{font-size:12px;line-height:1.6;color:#d8dfc2}.skin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.skin-card{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;border:2px solid #769e8b;border-radius:13px;background:#f4e8c9;color:#334940;padding:8px 4px;touch-action:manipulation}.skin-card[aria-pressed=true]{border-color:#f4bd53;box-shadow:0 0 0 2px #f4bd5355;background:#fff3cf}.skin-card svg{height:85px;width:100%;filter:drop-shadow(0 3px 1px #543c2e22)}.skin-card b{font-size:12px;line-height:1.4}.skin-card small{font-size:10px;line-height:1.5}.skin-card:disabled{opacity:.55}.settings-open svg,.playground-home>span svg{width:34px;height:34px}.settings-open:hover svg{transform:rotate(9deg)}.playground-home>span{display:inline-flex;align-items:center}.step-track{position:relative!important;inset:auto!important;display:flex!important;flex-direction:row!important;justify-content:flex-start;gap:9px;width:100%!important;min-height:38px;flex-shrink:0;padding:4px 0 7px!important;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scroll-snap-type:x proximity}.step-track li{display:flex!important;flex-direction:row!important;flex:0 0 auto!important;gap:5px;align-items:center;scroll-snap-align:center;white-space:nowrap}.step-track li span{width:21px;height:21px;font-size:10px;flex-shrink:0}.step-track li small{font-size:10px!important;white-space:nowrap}.phase-body{margin-left:0!important}.ritual-top{min-height:38px;gap:6px}.ritual-top .icon-button{width:34px;min-width:34px;height:34px;min-height:34px;padding:0;font-size:18px}.ritual-top h2{font-size:17px;line-height:1.2}.is-playing .ritual-top .bbl-kicker{display:none}.beat-panel .doll-label{display:none}.kit-skill-button,.kit-launch-label,#finisher-launch{white-space:nowrap}.kit-skill-button{min-width:105px;flex-shrink:0}.kit-launch-icon{width:19px;min-width:19px}.kit-launch-label{font-size:12px}.beat-reaction{gap:5px}.hit-feedback{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#finisher-launch{font-size:10px;padding:5px;min-width:48px}.gesture-controls{flex-shrink:0}.fong-bubble{flex-shrink:0}.decor-tools label{min-width:0}#decor-empty{padding:12px;font-size:13px;line-height:1.6}
@media(max-width:360px){.skin-grid{gap:7px}.skin-card svg{height:75px}.shop-tools{grid-template-columns:minmax(0,1fr) 100px;gap:14px}.beat-reaction .hit-feedback{font-size:10px}.kit-skill-button{padding-inline:5px}}
.beat-telemetry .rhythm-rail{width:76px;min-width:76px;max-width:76px}.beat-telemetry .paper-condition{display:block;min-width:0;max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-left:0}.beat-telemetry .beat-stats{min-width:0}.beat-telemetry .rhythm-rail>span{min-width:0;white-space:nowrap}
.beat-telemetry .beat-stats small{white-space:nowrap}
/* Smaller utility controls and more breathing room between ritual stages. */
.is-playing .ritual-stage .ritual-top .icon-button{display:grid;place-items:center;flex:0 0 30px;width:30px;min-width:30px;height:30px;min-height:30px;padding:0;font-size:16px;line-height:1}
.is-playing .ritual-stage .step-track{column-gap:16px}
.is-playing .ritual-stage .step-track li{column-gap:6px}
.bbl-header .playground-home>span{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;line-height:0}
.bbl-header .playground-home>span svg{display:block}
@media(max-width:700px){.bbl-header .playground-home{gap:0}}
/* Prevent Safari long-press text selection and callouts from stealing gestures. */
body.is-playing,.is-playing .ritual-stage,.is-playing .ritual-stage *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.is-playing input,.is-playing textarea{-webkit-user-select:text;user-select:text}
.is-playing .ritual-stage ::selection{background:transparent}
.skin-chooser{border:2px solid #f7cb6c;box-shadow:0 4px 0 #8f633d,0 0 24px #efc46525;background:linear-gradient(130deg,#376553,#1c443b)}
.skin-chooser summary{display:list-item;min-height:48px;padding:5px 3px;color:#fff2c3;font-size:16px;font-weight:800;list-style-position:inside}.skin-chooser[open]{box-shadow:0 0 0 3px #eac26722}.skin-bonus{font-size:12px;font-weight:750;color:#825b22}.skin-durability{display:block;width:90%;height:9px;accent-color:#26845f}.skin-result-note{padding:12px;border:1px dashed #e4bb69;border-radius:12px;background:#294b42;color:#ffe7b1;font-size:14px;line-height:1.6}
.kit-art,.decor-icon,.friend-icon{scale:1.32}
[data-rarity="1"]{--rarity:#80d998}[data-rarity="2"]{--rarity:#83c5ff}[data-rarity="3"]{--rarity:#d3a0ff}[data-rarity="4"]{--rarity:#ffb66e}[data-rarity="5"]{--rarity:#ff8f98}
.kit-row[data-rarity],.decor-row[data-rarity],.friend-row[data-rarity]{border-inline-start:3px solid var(--rarity);padding-inline:9px;border-radius:10px}.rarity-badge{color:var(--rarity)!important;font-weight:700!important;letter-spacing:.2px}.rarity-legend{display:flex;flex-wrap:wrap;gap:7px 12px;margin:12px 0;color:#e3dfc5;font-size:10px;line-height:1.5}.rarity-legend span{color:var(--rarity);white-space:nowrap}.purchase-dialog[data-rarity]:not([data-rarity=""]){border-color:var(--rarity)}
body{padding-bottom:calc(154px + env(safe-area-inset-bottom))}body.is-playing{padding-bottom:0}.quick-dock{min-height:88px}.quick-dock #dock-kit{font-size:16.94px}.quick-dock .work-button{font-size:23.8px}.result-next button,.postcard-actions button{font-size:16.8px!important;line-height:1.4}.result-next{flex-wrap:wrap}.postcard-actions{flex-wrap:wrap}
#result .champion-icon{width:45px;height:50px;flex:0 0 45px}#result .champion-icon svg{width:100%;height:100%}.comic-trophy{overflow:visible}
.tiger-interaction-status{font-size:12px;line-height:1.5;margin:0;min-height:18px;text-align:center;color:#ffdfa3}.tiger-smear-paint{position:absolute;pointer-events:none;border-radius:50%;background:repeating-linear-gradient(12deg,#be596280 0 3px,#f59b9c99 4px 8px);transform-origin:left center;opacity:0;z-index:2}.tiger-tray.is-smearing #paper-tiger{filter:drop-shadow(0 0 9px #ffdda655)}.tiger-tray.is-smearing #pork-piece{filter:drop-shadow(0 2px 5px #ffddac)}#pork-piece{cursor:grab;-webkit-user-drag:none}#pork-piece:active{cursor:grabbing}#pork-piece svg,#paper-tiger svg{pointer-events:none}.tiger-smear-meter{width:min(240px,80%);height:8px;accent-color:#eea68e}.tiger-panel{isolation:isolate}
@media(max-width:700px){.quick-dock .work-button{font-size:22.4px}.shop-tools{grid-template-columns:minmax(0,1fr) 116px}.kit-row,.decor-row{flex-wrap:wrap}.kit-row>button,.decor-row>button{max-width:100%;white-space:normal}.kit-row>div,.decor-row>div{flex:1 1 110px}.kit-row>.kit-art,.decor-row>.decor-icon{flex-shrink:0}}
@media(max-height:450px) and (min-aspect-ratio:4/3){.tiger-interaction-status{position:absolute;right:0;top:24px;width:145px;font-size:11px}.tiger-smear-meter{position:absolute;right:0;top:65px;width:140px}.tiger-panel .tiger-tray{align-self:center}}
@media(prefers-reduced-motion:reduce){.skin-chooser{transition:none}.comic-trophy{animation:none}}
body{padding-bottom:calc(var(--dock-space,154px) + env(safe-area-inset-bottom))}body.is-playing{padding-bottom:0}
.purchase-dialog[data-pending=true] .purchase-art #purchase-art{scale:1.32}
#decor-quick-art{scale:1.1;transform-origin:center}
.skin-free-card{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:48px;padding:7px 10px;margin:0 0 12px;border:1px solid #88b7a0;border-radius:10px;background:#193f36;color:#f5e9c7;font-size:12px}.skin-free-card svg{width:30px;height:34px;flex-shrink:0}.skin-free-card[aria-pressed=true]{border:2px solid #ecca83}.skin-free-card .skin-bonus{color:#e8ce8b}.skin-free-card small{font-size:11px}.skin-free-card b{min-width:0}
.skin-chooser summary{display:flex;align-items:center;min-height:44px;padding:4px 3px;list-style:none;box-sizing:border-box}
.skin-chooser:not([open]){padding-block:6px}
.skin-chooser summary::-webkit-details-marker{display:none}
.skin-chooser summary::marker{content:''}
/* Finisher guide is untimed; the active scene keeps cues clear in a small arena. */
.finisher-guide-open{display:block;width:100%;text-align:left;color:#ffe1a0;font-size:13px;border:1px dashed #e4bf7b66;margin:8px 0 12px;border-radius:10px}.finisher-guide-dialog{max-width:520px}.finisher-guide-dialog #finisher-guide-status{padding:10px;border-radius:10px;background:#15372e;color:#ffe9b3}.finisher-guide-dialog #finisher-guide-note{font-size:12px;line-height:1.65}.finisher-guide-dialog .dialog-actions{display:flex;flex-wrap:wrap;gap:8px}.finisher-guide-dialog .dialog-actions button{flex:1 1 140px;min-height:46px}
#finisher-stage{display:grid;grid-template-columns:minmax(55px,.7fr) minmax(0,1.8fr);grid-template-rows:auto minmax(0,1fr) 44px;grid-template-areas:'heading heading' 'actor cue' 'actions actions';gap:3px 6px;padding:6px;align-items:center;justify-content:normal;overflow:hidden}.finisher-heading{grid-area:heading;display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0}.finisher-heading h3{font-size:14px!important;line-height:1.2;text-align:left}.finisher-heading output{font-size:16px;font-weight:700;white-space:nowrap;min-width:43px;text-align:right;font-variant-numeric:tabular-nums}.finisher-cue{grid-area:cue;min-width:0}.finisher-cue>span{font-size:10px;line-height:1.2;display:block;color:#fff1ba}.finisher-cue p{font-size:12px!important;line-height:1.2!important;margin:3px 0!important}.finisher-cue progress{display:block;width:100%;height:5px;accent-color:#ffdc7b}#finisher-stage .ultimate-paper{grid-area:actor;justify-content:center;gap:3px;font-size:24px}#finisher-stage .ultimate-paper strong{font-size:24px;padding:2px 4px}#finisher-stage .finisher-actions{grid-area:actions;width:100%;justify-content:center;gap:6px}#finisher-stage .finisher-actions button{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:44px;flex:1;padding:3px;color:#523447;font-size:18px;line-height:1.1}#finisher-stage .finisher-actions small{font-size:10px;line-height:1.2}#finisher-stage .finisher-actions button:disabled{opacity:.55}.finisher-trail{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:12}.finisher-trail path{fill:none;stroke:#fff4b4;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#ritual-loot-dialog[data-auspicious=true] #loot-title{font-size:20px}
#ritual-loot-dialog[data-auspicious=true] .loot-card h3{font-size:15.2px}
#ritual-loot-dialog[data-auspicious=true] .loot-card p{font-size:10.4px}
#ritual-loot-dialog[data-auspicious=true] #loot-close{font-size:15.6px}
#ritual-loot-dialog[data-auspicious=true] .auspicious-glyph{display:block;translate:0 -6px}
@media(max-height:500px) and (min-aspect-ratio:4/3){#ritual-loot-dialog[data-auspicious=true] #loot-title{font-size:17.6px}}
.finisher-guide-dialog .dialog-actions{position:sticky;bottom:-26px;z-index:2;padding:10px 0 4px;background:#25443e;border-top:1px solid #d5bc7755}.finisher-guide-dialog .dialog-actions button{flex:1 1 100px;min-width:0;padding:8px 6px;font-size:12px;line-height:1.35}
/* Comedy lives in clipped, pointer-transparent layers; targets stay still. */
.ritual-comedy-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:3;isolation:isolate}.ritual-comic-bit{position:absolute;display:block;pointer-events:none;line-height:1;transform:translate(-50%,-50%);font-size:21px;filter:drop-shadow(0 2px 1px #16352e33)}.ritual-comic-spark{font-size:18px}.ritual-comic-bowl{font-size:42px}.ritual-comic-food{font-size:43px}.ritual-comic-paper{width:70px;height:80px;transform-origin:center}.ritual-comic-paper svg{width:100%;height:100%;display:block}.ritual-comic-horse{font-size:54px}.ritual-comic-horse i{position:absolute;font-style:normal;font-size:24px;left:8px;top:5px;rotate:-12deg}.tiger-tray{isolation:isolate}.tiger-tray>#pork-piece,.tiger-tray>#blood-bowl{z-index:5}.purify-scene .ritual-prop{z-index:5}.purify-scene .ritual-prop.is-dragging{z-index:7;filter:drop-shadow(0 0 8px #ffdd8d)}#pork-piece svg,#burn-paper svg,.ritual-paper-tiger svg{transform-origin:center}.purify-scene #ritual-grains{z-index:3;pointer-events:none}.purify-scene #ritual-grains i{display:block;width:15px;height:19px;border-radius:55%;background:#fff1bd;border:1px solid #cb9b59;color:transparent;line-height:1;font-size:0;box-shadow:0 2px 0 #6e51332b}.purify-scene #ritual-grains i.comic-bean{width:19px;height:17px;background:#d69a73;border-color:#8e5d49}.purify-scene #ritual-grains i:after{content:'•ᴗ•';display:grid;place-items:center;position:absolute;inset:0;font:10px/1 system-ui,sans-serif;color:#6b4b41}.ritual-fire{transform-origin:center bottom;pointer-events:none}.ritual-paper-tiger{transform-origin:50% 85%}
@media(max-height:500px){.ritual-comic-paper{width:48px;height:58px}.ritual-comic-horse{font-size:40px}.ritual-comic-horse i{font-size:18px}.ritual-comic-bowl,.ritual-comic-food{font-size:32px}}

/* Readiness glows instead of rotating the live drop controls. */
.ritual-prop:not(:disabled){animation:ritual-ready-glow 1.8s ease-in-out infinite}
@keyframes ritual-ready-glow{50%{box-shadow:0 0 0 5px #f4cb6b66,0 0 18px #ffdc7466}}
@media(prefers-reduced-motion:reduce){.ritual-prop:not(:disabled){animation:none}}

.ritual-comedy-layer[data-paused=true] *{animation-play-state:paused!important}

/* The daily till laughs so hard its drawer pops out. */
.daily-bonus-art{overflow:visible;pointer-events:none}
/* Both popup illustrations are 85% of their previous 1.2 scale. */
#ritual-loot-dialog .loot-icon>.comic-trophy,#ritual-loot-dialog .loot-icon>.daily-bonus-art{scale:1.02}
.daily-till-drawer,.daily-till-coin{transform-box:fill-box;transform-origin:center;animation:daily-drawer-pop 2.8s ease-in-out infinite}
.daily-till-coin{animation-name:daily-coin-hop;animation-delay:.12s}.daily-till-coin-two{animation-delay:.3s}
@keyframes daily-drawer-pop{0%,65%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(4px) rotate(-3deg)}38%{transform:translateY(-1px) rotate(2deg)}50%{transform:translateY(2px) rotate(-1deg)}}
@keyframes daily-coin-hop{0%,65%,100%{transform:translateY(0) rotate(-8deg)}25%{transform:translateY(-4px) rotate(12deg)}45%{transform:translateY(1px) rotate(-10deg)}}
@media(prefers-reduced-motion:reduce){.daily-till-drawer,.daily-till-coin{animation:none}}

/* A little comic complaints desk: the worry gets filed, not the player. */
#phase-worry{flex-direction:column;gap:10px;min-height:0}
#phase-worry .worry-report{position:relative;display:grid;gap:10px;width:min(100%,370px);max-height:100%;min-height:0;flex:0 1 auto;padding:14px;overflow:auto;overscroll-behavior:contain;transform:none;border:2px solid #c28a71;border-radius:20px;background:linear-gradient(145deg,#fff1ca,#f7d9bd);color:#63464e;box-shadow:4px 5px 0 #12332e66,inset 0 0 0 4px #fff7df}
.report-header{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:2px dashed #d7a38e;padding-bottom:7px;text-align:left}
.report-header b{font:500 20px/1.2 Iansui,'Fredoka',system-ui,sans-serif;color:#80516d}.report-header>span{flex-shrink:0;padding:3px 5px;background:#dce5c8;border:1px solid #a7b59d;border-radius:6px;font-size:10px;line-height:1.2;letter-spacing:1px}
.report-scene{position:relative;display:flex;justify-content:center;align-items:flex-end;min-height:110px;border-radius:13px;background:radial-gradient(ellipse at 45% 72%,#d8e6c8 0 38%,transparent 39%);pointer-events:none}
.report-doll{width:112px;height:124px;transform-origin:50% 90%;animation:report-wriggle 2.8s ease-in-out infinite}.report-doll svg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(0 3px 0 #b58f7855)}
.report-speech{position:absolute;right:0;top:0;max-width:47%;padding:6px 8px;border:2px solid #997184;border-radius:13px 13px 13px 3px;background:#fff9e8;color:#73465f;font-size:12px;line-height:1.4;font-weight:650;box-shadow:2px 2px 0 #cfb09a66;text-align:left}
.report-star{position:absolute;color:#ce8b6e;font-size:21px;font-style:normal}.report-star.star-one{left:12%;top:24%;rotate:-15deg}.report-star.star-two{right:17%;bottom:7%;font-size:15px;color:#a482ad}.report-pencil{position:absolute;left:19%;bottom:8%;font-size:35px;rotate:-22deg;color:#9c6c8d}
.report-worry-box{padding:9px 10px;border:1px solid #d9b190;border-radius:12px;background:#fffae9;text-align:left;min-width:0}
#phase-worry .report-worry-box small{display:block;font-size:11px;line-height:1.3;color:#966757;margin-bottom:5px}
#phase-worry #named-worry{display:block;-webkit-line-clamp:unset;margin:0;font:500 20px/1.4 Iansui,'Fredoka',system-ui,sans-serif;color:#63464e;overflow:visible;overflow-wrap:anywhere}
.report-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left}
#phase-worry .report-footer small{font-size:11px;line-height:1.4}.report-footer>span{flex-shrink:0;border:2px solid #b65b6e;border-radius:6px;padding:3px 5px;font-size:12px;font-weight:750;line-height:1.2;color:#b65b6e;visibility:hidden;opacity:0;rotate:-8deg}
.is-reported .report-footer>span{visibility:visible;opacity:1;animation:report-filed .4s cubic-bezier(.2,1.4,.4,1) both}.is-reported .report-doll{animation:none;rotate:5deg}
#phase-worry .report-confirm{width:min(100%,310px);display:flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;max-width:100%;min-height:48px;padding:6px 16px;border:2px solid #ffecb0;background:#f2cf88;color:#4c4548;box-shadow:0 4px 0 #966759;font-size:15px;line-height:1.3;border-radius:13px}
.report-stamp-icon{width:32px;height:32px;flex:0 0 32px}.report-confirm:active .report-stamp-icon{translate:0 3px}.report-confirm:disabled{opacity:1;background:#d1dfb5}
#phase-worry .report-auto-note{flex-shrink:0;font-size:10px;line-height:1.4;text-align:center;color:#e5e9cc}
@keyframes report-wriggle{0%,60%,100%{transform:rotate(-3deg) translateY(0)}25%{transform:rotate(4deg) translateY(-2px)}40%{transform:rotate(-4deg) translateY(1px)}}
@keyframes report-filed{from{transform:scale(1.4);opacity:0}to{transform:scale(1);opacity:1}}
@media(max-height:650px){#phase-worry{gap:7px}#phase-worry .worry-report{padding:10px;gap:7px}.report-header{padding-bottom:5px}.report-header b{font-size:17px}.report-scene{min-height:68px}.report-doll{width:76px;height:80px}.report-speech{font-size:11px;padding:4px 6px}.report-pencil{font-size:27px}#phase-worry #named-worry{font-size:16px}.report-worry-box{padding:7px 8px}#phase-worry .report-confirm{min-height:44px}}
@media(max-height:500px) and (min-aspect-ratio:4/3){#phase-worry{display:grid;grid-template-columns:minmax(0,1fr) minmax(115px,150px);grid-template-rows:minmax(0,1fr) auto;align-items:center;gap:8px 14px}#phase-worry .worry-report{grid-row:1/3;width:100%;height:100%;grid-template-columns:35% minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:5px 9px;padding:8px}.report-header{grid-column:1/-1}.report-scene{grid-column:1;grid-row:2/4;align-self:center;min-height:90px}.report-doll{width:90px;height:100px}.report-speech{top:0;right:auto;left:0;max-width:100%;font-size:10px;padding:3px 5px;translate:0 -4px}.report-star,.report-pencil{display:none}.report-worry-box{grid-column:2;grid-row:2;align-self:center}.report-footer{grid-column:2;grid-row:3}#phase-worry .report-footer small{font-size:10px}#phase-worry .report-confirm{align-self:end;font-size:13px;padding:6px 8px}.report-stamp-icon{width:27px;height:27px;flex-basis:27px}#phase-worry .report-auto-note{align-self:start}}
.ritual-stage[inert] .report-doll,.ritual-stage[inert] .report-footer>span{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.report-doll,.is-reported .report-footer>span{animation:none}.report-confirm:active .report-stamp-icon{translate:none}}

/* Sleepy incense buddies, a laughing burner, and a microphone with manners. */
#phase-incense{display:grid;grid-template-rows:auto minmax(120px,1fr) auto auto;justify-items:center;align-items:center;align-content:stretch;gap:8px;padding:0;min-height:0}
#phase-incense>.phase-instruction{display:grid;place-items:center;width:min(100%,350px);height:48px;font-size:12px;line-height:1.4;padding:5px 8px;border-radius:13px;background:#fff0cc;color:#70536b;border:2px solid #c39b87}
#phase-incense .incense-zone{isolation:isolate;width:270px;max-width:100%;height:230px;max-height:100%;min-height:120px;gap:20px;padding-bottom:58px;background:radial-gradient(ellipse at 50% 67%,#d0dfba55 0 46%,transparent 47%);border-radius:24px}
#phase-incense .incense-stick{width:56px;height:130px;flex:0 0 56px;--incense-length:104px;z-index:2}
#phase-incense .incense-stick i{width:7px;box-shadow:2px 0 0 #79564266}
#phase-incense .incense-stick b{width:48px;height:17px;bottom:18px;display:grid;place-items:center;border:1px solid #bb9b76;background:#fff0c4;color:#805e56;font:600 10px/1 system-ui,sans-serif;z-index:3;border-radius:7px}
#phase-incense .incense-stick.is-lit b{background:#e4edb9;border-color:#acbf89;color:#52745e}
.incense-buddy{position:absolute;left:50%;bottom:64px;translate:-50% 0;width:44px;height:42px;pointer-events:none;filter:drop-shadow(0 2px 0 #102f3044)}
.incense-buddy svg{display:block;width:100%;height:100%;overflow:visible;transform-origin:50% 75%}
.incense-awake,.incense-content{display:none}.incense-stick.is-lit .incense-sleepy{display:none}.incense-stick.is-lit .incense-awake{display:inline}.is-blown .incense-stick.is-lit .incense-awake{display:none}.is-blown .incense-stick.is-lit .incense-content{display:inline}
.incense-flame-friend{position:absolute;left:50%;bottom:calc(var(--incense-length) + 7px);translate:-50% 0;width:28px;height:32px;display:none;pointer-events:none;filter:drop-shadow(0 0 6px #ffd78b88)}
.incense-flame-friend svg{display:block;width:100%;height:100%;overflow:visible;transform-origin:center bottom;animation:incense-friend-flutter .7s ease-in-out infinite alternate}
#phase-incense .incense-stick.is-lit:after{display:none}.incense-stick.is-lit .incense-flame-friend{display:block}.is-blown .incense-stick .incense-flame-friend{display:none}
#phase-incense .incense-bowl{width:180px;height:80px;border:0;background:none;z-index:3;pointer-events:none}.incense-bowl svg{display:block;width:100%;height:100%;overflow:visible;transform-origin:50% 80%}.bowl-blown{display:none}.is-blown .bowl-normal{display:none}.is-blown .bowl-blown{display:inline}
#incense-progress{position:absolute;top:0;right:0;min-width:39px;padding:4px 6px;border:1px solid #d5bd83;border-radius:10px;background:#254d45;color:#ffe2a6;font-size:12px;line-height:1.3;pointer-events:none;z-index:6}
.incense-comic-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:5;border-radius:24px}.incense-comic-spark{position:absolute;font-size:21px;line-height:1;pointer-events:none;color:#ffe1a0}.incense-comic-match{display:none;position:absolute;width:38px;height:48px;translate:-45% -45%;z-index:7;pointer-events:none;filter:drop-shadow(0 2px 1px #112f3b55)}.incense-comic-match svg{width:100%;height:100%}.is-kindling .incense-comic-match{display:block}
#phase-incense .phase-actions{display:flex;flex-direction:row;gap:10px;width:min(100%,350px);max-width:none}
#phase-incense .phase-actions button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1 1 0;min-width:0;min-height:56px;height:56px;padding:6px 8px;border:2px solid #c5d9b3;border-radius:13px;background:#c8dfbf;color:#3e615b;box-shadow:0 3px 0 #52745e;font-size:12px;line-height:1.3}
#phase-incense #microphone{background:#e1c5e5;border-color:#f1d8ec;color:#6f5177;box-shadow:0 3px 0 #826380}
#phase-incense .phase-actions button:disabled{opacity:.6;cursor:default;box-shadow:none}
#phase-incense #blow:not(:disabled){background:#ffe3a3;color:#745347;border-color:#fff0c9;box-shadow:0 3px 0 #a17b57,0 0 14px #f4d48044}
.incense-button-icon{display:block;width:35px;height:32px;flex:0 0 35px;pointer-events:none}.incense-button-icon svg{display:block;width:100%;height:100%;overflow:visible}.incense-button-label{min-width:0;text-align:left;overflow-wrap:anywhere}
#phase-incense[data-mic=requesting] .incense-button-icon{animation:incense-mic-wake .6s ease-in-out infinite alternate}.mic-music{opacity:0}#phase-incense[data-mic=listening] .mic-music{opacity:1;animation:incense-mic-wake .7s ease-in-out infinite alternate}#phase-incense[data-mic=listening] .mic-cheeks{opacity:calc(.4 + var(--mic-level,0)*.6)}#phase-incense[data-mic=listening] #microphone{border-color:#fff4be;box-shadow:0 3px 0 #826380,0 0 calc(3px + var(--mic-level,0)*15px) #ffe6a788}
#phase-incense #mic-note{display:grid;place-items:center;width:min(100%,350px);height:50px;min-height:50px;margin:0;padding:5px 8px;border:1px solid #c4d1a755;border-radius:10px;background:#254640;color:#f3e3c0;font-size:11px;line-height:1.4;text-align:center}
@keyframes incense-friend-flutter{from{transform:rotate(-6deg) scale(.94,1)}to{transform:rotate(7deg) scale(1.05,.94)}}
@keyframes incense-mic-wake{from{transform:rotate(-5deg) translateY(1px)}to{transform:rotate(5deg) translateY(-2px)}}
@media(max-height:650px){#phase-incense{gap:6px}#phase-incense>.phase-instruction{height:42px;font-size:11px}#phase-incense .incense-zone{height:180px;padding-bottom:42px;gap:16px}#phase-incense .incense-stick{height:104px;--incense-length:76px;width:50px;flex-basis:50px}.incense-buddy{bottom:47px;width:37px;height:35px}.incense-flame-friend{width:24px;height:27px}#phase-incense .incense-bowl{height:63px;width:165px}#phase-incense .incense-stick b{bottom:14px;width:43px;height:16px}#phase-incense .incense-smoke{height:29px}#phase-incense .phase-actions button{height:50px;min-height:50px}#phase-incense #mic-note{height:46px;min-height:46px;font-size:10px}}
@media(max-height:500px) and (min-aspect-ratio:4/3){#phase-incense{grid-template-columns:minmax(150px,1fr) minmax(150px,220px);grid-template-rows:38px minmax(90px,1fr) 44px;gap:6px 18px}#phase-incense>.phase-instruction{grid-column:1/-1;width:100%;height:38px}#phase-incense .incense-zone{grid-column:1;grid-row:2/4;height:155px;min-height:100px;max-height:100%;width:250px;padding-bottom:40px}#phase-incense .phase-actions{grid-column:2;grid-row:2;flex-direction:column;gap:6px}#phase-incense .phase-actions button{height:42px;min-height:42px;flex:0 0 auto}.incense-button-icon{width:29px;height:27px;flex-basis:29px}#phase-incense #mic-note{grid-column:2;grid-row:3;height:44px;min-height:44px;padding:3px 6px}#phase-incense .incense-bowl{height:57px;width:160px}}
.ritual-stage[inert] .incense-flame-friend svg,.ritual-stage[inert] .incense-smoke *,.ritual-stage[inert] .incense-button-icon,.ritual-stage[inert] .mic-music{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.incense-flame-friend svg,#phase-incense .incense-button-icon,.mic-music{animation:none!important}.incense-comic-match{display:none!important}}

/* Selection keeps the same geometry, including unowned papers and long names. */
.skin-chooser summary{height:48px;min-height:48px;line-height:1.25}
.skin-choice-copy{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-width:0}
.skin-grid .skin-card{display:grid;grid-template-rows:75px 2.8em 1.5em 12px 3em;justify-items:center;align-items:center;gap:5px;border-width:2px}
.skin-card b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}
.skin-card small{min-height:3em;display:grid;place-items:center;width:100%}
.skin-durability.is-unowned{visibility:hidden}.skin-free-card{border-width:2px}
.skin-free-card{display:grid;grid-template-columns:30px minmax(0,1fr) auto;grid-template-rows:1fr auto;height:72px;min-height:72px;gap:2px 8px;padding:6px 10px;text-align:left}
.skin-free-card svg{grid-column:1;grid-row:1/3}.skin-free-card b{grid-column:2;grid-row:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.3}
.skin-free-card .skin-bonus{grid-column:3;grid-row:1;white-space:nowrap}.skin-free-card small{grid-column:2/4;grid-row:2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5;min-height:16.5px}
/* Scale the visual controls, retaining touch input fonts of at least 16px. */
.shop-tools .filter-controls{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 116px;gap:14px;width:100%;transform:scale(.7);transform-origin:left top;margin-bottom:-13.2px}
.filter-controls label{min-width:0}.filter-controls input,.filter-controls select{min-height:44px}
#commission-list [data-accept]{display:block;width:100%;margin:10px 0 0}
/* Equipped titles live below the Master, outside the hidden decorative art. */
.master-portrait{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}
.fong-intro>.master-portrait{flex:0 0 110px;align-self:flex-end}
.master-portrait .fong-art{flex:none;align-self:center}
.master-equipped-title{display:block;max-width:110px;padding:4px 6px;border:2px solid #ffe6a0;border-radius:9px;background:linear-gradient(135deg,#fff0b1,#e8b968);box-shadow:0 2px 0 #8c684c,0 0 12px #f5ce7544;color:#6b4e4e;text-align:center;font-size:12px;line-height:1.35;font-weight:750;overflow-wrap:anywhere;animation:report-filed .35s ease-out both}
.master-portrait-play{flex:0 0 38px;gap:3px}.master-portrait-play:has(.master-equipped-title:not([hidden])){flex-basis:76px}
.master-portrait-play .master-equipped-title{max-width:76px;font-size:10px;padding:3px 4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.is-playing .play-panel .fong-bubble:has(.master-equipped-title:not([hidden])){height:76px;min-height:76px;flex-basis:76px;padding:5px 7px;overflow:hidden}
/* Keep hit captions and the charge dial away from the character's head. */
.beat-arena .gesture-charge{top:auto;bottom:10px;right:-34px}
.is-playing .beat-panel .hit-zone{inset:24px auto 8px 50%;height:calc(100% - 32px)}
.beat-arena .striking-weapon{top:35%;right:-40px}
.is-playing .beat-panel{min-height:0}
.is-playing .beat-panel .gesture-controls{min-height:50px;flex-shrink:0}
@media(max-height:650px) and (max-aspect-ratio:4/3){.is-playing .beat-panel .beat-arena{min-height:96px}}
.beat-arena .impact-word{left:auto;right:2px;top:auto;bottom:4px;translate:none;max-width:48%;overflow:hidden;text-overflow:ellipsis;font-size:14px;animation:impact-aside .65s ease-out forwards}
@keyframes impact-aside{0%{transform:translateY(6px) scale(.6);opacity:0}25%{transform:translateY(0) scale(1);opacity:1}75%{opacity:1}100%{transform:translateY(-12px);opacity:0}}
.beat-arena .pig-helmet{left:50%;top:0;translate:-50% 0;max-width:46px;line-height:1}
/* A single input performs the closing offerings together. */
#phase-blessing{flex-direction:column;gap:10px;min-height:0}
#phase-blessing .ritual-offering{pointer-events:none;cursor:default;animation:none!important;box-shadow:none;display:grid;place-items:center}
#phase-blessing .purify-scene{min-height:130px}
#purify-next{max-width:100%;min-height:48px}
/* Thick, shaded blocks follow one continuous throw / bounce / settle path. */
.blocks-stage{perspective:700px;min-height:170px;gap:24px;overflow:visible}
.blocks-stage>#block-one,.blocks-stage>#block-two{position:relative;filter:none;transform-style:preserve-3d;isolation:isolate}
.block-solid{position:relative;z-index:1;transform:rotateX(14deg) rotateY(0deg) rotateZ(-8deg);transform-style:preserve-3d;backface-visibility:visible}
#block-two .block-solid{transform:rotateX(14deg) rotateY(0deg) rotateZ(8deg)}
.block-ground-shadow{position:absolute;left:10%;right:10%;bottom:19%;height:16%;border-radius:50%;background:#112c2e66;filter:blur(4px);transform:scale(.9);opacity:.6}
.block-face-label{display:block;text-align:center;color:#f9dfa7;font-size:12px;line-height:1.3;min-height:16px}
.blocks-stage.is-rolling>span{animation:none}
.blocks-stage.is-rolling .block-solid{animation:blocks-throw-3d 1.2s cubic-bezier(.3,.55,.4,1) both}
.blocks-stage.is-rolling #block-two .block-solid{animation-name:blocks-throw-3d-right}
.blocks-stage.is-rolling .block-ground-shadow{animation:blocks-shadow 1.2s ease-in-out both}
.blocks-stage.is-rolling .block-face-label{visibility:hidden}
@keyframes blocks-throw-3d{0%{transform:translate3d(0,0,0) rotateX(14deg) rotateY(0deg) rotateZ(-8deg)}25%{transform:translate3d(-16px,-35px,35px) rotateX(150deg) rotateY(90deg) rotateZ(12deg)}50%{transform:translate3d(-9px,-48px,55px) rotateX(300deg) rotateY(230deg) rotateZ(-18deg)}73%{transform:translate3d(0,2px,0) rotateX(374deg) rotateY(360deg) rotateZ(-8deg)}86%{transform:translate3d(0,-9px,10px) rotateX(360deg) rotateY(350deg) rotateZ(-2deg)}100%{transform:translate3d(0,0,0) rotateX(374deg) rotateY(360deg) rotateZ(-8deg)}}
@keyframes blocks-throw-3d-right{0%{transform:translate3d(0,0,0) rotateX(14deg) rotateY(0deg) rotateZ(8deg)}25%{transform:translate3d(18px,-39px,40px) rotateX(-120deg) rotateY(-95deg) rotateZ(-15deg)}50%{transform:translate3d(10px,-43px,50px) rotateX(-280deg) rotateY(-235deg) rotateZ(20deg)}73%{transform:translate3d(0,2px,0) rotateX(-346deg) rotateY(-360deg) rotateZ(8deg)}86%{transform:translate3d(0,-8px,8px) rotateX(-360deg) rotateY(-350deg) rotateZ(1deg)}100%{transform:translate3d(0,0,0) rotateX(-346deg) rotateY(-360deg) rotateZ(8deg)}}
@keyframes blocks-shadow{0%,100%{transform:scale(.9);opacity:.6}40%{transform:scale(.45);opacity:.2}74%{transform:scale(1);opacity:.7}86%{transform:scale(.75);opacity:.45}}
#throw-blocks[data-sacred=true]{font-size:14.4px}
#ritual-loot-dialog[data-auspicious=true] #loot-close{font-size:18.72px}
.ritual-stage[inert] .block-solid,.ritual-stage[inert] .block-ground-shadow{animation-play-state:paused!important}
@media(max-height:500px) and (min-aspect-ratio:4/3){#phase-blessing{flex-direction:row;flex-wrap:wrap;gap:6px 14px}#phase-blessing>.phase-instruction{max-width:none;width:100%;flex:0 0 100%}#phase-blessing .purify-scene{min-height:110px;height:130px;max-width:60%}#purify-next{width:34%;font-size:12px}.blocks-stage{min-height:95px;flex:1;gap:18px}.blocks-stage>span{max-width:110px}.block-face-label{font-size:10px}.is-playing .play-panel .fong-bubble:has(.master-equipped-title:not([hidden])){height:64px;min-height:64px;flex-basis:64px}.master-portrait-play .master-equipped-title{font-size:10px;line-height:1.1;padding:2px 3px}}
@media(prefers-reduced-motion:reduce){.master-equipped-title,.blocks-stage.is-rolling .block-solid,.blocks-stage.is-rolling .block-ground-shadow{animation:none!important}.beat-arena .impact-word{display:none}}
