/* SPECIAL uses existing background and UI assets; no normal layout changes. */
#specialMode{background:var(--game-button) center/100% 100% no-repeat;white-space:nowrap;min-width:65px;margin:0;font-size:12px;padding:4px 7px;color:#fff3d2}
#specialMode[aria-pressed=true]{background-image:var(--game-confirm);color:#352718}
#stageSelect .stage-grid.special-grid{justify-content:center;overflow:hidden}
#stageSelect .stage-grid.special-grid .special-card{flex:0 0 min(76%,440px);width:min(76%,440px);max-width:440px}
#stageSelect .stage-mode-row:has(#specialMode[aria-pressed=true]) .world-tabs{grid-template-columns:1fr}
#stageSelect :is(#stagePrev,#stageNext,#stageDots)[hidden]{display:none!important}
.br-endless .br-stars,.br-endless .br-ribbon,.br-endless .br-rays{display:none!important}
.br-endless-title{font-weight:900;font-size:clamp(18px,3vw,32px);color:#ffe3a0;text-shadow:1px 2px 3px #332a24;white-space:nowrap}
.br-endless .br-title{display:flex;align-items:center;justify-content:center;width:100%;height:auto}
.endless-checkpoint{max-width:min(90vw,500px);text-align:center}.endless-checkpoint .buttons{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
@media(max-height:450px){#specialMode{min-width:55px;font-size:10px;padding:4px}}

#stageSelect .stage-carousel:has(.special-grid){grid-template-columns:minmax(0,1fr)}
#stageSelect .stage-grid.special-grid .special-card{padding:12px 20px 13px;--stage-border:12px;scroll-snap-align:center}
#stageSelect .special-card .stage-body{box-sizing:border-box;align-self:stretch;width:100%;align-items:center;text-align:center;padding:5px 10px 6px;gap:3px}
#stageSelect .special-card .stage-body :is(.stage-meta,.stage-status){text-align:center}
#stageSelect .special-card .stage-thumb{height:clamp(68px,25dvh,240px);max-height:none;flex:none;align-self:center;border-radius:5px}
@media(max-height:350px){#stageSelect .stage-grid.special-grid .special-card{padding:8px 16px 9px}#stageSelect .special-card .stage-thumb{height:clamp(56px,21dvh,74px)}#stageSelect .special-card .stage-body{padding:3px 8px;gap:1px}}

@media(max-height:350px){#stageSelect:has(.special-grid) .future{display:none}#modal .battle-result.br-endless .battle-material-loot{flex-wrap:nowrap;overflow-x:auto;justify-content:safe center;max-width:100%}#modal .battle-result.br-endless .battle-material-cell{flex:none}}
