[hidden]{display:none!important}html{height:100%;overflow:hidden}body{height:100vh;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}.topbar{position:relative;flex:none;height:auto;min-height:44px;padding:4px 8px}.shell{flex:1;min-height:0;height:auto!important;align-items:stretch;width:100%;padding:5px}.gamecol{height:100%;min-height:0;grid-template-rows:auto minmax(0,1fr) auto!important}.hud{grid-template-columns:1.4fr 1fr .8fr 1fr 1.2fr!important}.card{height:42px!important;padding:4px 6px!important;min-width:0}.card b{font-size:15px!important}.card.shield b{font-size:11px!important}.card:after{animation:none}.stage{min-height:0!important;max-height:none!important;height:100%!important}.boss-image{object-fit:contain;filter:none!important}.boss-caption{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);z-index:3;background:#100a26e8;border:1px solid #d35df9;color:#ffe482;border-radius:5px;padding:4px 8px;font:bold 11px Arial;max-width:95%;text-align:center}.start-mode{overflow:auto!important;padding:10px!important;display:flex;align-items:center;justify-content:center}.start-visual{display:grid!important;grid-template-columns:1.1fr 1fr!important;width:min(900px,100%)!important;height:auto!important;max-height:100%;overflow:auto;background:#080d24;border:1px solid #4de5fb;border-radius:14px;padding:14px;gap:18px;align-items:center}.intro-tower{width:100%;height:auto;object-fit:contain;border-radius:8px}.intro-rules h1{font-size:clamp(19px,3vw,30px);line-height:1.15;margin:8px 0;color:#ffe258}.intro-rules p{font:14px/1.4 Arial;margin:9px 0}.intro-rules .intro-keys{color:#9fb9cf;font-size:12px}.intro-rules .primary{position:static!important;display:block;transform:none!important;inset:auto!important;width:100%;min-height:44px;cursor:pointer}.primary:disabled{opacity:.5;cursor:wait}.load-status{display:grid;gap:5px;margin:10px 0;font:11px Arial;color:#9eefff}.load-status progress{width:100%;height:7px;accent-color:#67e6df}.overlay .panel{max-height:100%;overflow:auto}.arcade-parody{flex:none;font:9px/1.2 Arial!important;margin:0!important;padding:3px 8px!important}.boss-zone.attack{box-shadow:inset 0 0 25px #ff506d77}.boss-zone.angry{box-shadow:inset 0 0 25px #ed42e077}
@media(max-width:1050px){.yearpanel{display:none}.shell{grid-template-columns:1fr}.legend{display:none}.topbar{min-height:40px}.title b{font-size:12px}.actions #gameAccount{display:none}.music-box select{max-width:110px}.gamecol{grid-template-rows:auto minmax(0,1fr) auto!important}}
@media(max-width:760px){.topbar{grid-template-columns:auto 1fr;min-height:36px;gap:3px}.title{display:none}.actions{justify-content:flex-end}.music-box button,.music-box select,.actions>button{font-size:9px!important;padding:5px!important}.music-box [data-music-prev],.music-box [data-music-next]{display:none}.music-box input[type=range],.music-box label{display:none}.hud{grid-template-columns:1.6fr 1fr .7fr 1fr!important;gap:3px!important}.card{height:35px!important;padding:3px 4px!important;border-width:1px}.card span{font-size:6px!important}.card b{font-size:12px!important}.card.shield b{font-size:9px!important}.card.best{display:none}.boss-caption{font-size:9px;bottom:2px;padding:3px 5px}.start-visual{grid-template-columns:1fr!important;gap:8px;padding:10px;max-width:440px!important}.intro-tower{height:clamp(85px,18dvh,150px)}.intro-rules h1{font-size:20px;margin:4px 0}.intro-rules p{font-size:12px;margin:6px 0}.scanlines{display:none}.arcade-parody{font-size:8px!important;padding:2px 5px!important}}
@media(orientation:landscape) and (max-height:550px){.start-visual{grid-template-columns:.8fr 1fr!important;gap:10px;max-width:760px!important}.intro-tower{height:160px}.intro-rules h1{font-size:17px}.intro-rules p{font-size:10px;margin:4px 0}.load-status{margin:5px 0;font-size:9px}.intro-rules .primary{min-height:30px;padding:6px}.arcade-parody{display:none!important}.card{height:30px!important}.topbar{min-height:32px!important}.gamecol{grid-template-rows:auto minmax(0,1fr) 58px!important}}

.start-visual[hidden]{display:none!important}

/* V33 desktop only: more vertical space for tax labels and the running area. */
@media(min-width:761px) and (min-height:551px) and (pointer:fine){.stage{grid-template-rows:38% 62%!important}.boss-caption{font-size:10px}.intro-tower{max-height:290px}}

/* V33: three equal character choices, inside the existing scrollable intro. */
.runner-select{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0}.runner-select button{padding:3px;background:#111b30;border:1px solid #46607c;border-radius:8px;color:white;display:grid;justify-items:center;gap:2px;cursor:pointer}.runner-select button.selected{border-color:#4deaff;box-shadow:0 0 0 1px #4deaff;background:#183345}.runner-select img{width:70px;height:66px;object-fit:contain}.runner-select span{font:700 12px Arial;white-space:normal}.runner-choice{font-size:11px!important;margin:3px 0!important}.intro-rules .load-status{margin:6px 0}.intro-rules h1{font-size:clamp(19px,2vw,30px)}#changeRunnerBtn{margin:8px;padding:10px;background:#142740;border:1px solid #52e9ff;color:white;cursor:pointer}
@media(max-height:750px){.intro-rules>p{font-size:12px;margin:5px 0}.intro-rules .kicker{font-size:10px}.runner-select img{height:52px;width:60px}.intro-rules{padding:12px}}

@media(max-width:430px){.music-box select,.music-box input[type=range],.music-box label{display:none!important}.topbar .title b{font-size:11px!important}.topbar .actions{gap:3px}.topbar .actions>button{padding:6px 4px!important}.game-topbar .top-actions{gap:3px}}

/* Four runners share one compact selector row. */
.runner-select{grid-template-columns:repeat(4,minmax(0,1fr))}.runner-select img{max-width:100%}@media(max-width:600px){.runner-select span{font-size:10px}.runner-select img{width:58px;height:56px}.runner-select button{min-height:81px}}

/* V41: the city and building remain visible; expressions occupy only its screen. */
.boss-zone{background:#120b37 url('assets/v32/tower.webp?v=41') center/cover no-repeat}.tower-scene{position:relative;aspect-ratio:2;width:min(100%,200vh);height:100%;max-width:calc(100dvh * 1.35);flex:none}.tower-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}.tower-screen{position:absolute;left:27.5%;top:17.6%;width:49%;height:44.5%;overflow:hidden;border-radius:11% / 14%;background:radial-gradient(ellipse at 50% 70%,#3a1456,#140e30);box-shadow:inset 0 0 20px #b343dc66}.tower-screen .boss-image{position:absolute;left:18%;bottom:-6%;width:64%;height:112%;max-width:none;object-fit:contain;object-position:bottom;clip-path:inset(0 0 3.5% 0)}.tower-sign{position:absolute;left:33%;top:5.3%;width:38%;text-align:center;color:#ffdf6e;font:900 clamp(8px,1.2vw,18px) Consolas;transform:rotate(-1deg);text-shadow:0 0 8px #ff57ca}.tower-gcba{position:absolute;left:34%;top:69.5%;width:37%;text-align:center;color:#fff2a2;font:900 clamp(10px,1.6vw,23px) Consolas;text-shadow:0 0 7px #ff50c6}.boss-caption{bottom:3px;font-size:9px}.boss-zone.attack .tower-screen{box-shadow:inset 0 0 35px #ff334e88}.boss-zone.laugh .tower-screen{background:radial-gradient(ellipse,#682573,#1f1438)}
@media(max-width:760px){.tower-scene{max-width:100%;width:100%;height:100%}.tower-sign{font-size:9px}.tower-gcba{font-size:11px}.boss-caption{font-size:8px}.stage{grid-template-columns:1fr!important;grid-template-rows:36% 64%!important}}

.tower-scene{height:100%;width:auto;aspect-ratio:2;max-width:100%;z-index:1}.boss-zone{background:#0e0b28}.boss-zone::after{content:'';position:absolute;inset:-12px;background:url('assets/v32/tower.webp?v=41') center/cover;filter:blur(9px);opacity:.4;pointer-events:none}.tower-screen .boss-image{height:140%;width:82%;left:9%;bottom:-35%}
