/* Scope the viewport and scroll owner to the character-choice screen only.
   Override the legacy mobile shell and the later full-page light theme. */
.tca-stage:has(.tca-shell-app>.tca-player-choice){
  box-sizing:border-box!important;
  display:block!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:0!important;
  max-height:100vh!important;
  max-height:100dvh!important;
  padding:0!important;
  overflow:hidden!important;
}
.tca-shell-app:has(>.tca-player-choice){
  box-sizing:border-box!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
}
.tca-shell-app>.tca-player-choice{
  --text:#1c1526;
  --muted:#655c78;
  --panel:#fff;
  --bg:#f7f5fb;
  --line:#ddd6eb;
  --primary:#5621a0;
  --primary-soft:#efe6fa;
  color:var(--text);
  box-sizing:border-box;
  width:100%;
  max-width:1040px;
  height:100%;
  min-height:0;
  margin:0 auto;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  padding:24px;
  padding-top:max(24px,env(safe-area-inset-top));
  padding-right:max(24px,env(safe-area-inset-right));
  padding-bottom:max(24px,env(safe-area-inset-bottom));
  padding-left:max(24px,env(safe-area-inset-left));
  scroll-padding-block:24px;
}
.tca-player-choice *,.tca-player-choice *::before,.tca-player-choice *::after{box-sizing:border-box}
.tca-player-choice .tca-kicker{color:var(--primary)!important}
.tca-player-choice .tca-player-choice-back{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){
  .tca-shell-app>.tca-player-choice{
    padding:16px;
    padding-top:max(16px,env(safe-area-inset-top));
    padding-right:max(16px,env(safe-area-inset-right));
    padding-bottom:max(24px,env(safe-area-inset-bottom));
    padding-left:max(16px,env(safe-area-inset-left));
    scroll-padding-block:16px;
  }
  .tca-player-choice .tca-player-choice-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  .tca-player-choice .tca-player-choice-card img{height:220px}
  .tca-player-choice .tca-player-choice-back{display:block;width:100%;margin-top:12px}
}
