/* Permit normal panel scrolling, but never touch-driven page zoom in the game. */
html, body, .game, .riot-intro { touch-action: pan-x pan-y; }
.game *, .riot-intro * { touch-action: pan-x pan-y; }
button, a, input, select, summary { touch-action: pan-x pan-y; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
.game { min-height: 100dvh; }
.game .symbol, .game.disco .symbol { height: var(--fit-symbol-height, 76px); }
@media (max-width:650px) {
 .game { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
 .game header { height:44px; padding:0 12px; gap:6px; }
 .game main { padding:2px 10px 8px; }
 .game .title-wrap, .game.disco .title-wrap { margin:2px auto 6px; }
 .game h1 { font-size:46px; margin:5px 0 6px; }
 .game .eyebrow { display:none; }
 .game .title-sticker { padding:3px 8px; }
 .game .play-stage { padding-top:96px; }
 .game .wolf, .game.disco .wolf { width:74px; height:96px; top:0; }
 .game .human-one, .game.disco .human-one { width:58px; height:96px; top:0; right:2px; }
 .game .human-two, .game.disco .human-two { width:58px; height:96px; top:0; right:57px; }
 .game .machine-top { height:24px; }
 .game .ticker { min-height:28px; padding:4px 6px; }
 .game .feature-bar { margin:8px auto 0; gap:8px; }
 .game .bonus-button, .game .chance-button { min-height:44px; padding:6px 9px; }
 .game .controls { margin-top:12px; padding:8px; gap:6px; }
 .game .spin-button { width:60px; height:60px; margin:-8px 0; }
 .game #auto.auto-button { margin-top:4px; min-height:36px; padding:4px 10px; }
 .game .bottom-line { margin:8px 2px 0; }
 .game .symbol { font-size:calc(var(--fit-symbol-height, 54px) * .7); }
 .game .symbol.w { font-size:calc(var(--fit-symbol-height, 54px) * .85); }
 .game.disco .play-stage { padding-top:66px; }
 .game.disco .human-one, .game.disco .human-two { height:66px; width:40px; }
 .game.disco .wolf { height:66px; width:51px; }
 .game .disco-hud { min-height:40px; padding:4px 8px; }
 .game .disco-hud strong { font-size:18px; }
 .game .party-progress { padding:4px 8px; }
}
@media (max-height:600px) {
 .game header { height:40px; }
 .game .title-wrap, .game.disco .title-wrap { margin:0 auto 8px; }
 .game h1 { font-size:38px; margin:3px 0; }
 .game .eyebrow, .game .title-sticker { display:none; }
 .game .feature-bar { margin:7px auto; }
 .game .controls { margin-top:10px; }
}
@media (max-width:650px) and (max-height:600px) {
 .game .play-stage, .game.disco .play-stage { padding-top:52px; }
 .game .wolf, .game.disco .wolf { height:52px; width:40px; }
 .game .human-one, .game .human-two, .game.disco .human-one, .game.disco .human-two { height:52px; width:32px; }
}

/* Keep both dancers inside the desktop stage rather than past its right edge. */
@media (min-width:651px) {
 .game .play-stage { max-width:1092px; }
 .game .machine { width:min(620px,calc(100% - 260px)); }
 .game .wolf, .game.disco .wolf { left:-8px; bottom:0; top:auto; width:180px; height:234px; }
 .game .human-one, .game.disco .human-one { right:48px; bottom:0; top:auto; width:100px; height:165px; }
 .game .human-two, .game.disco .human-two { display:block; right:-12px; bottom:0; top:auto; width:100px; height:165px; }
 .game .controls { gap:14px; padding:13px 18px; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 90px minmax(0,1fr) 100px; }
 .game .controls>* { min-width:0; }
 .game .metric strong { font-size:clamp(15px,1.65vw,23px); overflow-wrap:anywhere; }
 .game .bottom-line { flex-wrap:wrap; }
}
@media (min-width:1000px) {
 .game .machine { width:min(700px,calc(100% - 360px)); }
 .game .wolf, .game.disco .wolf { width:240px; height:312px; }
 .game .human-one, .game.disco .human-one { right:70px; width:125px; height:206px; }
 .game .human-two, .game.disco .human-two { right:-6px; width:125px; height:206px; }
}
@media (min-width:651px) and (min-height:601px) and (max-height:850px) {
 .game header { height:52px; }
 .game .title-wrap, .game.disco .title-wrap { margin:2px auto 14px; }
 .game h1 { font-size:64px; margin:6px 0; }
 .game .title-sticker { font-size:9px; padding:3px 9px; }
}
@media (min-width:651px) and (max-height:600px) {
 .game main { padding-bottom:8px; }
 .game .controls { padding:8px 16px; }
 .game .spin-button { height:66px; width:66px; margin:-8px 0; }
 .game .spin-glyph { font-size:44px; }
 .game .bottom-line { margin-top:9px; }
 .game .wolf, .game.disco .wolf { width:132px; height:172px; }
 .game .human-one, .game .human-two, .game.disco .human-one, .game.disco .human-two { width:85px; height:140px; }
}

/* During a bonus, its status replaces the inactive buy controls in the same
   reserved space. It cannot cover sound/speed/info or reduce the reel height. */
.game .feature-bar{position:relative}
.game:is(.lunar,.blood,.disco) .feature-bar>button{visibility:hidden}
.game .feature-bar #bonus-meter{
 position:absolute;inset:0;transform:none;margin:0;min-width:0;
 padding:6px 12px;gap:8px;border-radius:8px;white-space:normal;
 grid-template-columns:minmax(0,.9fr) minmax(0,1.5fr) minmax(0,.9fr);
 align-items:center;box-shadow:0 0 18px #0005;
}
.game .feature-bar #bonus-meter:not([hidden]){display:grid}
.game .feature-bar #bonus-meter>*{min-width:0;line-height:1.2}
.game .feature-bar #bonus-name{font-size:12px}
.game .feature-bar #remaining{font-size:clamp(14px,3.6vw,21px);text-align:center;white-space:nowrap}
.game .feature-bar #bonus-total{font-size:12px;text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
@media(max-width:650px){.game .feature-bar #bonus-meter{padding:5px 8px;gap:5px}.game .feature-bar #bonus-name,.game .feature-bar #bonus-total{font-size:11px}}
