#gameRoot .cabinet-stage { min-height: 0; padding: 14px 20px 18px; }
#gameRoot .bells { width: min(800px,100%); margin: 12px auto; gap: 12px; }
#gameRoot .bell-button { min-height: 195px; padding: 8px 6px; }
#gameRoot .bell-art { width: 90px; height: 108px; margin: 16px 0 4px; }
#gameRoot .bell-glyph { font-size: 30px; }
#gameRoot .bell-glyph::after { bottom: -29px; }
#gameRoot .sequence-display { margin: 8px auto; }
#gameRoot .game-status { min-height: 22px; margin: 0 0 12px; }
#gameRoot .key-help { margin: 10px 0; font-size: 11px; letter-spacing: .02em; }
#gameRoot .bell-name { font-size: 12px; }
#gameRoot .bell-note { font: 10px system-ui,sans-serif; letter-spacing: .05em; }
#gameRoot .sequence-track { max-height: 60px; overflow-y: auto; flex-wrap: wrap; border-radius: 6px; }
@media(max-width:600px) {
 #gameRoot .bells { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
 #gameRoot .bell-button { min-height: 144px; }
 #gameRoot .bell-art { width: 62px; height: 76px; margin: 10px 0 0; }
 #gameRoot .bell-glyph { font-size: 25px; }
 #gameRoot .bell-glyph::after { bottom: -15px; }
 #gameRoot .bell-key { width: 20px; height: 20px; left: 7px; top: 7px; font-size: 11px; }
 #gameRoot .bell-note { display: none; }
 #gameRoot .cabinet-stage { padding: 12px 8px; }
 #gameRoot .hud { grid-template-columns: repeat(5,minmax(0,1fr)); }
 #gameRoot .hud-note { display: none; }
 #gameRoot .hud-label { letter-spacing: 0; font-size: 8px; }
}

/* Exact whole-frame sprite stepping, including the final atlas frame. */
@keyframes tollkeeper-ghost { from {background-position:0 0;} to {background-position:114.28571428571429% 0;} }
@keyframes tollkeeper-candle { from {background-position:0 0;} to {background-position:133.33333333333334% 0;} }
@keyframes tollkeeper-rip { from {background-position:0 0;} to {background-position:111.11111111111111% 0;} }
@keyframes tollkeeper-skull { from {background-position:0 0;} to {background-position:114.28571428571429% 0;} }
#gameRoot .milestone-banner {position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); margin:0; padding:0; border:0;}
#gameRoot .stage-scene::before {background:linear-gradient(#07182244,#050e19b8);}
#gameRoot .stage-scene::after {display:none;}
#gameRoot .stage-scene {background:#07131d url('assets/belfry-v2.png') center/cover no-repeat;}
#gameRoot .stage-scene::before {background:linear-gradient(#06152011,#050e1933);}
#gameRoot .bell-art {width:150px;height:150px;margin:4px 0;background:url('assets/bells-v2.png') 0 0/200% 200% no-repeat!important;border:0;border-radius:0;box-shadow:none;transform:none;filter:drop-shadow(0 3px 4px #0008);}
#gameRoot [data-bell="1"] .bell-art {background-position:100% 0!important;}
#gameRoot [data-bell="2"] .bell-art {background-position:0 100%!important;}
#gameRoot [data-bell="3"] .bell-art {background-position:100% 100%!important;}
#gameRoot .bell-art::before,#gameRoot .bell-art::after,#gameRoot .bell-glyph {display:none;}
#gameRoot .bell-button {background:#07131dcc;}
#gameRoot .bell-button.is-active .bell-art,#gameRoot .bell-button.is-success .bell-art {filter:brightness(1.3) drop-shadow(0 0 10px currentColor);}
@media(max-width:600px){#gameRoot .bell-art{width:106px;height:106px;margin:0;}#gameRoot .bell-button{min-height:142px;}}
#gameRoot [data-bell="0"] .bell-art,#gameRoot [data-bell="2"] .bell-art {left:-14px;}
#gameRoot [data-bell="1"] .bell-art,#gameRoot [data-bell="3"] .bell-art {left:14px;}
@media(max-width:600px){#gameRoot [data-bell="0"] .bell-art,#gameRoot [data-bell="2"] .bell-art{left:-10px;}#gameRoot [data-bell="1"] .bell-art,#gameRoot [data-bell="3"] .bell-art{left:10px;}}
