
/* v0.9.12j4: scoped responsive layouts. Preserve frame art with contain, never stretch.
   All detail records are accessible via pages; no scroll-based selection. */
#heroDetails {--ui-font:clamp(11px,1.05vw,15px);--ui-title:clamp(14px,1.4vw,20px);--ui-btn:clamp(11px,1.05vw,14px)}
#heroDetails .detail-header{padding:4px 12px!important;min-height:34px;justify-content:space-between;display:flex;gap:5px}
#heroDetails .detail-header>div:first-child{min-width:0;display:flex;gap:8px;align-items:center}
#heroDetails .detail-header .eyebrow,#heroDetails .detail-header #detailRoleTags{display:none}
#heroDetails #detailTitle{font-size:var(--ui-title);margin:0;white-space:nowrap}
#heroDetails #detailClose{position:static!important;order:-1;flex:none;width:76px;min-height:29px;left:auto;transform:none!important}
#heroDetails .detail-header .header-wallet{position:static!important;transform:none!important;flex:none;max-width:55%;font-size:var(--ui-font)}
#heroDetails .detail-body{padding:4px clamp(6px,1.2vw,18px);gap:4px;max-width:1440px;margin-inline:auto;width:100%;flex:1 1 0;min-height:0}
#heroDetails .detail-layout{flex:1 1 0;grid-template-columns:minmax(100px, .75fr) minmax(0,1.35fr);gap:8px;min-height:0}
#heroDetails .detail-portrait{padding:3px;grid-template-rows:minmax(0,1fr) auto auto;min-height:0}
#heroDetails .detail-portrait #detailImage{width:100%;height:100%;max-width:none;min-height:0;max-height:100%;aspect-ratio:auto;object-fit:contain;transform:none}
#heroDetails .detail-name{padding:3px 5px;gap:3px 6px}
#heroDetails .detail-name h3{font-size:var(--ui-title);line-height:1.2;margin:0}
#heroDetails .detail-name p,#heroDetails .detail-name span{font-size:var(--ui-font);line-height:1.25;margin:0}
#heroDetails .detail-data{display:flex;flex-direction:column;min-height:0;min-width:0;padding:4px;gap:3px}
#heroDetails .detail-sections{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;flex:none}
#heroDetails .detail-sections button,#detailMotions button.secondary,#heroDetails #growthTraining button,#heroDetails #shardBuy,#heroDetails .meal-life-section button,#heroDetails #detailClose{
  background-size:contain!important;min-width:0!important;width:100%;max-width:164px;min-height:30px;height:32px;padding:3px 6px!important;font-size:var(--ui-btn);line-height:1.18;white-space:normal;justify-self:center;align-self:center;flex:none!important;box-shadow:none;
}
#heroDetails .detail-sections button,#detailMotions button.secondary{max-width:120px}
#detailMotions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;max-width:460px}
#heroDetails .detail-pane-scroll{flex:1 1 0;min-height:0;min-width:0;border-width:6px;padding:4px 6px!important;overflow:hidden!important;box-sizing:border-box}
#heroDetails .detail-pane-scroll [data-detail-page]{min-width:0}
#heroDetails .detail-pane-scroll [data-ui-part-hidden]{display:none!important}
#heroDetails .detail-pane-scroll .growth-card,#heroDetails .detail-pane-scroll .strength-card,#heroDetails #detailLife,#heroDetails .detail-pane-scroll .meal-life-section,#heroDetails .detail-pane-scroll .detail-skill,#heroDetails #growthTraining{display:contents}
#heroDetails .detail-pane-scroll h3{font-size:var(--ui-title);line-height:1.2;margin:2px 0 4px}
#heroDetails .detail-pane-scroll p,#heroDetails .detail-pane-scroll .detail-muted,#heroDetails .detail-pane-scroll .bond-card p,#heroDetails .detail-pane-scroll dt,#heroDetails .detail-pane-scroll dd,#heroDetails .detail-pane-scroll span,#heroDetails .detail-pane-scroll select,#heroDetails .detail-pane-scroll .growth-head strong,#heroDetails .detail-pane-scroll .growth-head span,#heroDetails .detail-pane-scroll strong{font-size:var(--ui-font);line-height:1.25;overflow-wrap:anywhere}
#heroDetails .detail-pane-scroll p{margin:3px 0}
#heroDetails .detail-pane-scroll .growth-head strong{font-weight:900;font-size:var(--ui-title)}
#heroDetails .detail-pane-scroll .detail-stats{grid-template-columns:repeat(2,minmax(0,1fr));margin:2px 0;gap:2px 8px}
#heroDetails .detail-pane-scroll .detail-stat{padding:2px 0;gap:1px 5px}
#heroDetails .detail-pane-scroll .detail-meter{height:4px}
#heroDetails .detail-pane-scroll progress{height:7px;margin:4px 0}
#heroDetails .detail-pane-scroll select{width:auto;flex:1 1 0;min-width:0;max-width:100%}
#heroDetails .growth-food-row,#heroDetails .meal-life-controls{display:flex;flex-wrap:nowrap;align-items:center;gap:4px;margin:2px 0}
#heroDetails .growth-food-row button,#heroDetails .meal-life-controls button{flex:0 0 108px!important}
#heroDetails .meal-life-prefs{display:flex;gap:6px;flex-wrap:wrap}
#heroDetails .meal-life-prefs img,#heroDetails .meal-life-log img{width:30px;height:30px;object-fit:contain}
#heroDetails .dossier-pager{display:flex;justify-content:center;align-items:center;gap:8px;flex:none;height:24px;font-size:var(--ui-font);color:#49361e}
#heroDetails .dossier-roster{order:2;display:grid;grid-template-columns:26px minmax(0,1fr) 26px auto;align-items:center;gap:4px;flex:none;min-width:0}
#heroDetails .dossier-roster>span{font-size:var(--ui-font);white-space:nowrap;color:#fff4d1}
#heroDetails .dossier-roster button:not(.detail-tab),#heroDetails .dossier-pager button{font:700 18px/1 sans-serif;background:var(--reg-secondary) center/contain no-repeat;border:0;box-shadow:none;color:#fff4d1;width:26px;height:24px;min-width:0;min-height:0;padding:0}
#heroDetails #detailTabs{display:grid;grid-template-columns:repeat(var(--dossier-count,5),minmax(0,1fr));gap:4px;overflow:visible;min-width:0;margin:0;justify-items:center}
#heroDetails #detailTabs .detail-tab{width:100%;max-width:92px;height:clamp(45px,10vh,80px);min-height:0;min-width:0;display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:0;padding:1px 2px!important}
#heroDetails #detailTabs .detail-tab[hidden]{display:none!important}
#heroDetails #detailTabs img{width:100%;height:100%;min-height:0;object-fit:contain}
#heroDetails #detailTabs b,#heroDetails #detailTabs small{font-size:var(--ui-font);line-height:1.05;overflow-wrap:anywhere;margin:0}
#heroDetails>.shared-dock,.app:has(#stageSelect:not([hidden]))>.shared-dock{display:flex;justify-content:center;gap:2px;min-width:0;overflow:visible;--dock-icon:clamp(28px,7vh,52px);--dock-height:auto;padding:2px 4px;flex:none}
#heroDetails>.shared-dock .dock-button,.app:has(#stageSelect:not([hidden]))>.shared-dock .dock-button{flex:1 1 0;min-width:0;width:auto;max-width:102px;white-space:normal;font-size:clamp(10px,1vw,14px);line-height:1.1}
#stageSelect:not([hidden]){gap:4px;min-height:0;padding:4px 8px}
#stageSelect .stage-head{padding:0!important;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:5px;align-items:center;min-height:28px}
#stageSelect .stage-head .ribbon{margin:0;min-height:0;max-height:none;font-size:clamp(14px,2.1vmin,20px);padding:4px 5px;background-size:contain}
#stageSelect .stage-head button,#stageSelect .stage-mode-row button{position:static!important;transform:none!important;min-width:0!important;min-height:28px;height:30px;padding:3px 5px!important;background-size:contain!important;font-size:clamp(10px,1.6vmin,14px);line-height:1.1;white-space:normal}
#stageSelect .stage-head button{width:70px}
#stageSelect .stage-mode-row{display:flex;gap:4px;justify-content:center;min-height:28px;flex:none}
#stageSelect .stage-mode-row .world-tabs{flex:1 1 0;min-width:0;gap:3px}
#stageSelect .stage-mode-row .world-tab{flex:1 1 0;max-width:160px}
#stageSelect .stage-mode-row #stageMode,#stageSelect .stage-mode-row #specialMode{flex:0 0 76px}
#stageSelect .stage-carousel{grid-template-columns:26px minmax(0,1fr) 26px;gap:4px;min-height:0}
#stageSelect .stage-carousel:has(#stagePrev[hidden]){grid-template-columns:minmax(0,1fr)}
#stageSelect .stage-carousel>.carousel-arrow{width:26px;max-width:26px;min-height:30px;background-size:contain!important}
#stageSelect .stage-grid:not(.special-grid){grid-template-rows:minmax(0,1fr);gap:4px;min-height:0}
#stageSelect .stage-grid[data-page-size="12"],#stageSelect .stage-grid[data-page-size="8"],#stageSelect .stage-grid[data-page-size="6"]{grid-template-rows:repeat(2,minmax(0,1fr))}
#stageSelect .stage-grid:not(.special-grid) .stage-card,#stageSelect .stage-grid.special-grid .stage-card{display:grid;grid-template-rows:minmax(0,1fr) auto;min-width:0;min-height:0;padding:8px;gap:3px;align-items:stretch;overflow:visible;--stage-border:6px}
#stageSelect .stage-grid .stage-card[hidden]{display:none!important}
#stageSelect .stage-grid .stage-card .stage-thumb{display:block;width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center;border-radius:0}
#stageSelect .stage-grid .stage-card .stage-body{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;min-height:0;padding:0 3px 1px;gap:2px;text-align:left;align-items:start;align-content:end}
#stageSelect .stage-grid .stage-card .world-stage-code{font-size:clamp(11px,2vmin,17px);line-height:1.1;margin:0;white-space:normal}
#stageSelect .stage-grid .stage-card .stage-body strong{font-size:clamp(11px,2vmin,16px);line-height:1.15;min-height:0;display:block;white-space:normal;overflow-wrap:anywhere}
#stageSelect .stage-grid .stage-card .stage-meta,#stageSelect .stage-grid .stage-card .stage-status{font-size:clamp(10px,1.65vmin,13px);line-height:1.15;margin:0;white-space:normal;overflow-wrap:anywhere}
#stageSelect .stage-grid .stage-card .stage-status::before{display:none!important}
#stageSelect .stage-grid.special-grid .stage-card{width:min(75%,500px);height:100%;max-height:100%;max-width:none}
#stageSelect .stage-dots{min-height:18px;gap:3px;margin:0}
#stageSelect .stage-dot{min-height:18px;height:18px;width:24px;background-size:contain!important}
#stageSelect .future{font-size:clamp(10px,1.5vmin,13px);line-height:1.1;margin:0}
@media(max-height:450px){
 #heroDetails{--ui-font:11px;--ui-title:14px;--ui-btn:11px}
 #heroDetails .detail-sections button,#detailMotions button.secondary,#heroDetails #growthTraining button,#heroDetails #shardBuy,#heroDetails .meal-life-section button{height:27px;min-height:27px;padding:2px 3px!important}
 #heroDetails .detail-header{min-height:30px}
 #heroDetails .detail-body{gap:2px;padding:2px 6px}
 #heroDetails .detail-pane-scroll{border-width:4px;padding:2px 4px!important}
 #heroDetails .dossier-pager{height:21px}
 #heroDetails .dossier-roster{grid-template-columns:22px minmax(0,1fr) 22px auto}
 #stageSelect .stage-grid .stage-card{padding:6px;--stage-border:5px}
 #stageSelect .stage-grid .stage-card .stage-body{grid-template-columns:auto minmax(0,1fr);column-gap:4px;row-gap:1px}
 #stageSelect .stage-grid .stage-card .stage-meta,#stageSelect .stage-grid .stage-card .stage-status{grid-column:1/-1}
}

