/* Reviewer fixes: dialog content and creation controls must keep their own usable space. */
.modal-wallet{
 max-height:calc(100dvh - 20px);overflow-x:hidden;overflow-y:auto;
 overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:24px;
}
.modal-wallet>p:last-child{margin-bottom:0;padding-bottom:2px;line-height:1.5}
.modal-wallet .wallet-earn-rates{min-width:0}
.modal-wallet .coin-ad-offer{min-width:0}
/* Selected rings stay inside a padded swatch track, including the leftmost swatch. */
.appearance-swatches{padding:4px;min-width:0;box-sizing:border-box}
.appearance-swatches button{flex-shrink:0}
body.creating .setup-panel .creation-step-1{padding-left:4px;padding-right:6px}
body.creating .appearance-last-row{padding-left:4px;padding-right:4px}
body.creating .creation-step-3>.academy-catalog-layout{flex:1 0 132px;min-height:132px}
body.creating .setup-panel .creation-step-3{overflow-y:auto;overflow-x:hidden}
@media(max-height:650px){
 .modal-wallet{padding:16px 18px 20px}
 .modal-wallet>h2{font-size:27px;margin:8px 0 12px;line-height:1.1;padding-right:22px}
 .modal-wallet .wallet-balance{padding:12px 0;gap:10px}
 .modal-wallet .wallet-balance>b{font-size:40px}
 .modal-wallet>p{font-size:13px;line-height:1.4;margin:10px 0}
 .modal-wallet .coin-ad-offer{padding:14px;margin:14px 0}
 .modal-wallet .coin-ad-title{margin-bottom:12px;gap:10px}
 .modal-wallet .coin-ad-title h3{font-size:15px}
 .modal-wallet .coin-ad-title span{font-size:11px}
 .modal-wallet .coin-ad-offer>small{font-size:10px;margin-top:9px}
 .modal-wallet .wallet-earn-rates{margin-bottom:10px;gap:8px}
 .modal-wallet .wallet-earn-rates>span{padding:8px 4px;gap:4px}
 .modal-wallet .wallet-earn-rates b{font-size:20px}
}
@media(max-height:480px){
 body.creating .setup-layout{grid-template-columns:minmax(0,1fr)}
 body.creating .game-hud,body.creating .game-footer{display:none}
 body.creating .main-shell>main{padding:8px 0}
 body.creating .setup-panel{padding:10px}
 body.creating .steps{margin-bottom:6px}
 body.creating .steps .step{min-height:30px;padding:5px 4px}
 body.creating .wizard-footer{padding-top:6px;margin-top:6px}
 body.creating .wizard-footer .btn{min-height:40px;padding:7px 14px}
 body.creating .creation-step-3>.academy-catalog-layout{flex:1 0 114px;min-height:114px}
 body.creating .creation-step-3>.academy-toolbar{min-height:30px}
 body.creating .academy-toolbar .academy-wallet{display:none}
 body.creating .academy-toolbar .academy-filter{margin-left:auto}
 body.creating .academy-filter button{padding:5px 9px;min-height:28px}
}
@media(min-width:560px) and (max-height:480px){
 .modal-wallet{max-width:720px;width:720px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:0 20px;padding:16px 20px 18px}
 .modal-wallet>.eyebrow{grid-column:1;grid-row:1;font-size:10px}
 .modal-wallet>h2{grid-column:1;grid-row:2;margin:6px 0 0;font-size:26px;padding-right:0}
 .modal-wallet>.wallet-balance{grid-column:1;grid-row:3;padding:10px 0}
 .modal-wallet>p:first-of-type{grid-column:1;grid-row:4;font-size:12px;margin:0 0 8px}
 .modal-wallet>.coin-ad-offer{grid-column:2;grid-row:2/6;align-self:center;margin:0;padding:14px}
 .modal-wallet>.wallet-earn-rates{grid-column:1;grid-row:5;margin:0}
 .modal-wallet>p:last-child{grid-column:1/-1;grid-row:6;font-size:11px;margin:12px 0 0;padding:0}
 .modal-wallet .coin-ad-title{flex-wrap:wrap}
 .modal-wallet .coin-ad-title h3{font-size:15px}
 .modal-wallet .coin-ad-title>b{font-size:28px}
 .modal-wallet .coin-ad-offer .btn{font-size:11px;padding:10px 8px;min-height:42px}
 .modal-wallet .wallet-earn-rates>span{font-size:11px;padding:7px 3px}
 .modal-wallet .wallet-earn-rates b{font-size:18px}
 body.creating .setup-panel .creation-step-3{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:34px 32px minmax(114px,1fr);gap:6px 10px}
 body.creating .creation-step-3>.academy-toolbar{grid-column:2;grid-row:1;min-width:0}
 body.creating .creation-step-3>.league-rail{grid-column:1;grid-row:1;min-width:0;height:34px}
 body.creating .creation-step-3>.search-field{grid-column:1/-1;grid-row:2;min-width:0}
 body.creating .creation-step-3>.academy-catalog-layout{grid-column:1/-1;grid-row:3;min-height:114px}
 body.creating .creation-step-3 .search-field input{min-height:32px;height:32px;padding-top:5px;padding-bottom:5px}
 body.creating .creation-step-3 .academy-catalog-layout{display:block}
 body.creating .creation-step-3 .academy-dossier{display:none}
 body.creating .creation-step-3 .club-list{height:auto;min-height:114px;overflow:visible}
}
/* Academy selection needs option space before the sticky wizard actions. */
@media(max-height:650px){
 body.creating:has(.creation-step-3) .setup-preview,
 body.creating:has(.creation-step-3) .creation-heading,
 body.creating:has(.creation-step-3) .game-hud,
 body.creating:has(.creation-step-3) .game-footer{display:none}
 body.creating .setup-layout[data-step="3"]{grid-template-columns:minmax(0,1fr)}
 body.creating:has(.creation-step-3) .main-shell>main{padding:8px 0}
 body.creating:has(.creation-step-3) .setup-panel{padding:10px}
 body.creating:has(.creation-step-3) .steps{margin-bottom:6px}
 body.creating:has(.creation-step-3) .steps .step{min-height:30px;padding:5px 4px}
 body.creating:has(.creation-step-3) .wizard-footer{padding-top:6px;margin-top:6px}
 body.creating:has(.creation-step-3) .wizard-footer .btn{min-height:40px;padding:7px 14px}
}
@media(min-width:560px) and (max-height:650px){
 body.creating .setup-panel .creation-step-3{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:34px 32px minmax(114px,1fr);gap:6px 10px}
 body.creating .creation-step-3>.academy-toolbar{grid-column:2;grid-row:1;min-width:0;min-height:30px}
 body.creating .creation-step-3 .academy-wallet{display:none}
 body.creating .creation-step-3 .academy-filter{margin-left:auto}
 body.creating .creation-step-3 .academy-filter button{padding:5px 9px;min-height:28px}
 body.creating .creation-step-3>.league-rail{grid-column:1;grid-row:1;min-width:0;height:34px}
 body.creating .creation-step-3>.search-field{grid-column:1/-1;grid-row:2;min-width:0}
 body.creating .creation-step-3>.academy-catalog-layout{grid-column:1/-1;grid-row:3;min-height:114px;display:block}
 body.creating .creation-step-3 .search-field input{min-height:32px;height:32px;padding-top:5px;padding-bottom:5px}
 body.creating .creation-step-3 .academy-dossier{display:none}
 body.creating .creation-step-3 .club-list{height:auto;min-height:114px;overflow:visible}
}
@media(min-width:560px) and (max-height:650px){
 body.creating .creation-step-3>.academy-catalog-layout{overflow:hidden}
 body.creating .creation-step-3 .club-list{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain}
}
body.creating .creation-step-3>.academy-catalog-layout{overflow:hidden}
body.creating .creation-step-3 .club-list{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain}
