/* Menus own their layout; play controls and campaign geometry are unaffected. */
#stage[data-mode=title] .community-links{gap:8px;max-width:calc(100% - 180px)}
#stage[data-mode=title] .community-links a{gap:7px;min-height:44px;padding:7px 10px;font-size:8px;line-height:1.5}
#stage[data-mode=title] .community-links svg{width:20px;height:20px}
#stage[data-mode=title] .community-links .title-account{--shortcut-edge:#88cfb8;--shortcut-bg:#163d38;--shortcut-ink:#e4fff2;align-self:stretch}
#root #stage[data-mode=title] .title-screen{max-width:840px;gap:7px}
#stage[data-mode=title] .title-screen .logo strong{font-size:42px}
#stage[data-mode=title] .title-screen .logo small{font-size:14px}
#stage[data-mode=title] .title-screen .logo em{font-size:21px}
#stage[data-mode=title] .title-identity{gap:5px}
#stage[data-mode=title] .title-screen .cast-carousel{width:min(100%,370px)}
#stage[data-mode=title] .title-screen .cast-strip .portrait{width:42px;height:54px}
#stage[data-mode=title] .title-screen .title-play-actions{gap:9px}
#stage[data-mode=title] .title-play-actions .mode-card{min-height:94px;padding:12px;gap:6px}
#stage[data-mode=title] .mode-card strong{font-size:11px}
#stage[data-mode=title] .mode-card span{font-size:20px}
#stage[data-mode=title] .mode-card small{font-size:15px}
#stage[data-mode=title] .title-screen .course-offer{gap:4px 10px;font-size:18px}
#stage[data-mode=title] .course-offer button{min-height:44px;padding:6px;font-size:8px}
#stage[data-mode=title] .title-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;border-top:1px solid #355766;gap:0 12px}
#stage[data-mode=title] .title-extras{grid-column:1/-1;grid-row:1;width:100%;text-align:left;color:#a4d6d5}
#stage[data-mode=title] .title-footer .archive-link{grid-column:2;grid-row:1;align-self:start;justify-self:end;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;min-height:48px;max-width:100%;padding:5px 2px;font:18px/1.1 VT323,monospace;text-align:right;white-space:nowrap;color:#9be0cb;border:0}
#stage[data-mode=title] .title-footer .archive-compact{display:none}
@media(max-width:760px){#stage[data-mode=title] .title-footer .archive-full{display:none}#stage[data-mode=title] .title-footer .archive-compact{display:inline}#stage[data-mode=title] .title-footer .archive-link{font-size:14px}}
#stage[data-mode=title] .title-footer .archive-link:focus-visible{outline:2px solid #fff2b2;outline-offset:2px}
#stage[data-mode=title] .title-extras>summary{width:calc(50% - 6px);min-height:48px;box-sizing:border-box;align-content:center;cursor:pointer;font:18px/1.2 VT323,monospace;padding:2px}
#stage[data-mode=title] .title-extras>summary:focus-visible{outline:2px solid #fff2b2;outline-offset:2px}
#stage[data-mode=title] .title-extras .title-disclaimer{margin:12px 0 4px;max-width:none;font:17px/1.25 VT323,monospace}

/* Effect, level and one price stay visible. Explanations expand per item. */
#root #stage[data-mode=shop] .shop-panel.compact-shop{gap:7px;padding:12px;max-width:1080px}
#stage .compact-shop .shop-heading{flex-direction:row;align-items:center;gap:12px;min-height:44px}
#stage .compact-shop .shop-title{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px}
#stage .compact-shop .shop-title h2{font-size:16px}
#stage .compact-shop .shop-capacity{font:17px/1.15 VT323,monospace;margin:0!important;color:#aec6d1}
#stage .compact-shop .shop-wallet{align-items:center;align-self:center;gap:6px;padding:5px 10px;box-shadow:none;flex-wrap:wrap;max-width:48%}
#stage .compact-shop .shop-wallet>.coin-icon{width:24px;height:24px}
#stage .compact-shop .shop-wallet strong{font:19px/1.2 VT323,monospace}
#stage .compact-shop .shop-wallet>small{font-size:15px;flex-basis:100%}
#stage .compact-shop .shop-categories{flex-wrap:nowrap;overflow-x:auto;min-height:44px;padding:0 0 3px;gap:5px;scrollbar-width:thin;touch-action:pan-x}
#stage .compact-shop .shop-categories button{flex:0 0 auto;min-height:44px;padding:7px 12px;font:18px/1 VT323,monospace}
#stage .compact-shop .shop-grid{gap:8px;grid-template-columns:repeat(3,minmax(0,1fr));padding:2px 5px 5px 2px;align-items:stretch}
#stage .compact-shop .shop-section{font:18px/1.15 VT323,monospace;margin:3px 0 0}
#stage .compact-shop .shop-card{display:flex;gap:4px;padding:10px;min-width:0}
#stage .compact-shop .shop-item-heading{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:4px 8px;align-items:start}
#stage .compact-shop .shop-item-heading h3{grid-column:2;grid-row:1;overflow-wrap:anywhere}
#stage .compact-shop .shop-item-heading:not(:has(.shop-price)) h3{grid-column:2/-1}
#stage .compact-shop .shop-item-heading>.shop-item-icon{grid-column:1;grid-row:1/3}
#stage .compact-shop .shop-item-icon{flex-basis:34px;width:34px;height:34px}
#stage .compact-shop .shop-card h3{font-size:9px;line-height:1.5}
#stage .compact-shop .shop-effect{grid-column:2/-1;grid-row:2;font:18px/1.1 VT323,monospace;margin:0}
#stage .compact-shop .shop-card-info{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 8px;margin-top:auto}
#stage .compact-shop .shop-level{font:16px/1.15 VT323,monospace;color:#b5cdd8}
#stage .compact-shop .shop-stock{display:block;font:16px/1.15 VT323,monospace;color:#adc4d6}
#stage .compact-shop .reading-details{min-width:0;font-size:17px}
#stage .compact-shop .reading-details>summary{min-height:44px;padding:9px 2px;font:17px/1.2 VT323,monospace;align-content:center}
#stage .compact-shop .reading-details[open]{grid-column:1/-1}
#stage .compact-shop .reading-details p{font:18px/1.15 VT323,monospace;margin:3px 0 8px!important}
#stage .compact-shop .shop-card-footer{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:6px;margin:0}
#stage .compact-shop .shop-price{grid-column:3;grid-row:1;justify-self:end;align-self:start;font:20px/1.15 VT323,monospace;flex-wrap:nowrap;white-space:nowrap;gap:3px;min-height:0}
#stage .compact-shop .shop-price .coin-icon{width:17px;height:17px}
#stage .compact-shop .shop-card-footer button{font-size:8px;line-height:1.4;padding:7px;min-height:44px;white-space:normal}
#stage .compact-shop .shop-card-footer .shop-equip{grid-column:1/-1}
#stage .compact-shop .shop-actions{padding-top:5px;gap:8px;grid-template-columns:1fr 1fr 1fr}
#stage .compact-shop .shop-actions>button{min-height:44px;font-size:9px;padding:7px 12px}
#stage .compact-shop .shop-rules summary{min-height:44px;font-size:17px}
#stage .compact-shop .shop-notice:empty{display:none}
#stage .compact-shop .shop-notice.has-notice{display:block;font:17px/1.2 VT323,monospace!important}

@media(max-width:700px){
 #stage .compact-shop .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #stage .compact-shop .shop-title{gap:3px 8px}
 #stage .compact-shop .shop-title h2{font-size:12px}
 #stage .compact-shop .shop-capacity{font-size:16px}
 #stage .compact-shop .shop-categories button{font-size:17px;padding:7px 10px}
}
@media(max-width:480px){
 #stage .compact-shop .shop-grid{grid-template-columns:1fr}
 #stage .compact-shop .shop-card{padding:8px 10px}
 #stage .compact-shop .shop-card h3{font-size:9px}
 #stage .compact-shop .shop-title{display:block}
 #stage .compact-shop .shop-capacity{margin-top:4px!important}
}
@media(max-width:600px) and (orientation:portrait){
 #root #stage[data-mode=title] #overlay{padding:118px 12px 12px}
 #stage[data-mode=title] .community-links{top:63px;left:10px;right:10px;max-width:none;gap:6px}
 #stage[data-mode=title] .community-links a{font-size:7px;padding:6px;gap:5px;min-width:0}
 #stage[data-mode=title] .community-links svg{width:17px;height:17px}
 #stage[data-mode=title] .title-screen .logo strong{font-size:32px}
 #stage[data-mode=title] .title-screen .logo small{font-size:12px}
 #stage[data-mode=title] .title-screen .logo em{font-size:17px}
 #stage[data-mode=title] .title-screen .title-play-actions{grid-template-columns:1fr 1fr;gap:7px}
 #stage[data-mode=title] .title-play-actions .mode-card{min-height:102px;padding:9px 7px;gap:5px}
 #stage[data-mode=title] .mode-card strong{font-size:9px;line-height:1.6}
 #stage[data-mode=title] .mode-card span{font-size:18px;line-height:1.1}
 #stage[data-mode=title] .mode-card small{font-size:14px}
 #stage[data-mode=title] .sandbox-option{padding:6px 8px;gap:0 8px}
 #stage[data-mode=title] .sandbox-option p{font-size:16px}
 #stage[data-mode=title] .sandbox-option>small{font-size:14px}
}
@media(orientation:landscape) and (max-height:600px){
 #root #stage[data-mode=title] #overlay{padding:64px 16px 10px}
 #stage[data-mode=title] .community-links{left:10px;right:168px;max-width:none;gap:6px}
 #stage[data-mode=title] .community-links a{padding:6px 9px;font-size:7px}
 #root #stage[data-mode=title] .title-screen{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(0,1.3fr);gap:4px 18px;align-items:center}
 #stage[data-mode=title] .title-identity{grid-column:1;grid-row:1;flex-direction:column;gap:3px}
 #stage[data-mode=title] .title-screen .logo strong{font-size:28px}
 #stage[data-mode=title] .title-screen .logo small{font-size:10px}
 #stage[data-mode=title] .title-screen .logo em{font-size:15px}
 #stage[data-mode=title] .title-screen .cast-carousel{width:min(100%,270px)}
 #stage[data-mode=title] .title-screen .cast-strip .portrait{width:32px;height:42px}
 #stage[data-mode=title] .title-screen .title-play-actions{grid-column:2;grid-row:1;grid-template-columns:1fr 1fr;gap:7px}
 #stage[data-mode=title] .title-play-actions .mode-card{min-height:94px;padding:9px 6px;gap:5px}
 #stage[data-mode=title] .mode-card strong{font-size:8px}
 #stage[data-mode=title] .mode-card span{font-size:17px}
 #stage[data-mode=title] .mode-card small{font-size:14px}
 #stage[data-mode=title] .sandbox-option{padding:5px 7px}
 #stage[data-mode=title] .sandbox-option p{font-size:16px}
 #stage[data-mode=title] .sandbox-option>small{font-size:13px}
 #stage[data-mode=title] .title-screen .course-offer,#stage[data-mode=title] .title-footer{grid-column:1/-1}
 #stage[data-mode=title] .title-extras>summary{padding:6px 2px}
 #root #stage[data-mode=shop] .shop-panel.compact-shop{padding:8px;gap:4px}
 #stage .compact-shop .shop-title h2{font-size:11px}
 #stage .compact-shop .shop-capacity{font-size:16px}
 #stage .compact-shop .shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 #stage .compact-shop .shop-card{padding:8px;gap:3px}
 #stage .compact-shop .shop-item-icon{flex-basis:28px;width:28px;height:28px}
 #stage .compact-shop .shop-card h3{font-size:8px}
 #stage .compact-shop .shop-effect{font-size:17px}
 #stage .compact-shop .shop-item-heading{grid-template-columns:28px minmax(0,1fr) auto;gap:4px 6px}
}
@media(orientation:landscape) and (max-width:740px){
 #stage .compact-shop .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #stage[data-mode=title] .community-links a{gap:4px;padding:6px;font-size:7px}
 #stage[data-mode=title] .community-links svg{width:16px;height:16px}
}
