/* r944: entry/setup ONLY, not the live game board. Completes the missing
   light-mode contrast on Fbrkha, preserving each game's brand personality. */
:root[data-theme="light"][data-ui-mode="modern"] body[data-game-brand="fbrkha"] #app.home-shell{
 background:#fff!important;color:#241832!important;border-color:#d7c8e4!important;
}
:root[data-theme="light"][data-ui-mode="modern"] body[data-game-brand="fbrkha"] #app.home-shell :is(
 .brand-tagline,.brand-tagline strong,.brand-tagline b,.brand-subtitle,
 .brand-hero h1,.brand-hero h2
){
 color:#30203f!important;opacity:1!important;text-shadow:none!important;
}
:root[data-theme="light"][data-ui-mode="modern"] body[data-game-brand="fbrkha"] #app.home-shell .home-action:is(.home-action-join,.home-action-how){
 background:#fff!important;color:#291b3a!important;border:2px solid #8465aa!important;
 box-shadow:0 4px 16px rgba(41,27,58,.09)!important;
}
:root[data-theme="light"][data-ui-mode="modern"] body[data-game-brand="fbrkha"] #app.home-shell .home-action:is(.home-action-join,.home-action-how) :is(b,strong,small,.home-action-icon){
 color:#352447!important;opacity:1!important;text-shadow:none!important;
}
:root[data-theme="light"][data-ui-mode="modern"] body[data-game-brand="fbrkha"] #app.home-shell .home-action-create{
 background:#492d70!important;color:#fff!important;border:2px solid #6f4b9f!important;
}
:root[data-theme="light"][data-ui-mode="modern"] body[data-game-brand="fbrkha"] #app.home-shell .home-action-create :is(b,strong,small,.home-action-icon){
 color:#fff!important;opacity:1!important;text-shadow:none!important;
}
:root[data-ui-mode="modern"] body[data-game-brand="fbrkha"] #app.home-shell .home-action{
 min-height:68px!important;line-height:1.5!important;overflow-wrap:anywhere!important;
}
:root[data-ui-mode="modern"] body[data-game-brand="fbrkha"] #app.home-shell .home-action :is(b,small){
 display:block;white-space:normal!important;max-width:100%;
}
/* Avoid horizontal overflow and lost buttons in all four landing/setups.
   We intentionally do not hide or auto-submit authentication/settings. */
:root[data-ui-mode="modern"] body[data-game-brand] :is(
 #app.home-shell,.qadha-setup-v217,.k-setup-shell,#setupView
){min-width:0;max-width:100%;overflow-wrap:break-word;}
:root[data-ui-mode="modern"] body[data-game-brand] :is(
 #app.home-shell,.qadha-setup-v217,.k-setup-shell,#setupView
) :is(button,a[role="button"]){touch-action:manipulation;-webkit-tap-highlight-color:transparent;}
:root[data-ui-mode="modern"] body[data-game-brand] :is(
 #app.home-shell,.qadha-setup-v217,.k-setup-shell,#setupView
) :is(button,input,select,a):focus-visible{
 outline:3px solid #b27ee8!important;outline-offset:3px!important;
}
:root[data-theme="light"][data-ui-mode="modern"] body[data-game-brand] :is(
 #app.home-shell,.qadha-setup-v217,.k-setup-shell,#setupView
) :is(input:not([type=checkbox]),textarea,select):disabled{
 opacity:.75!important;color:#51415e!important;
}
/* Small-screen fast-start remains visibly accessible without cropping any form. */
@media(max-width:600px){
 :root[data-ui-mode="modern"] body[data-game-brand="fbrkha"] #app.home-shell .home-actions{
  grid-template-columns:minmax(0,1fr)!important;gap:10px!important;
 }
 :root[data-ui-mode="modern"] body[data-game-brand="fbrkha"] #app.home-shell .home-action{
  width:100%!important;padding:13px 15px!important;
 }
 :root[data-ui-mode="modern"] body[data-game-brand] :is(
 .qadha-setup-v217,.k-setup-shell,#setupView
 ) :is(.qadha-fast-start,.top10-fast-start){max-width:100%;min-width:0;}
}
@media(prefers-reduced-motion:reduce){
 :root[data-ui-mode="modern"] body[data-game-brand] :is(
 #app.home-shell,.qadha-setup-v217,.k-setup-shell,#setupView
 ) :is(button,a){animation:none!important;transition:none!important}
}