/* Final pass: explicit grid areas prevent legacy flex order from shrinking the roster. */
#heroDetails .dossier-roster{grid-template-columns:36px minmax(0,1fr) 36px 42px;grid-template-areas:"prev list next count";gap:6px;width:100%;max-width:1100px;margin-inline:auto}
#heroDetails #dossierPrev{grid-area:prev}
#heroDetails #dossierNext{grid-area:next}
#heroDetails #detailTabs{grid-area:list;order:0;justify-content:stretch;justify-items:center;align-items:center}
#heroDetails #dossierCount{grid-area:count;text-align:center}
#heroDetails #detailTabs .detail-tab{width:100%;max-width:100px;height:clamp(52px,12vh,96px);padding:2px!important}
#heroDetails #detailTabs .detail-tab img{min-height:0;max-height:none;max-width:none;width:100%;height:100%;object-fit:contain}
#heroDetails .dossier-roster button:not(.detail-tab),#heroDetails .dossier-pager button{
  width:32px;height:26px;background:#28594f!important;border:1px solid #d4bb77!important;border-radius:5px;font:700 23px/1 sans-serif;text-shadow:none;color:#fff7df;display:grid;place-items:center
}
#heroDetails .dossier-roster button:disabled,#heroDetails .dossier-pager button:disabled{opacity:.45}
#heroDetails .dossier-pager{height:28px}
#heroDetails .dossier-pager span{min-width:44px;text-align:center}
#heroDetails .detail-pane-scroll .bond-card{display:contents}
#heroDetails #detailRoleTags{display:flex;flex-wrap:wrap;gap:4px;min-width:0;margin:2px 0}
#heroDetails #detailRoleTags span{font-size:var(--ui-font);color:#5d4020;background:#ead9b0;border:1px solid #c5ad72;border-radius:3px;padding:2px 4px}
#heroDetails .detail-portrait{background-size:68% auto,cover,cover}
#heroDetails .detail-name{background:#15392dd9}
#heroDetails .detail-pane-scroll .growth-head,#heroDetails .detail-pane-scroll .strength-head{margin:5px 0}
#heroDetails .detail-pane-scroll .growth-head strong{font-size:var(--ui-title)}
#heroDetails .detail-pane-scroll .strength-head{border-top:1px solid #b89a62;padding-top:6px}
#heroDetails .detail-pane-scroll .detail-stat dd{font-weight:800}
#heroDetails .detail-pane-scroll .meal-life-section button{width:auto;min-width:120px!important;max-width:100%;margin:2px 0}
#heroDetails #growthTraining>button,#heroDetails #shardBuy{width:fit-content;min-width:145px!important;max-width:100%;padding:5px 14px!important}
#heroDetails .detail-pane-scroll .growth-food-row select,#heroDetails .detail-pane-scroll .meal-life-controls select{flex:0 1 420px;max-width:65%}
#heroDetails .detail-pane-scroll .growth-food-row button,#heroDetails .detail-pane-scroll .meal-life-controls button{flex:0 0 112px!important;min-width:0!important}
#heroDetails #detailMotions button.secondary{max-width:100%;font-size:var(--ui-btn);padding:2px 3px!important;white-space:nowrap}
#heroDetails .detail-sections button{width:min(100%,160px);max-width:160px}
#heroDetails .detail-sections button,#heroDetails #detailMotions button.secondary,#heroDetails #growthTraining button,#heroDetails #shardBuy,#heroDetails .meal-life-section button,#heroDetails #detailClose,
#stageSelect .stage-head button,#stageSelect .stage-mode-row button{
 position:relative!important;isolation:isolate;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;
 color:#fff8de;text-shadow:0 1px 1px #193c36;min-height:30px;height:32px;
}
#heroDetails .detail-sections button::before,#heroDetails #detailMotions button.secondary::before,#heroDetails #growthTraining button::before,#heroDetails #shardBuy::before,#heroDetails .meal-life-section button::before,#heroDetails #detailClose::before,
#stageSelect .stage-head button::before,#stageSelect .stage-mode-row button::before{
 content:"";position:absolute;inset:0;z-index:-1;border:14px solid transparent;border-image:var(--reg-secondary) 100 105 100 105 fill stretch;pointer-events:none
}
#heroDetails .detail-sections button[aria-pressed=true],#heroDetails #detailMotions button[aria-pressed=true],#stageSelect .stage-mode-row button[aria-pressed=true]{color:#442b10;text-shadow:none}
#heroDetails .detail-sections button[aria-pressed=true]::before,#heroDetails #detailMotions button[aria-pressed=true]::before,#stageSelect .stage-mode-row button[aria-pressed=true]::before{border-image-source:var(--reg-tab);border-image-slice:88 90 88 90 fill}
#heroDetails #growthTraining button.primary::before,#heroDetails #shardBuy::before,#heroDetails .meal-life-section button.primary::before{border-image-source:var(--reg-tab);border-image-slice:88 90 88 90 fill}
#heroDetails #growthTraining button.primary,#heroDetails #shardBuy,#heroDetails .meal-life-section button.primary{color:#442b10;text-shadow:none}
#heroDetails #growthTraining button:disabled,#heroDetails #shardBuy:disabled,#heroDetails .meal-life-section button:disabled{opacity:.68;color:#3a392c;text-shadow:none}
#stageSelect .stage-head{grid-template-areas:"back title count guide";grid-template-columns:80px minmax(0,1fr) auto 80px;justify-items:stretch}
#stageSelect #stageBack{grid-area:back}
#stageSelect .stage-head .ribbon{grid-area:title;position:static!important;justify-self:center;width:auto!important;min-width:0!important;max-width:none!important;text-align:center;transform:none!important;background:none!important;color:#fff1cb;text-shadow:0 2px 2px #263c37,0 0 4px #263c37;font-size:clamp(17px,2.4vmin,25px)}
#stageSelect #stageCount{grid-area:count;justify-self:end;background:#274b47c9;color:#fff1cb;padding:4px 6px;border-radius:4px}
#stageSelect #guideGo{grid-area:guide;justify-self:end}
#stageSelect .stage-grid:not(.special-grid) .stage-card{padding:10px;--stage-border:7px;gap:4px;overflow:visible}
#stageSelect .stage-grid .stage-card::before{inset:5px;border-radius:5px}
#stageSelect .stage-grid .stage-card .stage-thumb{object-position:center bottom;align-self:end}
#stageSelect .stage-grid .stage-card .stage-body{padding:3px 4px 4px;grid-template-columns:auto minmax(0,1fr);column-gap:6px;row-gap:3px;align-content:start}
#stageSelect .stage-grid .stage-card .stage-meta,#stageSelect .stage-grid .stage-card .stage-status{grid-column:1/-1}
#stageSelect .stage-grid .stage-card .world-stage-code{color:#ffe0a0;font-size:clamp(11px,2.1vmin,16px)}
#stageSelect .stage-grid .stage-card .stage-body strong{font-size:clamp(11px,2.1vmin,16px);font-weight:800}
#stageSelect .stage-grid .stage-card .stage-status{color:#ffe1a0}
#stageSelect .stage-grid .stage-card .stage-meta{color:#e1e9dc}
#stageSelect .stage-dots{display:flex;justify-content:center;gap:6px}
#stageSelect .stage-dot{font-size:11px!important;color:#f9edcb!important;background:#234842!important;border:1px solid #b6a16a!important;border-radius:4px!important;min-width:24px;width:24px;height:20px;min-height:20px;opacity:1!important;padding:0!important;text-shadow:none}
#stageSelect .stage-dot[aria-pressed=true]{background:#f3cc77!important;color:#3d3119!important}
@media(max-height:450px){
 #heroDetails .dossier-roster{grid-template-columns:32px minmax(0,1fr) 32px 34px;gap:3px}
 #heroDetails #detailTabs .detail-tab{height:50px}
 #heroDetails .dossier-pager{height:24px}
 #heroDetails .dossier-pager button{height:22px}
 #heroDetails .detail-sections button,#heroDetails #detailMotions button.secondary,#heroDetails #growthTraining button,#heroDetails #shardBuy,#heroDetails .meal-life-section button,#heroDetails #detailClose,#stageSelect .stage-head button,#stageSelect .stage-mode-row button{height:28px;min-height:28px}
 #heroDetails .detail-sections button::before,#heroDetails #detailMotions button.secondary::before,#heroDetails #growthTraining button::before,#heroDetails #shardBuy::before,#heroDetails .meal-life-section button::before,#heroDetails #detailClose::before,#stageSelect .stage-head button::before,#stageSelect .stage-mode-row button::before{border-width:12px}
 #heroDetails #detailMotions button.secondary{font-size:10px;padding:1px 2px!important}
 #heroDetails .detail-pane-scroll .growth-food-row select,#heroDetails .detail-pane-scroll .meal-life-controls select{max-width:none;flex:1 1 0}
 #heroDetails .detail-pane-scroll .growth-food-row button,#heroDetails .detail-pane-scroll .meal-life-controls button{flex:0 0 95px!important}
 #stageSelect .stage-grid:not(.special-grid) .stage-card{padding:7px;--stage-border:5px;gap:2px}
 #stageSelect .stage-grid .stage-card .stage-body{padding:1px 3px 3px;gap:1px 4px}
 #stageSelect .stage-head{grid-template-columns:72px minmax(0,1fr) auto 72px}
}

