/* Static scoring guide replaces the required-gesture countdown. */
#phase-beat .freestyle-guide{position:relative;display:flex;flex-direction:column;justify-content:center;flex:0 0 48px;min-width:0;height:48px;padding:4px 8px;border:1px solid #b1cfa7;border-radius:10px;background:#24483d;color:#fff1c4;pointer-events:none;overflow:hidden}
.freestyle-guide b{font-size:13px;line-height:1.2}.freestyle-guide small{font-size:10px;line-height:1.3;white-space:normal}
#pause-overlay .pause-card button{font-size:15px}
#ritual-loot-dialog[data-auspicious=true] .loot-card p{font-size:12.48px}
/* Full-width compact inputs preserve iPhone's 16px focus font and give search the spare width. */
.shop-tools .filter-controls{width:100%;transform:none;grid-template-columns:minmax(0,1fr) 92px;gap:12px;margin-bottom:0}
.shop-tools .filter-controls input,.shop-tools .filter-controls select{min-height:32px;height:32px;padding:4px 8px;font-size:16px!important;line-height:1.3}
.shop-tools .filter-controls select{padding-right:24px}
@media(max-height:500px) and (min-aspect-ratio:4/3){
 #phase-beat{grid-template-rows:48px minmax(0,1fr) 46px;grid-template-areas:'telemetry cue' 'arena hud' 'controls feedback'}
 #phase-beat .freestyle-guide{grid-area:cue;align-self:start;min-width:0}
 #phase-beat .personality-hud{min-height:0;height:100%}
 #phase-beat .event-banner{height:68px;min-height:68px}
}
.purify-scene .ritual-fire{width:70px;height:80px;font-size:0}
.purify-scene .ritual-fire svg,.purify-scene #scatter-grains svg,.purify-scene #bless svg{display:block;width:100%;height:100%;overflow:visible}
.ritual-comic-horse{display:block;width:90px;height:76px}.ritual-comic-horse>svg{display:block;width:100%;height:100%}
.welcome-grains{transform-box:fill-box;transform-origin:center;animation:welcome-grain-cheer 1.8s ease-in-out infinite}
@keyframes welcome-grain-cheer{0%,60%,100%{transform:none}75%{transform:translateY(-3px) rotate(-4deg)}87%{transform:translateY(1px) rotate(3deg)}}
@media(prefers-reduced-motion:reduce){.welcome-grains{animation:none}}
#open-journey{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;margin:2px 0 18px;padding:10px 12px;border:2px solid #f3d494;border-radius:12px;background:linear-gradient(135deg,#d7e7be,#accfb8);color:#264b3c;font-size:14px;font-weight:800;line-height:1.4;box-shadow:0 3px 0 #6c8e73}
#open-journey:hover{background:linear-gradient(135deg,#e5f0d0,#c1dfc8)}#open-journey:active{transform:translateY(2px);box-shadow:0 1px 0 #6c8e73}
#commission-title{scroll-margin-top:80px}#commission-title:focus{outline:none}
/* In landscape the offering props have separate cells, keeping the tiger's face clear. */
@media(max-height:500px) and (min-aspect-ratio:4/3){
 #phase-blessing .purify-scene{display:grid;grid-template-columns:72px minmax(0,1fr) 72px;grid-template-rows:1fr 1fr;gap:4px 10px;align-items:center;justify-items:center}
 #phase-blessing .ritual-paper-tiger{position:relative;inset:auto;grid-column:2;grid-row:1/3;width:100%;height:100%}
 #phase-blessing #burn-paper{position:relative;inset:auto;grid-column:1;grid-row:1}
 #phase-blessing .ritual-fire{position:relative;inset:auto;grid-column:1;grid-row:2;width:48px;height:54px}
 #phase-blessing #scatter-grains{position:relative;inset:auto;grid-column:3;grid-row:1}
 #phase-blessing #bless{position:relative;inset:auto;grid-column:3;grid-row:2}
}