#heroDetails #detailClose,#stageSelect #stageBack,#stageSelect #guideGo{top:auto!important;left:auto!important;right:auto!important;transform:none!important;align-self:center;max-width:100%!important}
#heroDetails #detailClose{width:86px!important;min-width:0!important}
#stageSelect #stageBack,#stageSelect #guideGo{width:100%!important;min-width:0!important}
#stageSelect .stage-head{align-items:center}
#heroDetails #detailTabs .dossier-face{display:block;position:relative;min-width:0;min-height:0;width:100%;height:100%;overflow:hidden}
#heroDetails #detailTabs .dossier-face img{transform:scale(1.9);transform-origin:50% 56%;width:100%;height:100%;object-fit:contain}
#heroDetails #detailTabs .detail-tab{grid-template-rows:minmax(0,1fr) auto auto}
#heroDetails #detailTabs .detail-tab small{font-size:clamp(10px,1vw,13px);color:#e0e6da}
#heroDetails #detailTabs .detail-tab b{font-weight:800}
#heroDetails .detail-pane-scroll .detail-stat{gap:2px 5px}
#heroDetails .detail-pane-scroll .detail-stats{margin:0;gap:1px 8px}
#heroDetails .detail-pane-scroll .detail-stats .detail-stat{padding:1px 0}
#heroDetails .detail-pane-scroll .detail-meter{height:3px}
#heroDetails #detailRoleTags[data-ui-part-hidden]{display:none!important}
@media(min-width:1150px) and (min-height:600px){
 #stageSelect .stage-grid[data-page-size="12"] .stage-card{height:clamp(164px,calc((min(100vw,1500px) - 60px)/6 + 5px),242px);max-height:100%;align-self:center}
 #stageSelect .stage-grid[data-page-size="12"] .stage-card .stage-thumb{object-position:center center}
 #stageSelect .stage-grid[data-page-size="12"]{row-gap:6px}
 #heroDetails .detail-pane-scroll{padding:12px 18px!important}
 #heroDetails .detail-pane-scroll p{margin:7px 0}
 #heroDetails .detail-pane-scroll .growth-head,#heroDetails .detail-pane-scroll .strength-head{margin:12px 0}
}
@media(max-height:450px){
 #heroDetails #detailTabs .detail-tab{height:52px}
 #heroDetails #detailTabs .dossier-face img{transform:scale(2.0)}
 #heroDetails #detailClose{width:76px!important}
}

/* SPECIAL uses a fixed grid, rather than the legacy intrinsic-height carousel. */
#stageSelect .stage-grid.special-grid{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-height:0;height:100%;max-height:100%;width:100%;flex:none;justify-items:center;align-items:center;overflow:hidden;padding:0}
#stageSelect .stage-grid.special-grid .special-card{width:min(100%,620px);height:min(100%,300px);max-width:100%;max-height:100%;min-height:0;align-self:center;justify-self:center;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:center;padding:10px;gap:8px;overflow:visible}
#stageSelect .stage-grid.special-grid .special-card .stage-thumb{width:100%;height:100%;min-height:0;max-height:100%;aspect-ratio:auto;object-fit:contain;object-position:center;align-self:center}
#stageSelect .stage-grid.special-grid .special-card .stage-body{grid-template-columns:minmax(0,1fr);align-content:center;align-items:center;text-align:left;gap:5px;padding:3px}
#stageSelect .stage-grid.special-grid .special-card .stage-status,#stageSelect .stage-grid.special-grid .special-card .stage-meta{text-align:left}
#stageSelect .stage-grid.special-grid .special-card .world-stage-code{font-size:clamp(12px,2.5vmin,20px)}
@media(max-height:450px){
 #stageSelect .stage-grid.special-grid .special-card{width:min(100%,450px);height:100%;padding:7px;gap:6px}
 #stageSelect .stage-grid.special-grid .special-card .stage-body{gap:2px}
}
