/*
 * Fbrkha Game Experience v1 — 2026-09-18
 * Modern-only. Entry, setup, lobby and host chrome. Gameplay rules untouched.
 */
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"]{
  --fx-accent:#ff5aa9;
  --fx-accent-2:#a84dff;
  --fx-gold:#ffd568;
  --fx-panel:rgba(28,13,47,.90);
  --fx-panel-soft:rgba(255,255,255,.045);
  --fx-line:rgba(255,255,255,.09);
  --fx-muted:#c6b9cf;
  background:
    radial-gradient(circle at 78% 5%,rgba(255,90,169,.12),transparent 27rem),
    radial-gradient(circle at 12% 28%,rgba(151,73,255,.17),transparent 30rem),
    linear-gradient(155deg,#140723,#080512 58%,#07040f)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] #app.app-shell{
  width:min(1160px,calc(100% - 28px));
  margin-inline:auto;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] #app.home-shell{
  min-height:calc(100svh - 30px);
  display:grid;
  align-content:center;
  gap:16px;
  padding-block:26px 42px;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .floating-utility-actions{
  position:fixed!important;
  top:14px!important;
  left:14px!important;
  z-index:80!important;
  display:flex!important;
  gap:7px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .floating-utility-actions>*{
  min-height:44px!important;
  border:1px solid var(--fx-line)!important;
  border-radius:13px!important;
  background:rgba(14,7,25,.78)!important;
  color:#eee5f3!important;
  box-shadow:0 10px 28px rgba(0,0,0,.20)!important;
  backdrop-filter:blur(16px)!important;
}

:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .brand-hero{
  min-height:330px!important;
  display:grid!important;
  place-items:center!important;
  align-content:center!important;
  gap:12px!important;
  margin:0!important;
  padding:44px 28px!important;
  overflow:hidden!important;
  position:relative!important;
  border:1px solid var(--fx-line)!important;
  border-radius:32px!important;
  background:
    radial-gradient(circle at 50% 16%,rgba(255,90,169,.14),transparent 18rem),
    radial-gradient(circle at 78% 70%,rgba(160,74,255,.18),transparent 22rem),
    linear-gradient(145deg,rgba(40,17,62,.90),rgba(16,8,29,.92))!important;
  box-shadow:0 26px 80px rgba(0,0,0,.30),inset 0 1px rgba(255,255,255,.04)!important;
  text-align:center!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .brand-hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(120deg,transparent 0 48%,rgba(255,255,255,.022) 48.4% 49.4%,transparent 49.8%),
    radial-gradient(circle at 20% 20%,rgba(255,213,104,.07),transparent 12rem);
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .brand-hero .logo{
  position:relative;
  z-index:1;
  width:min(430px,78vw)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .brand-hero .logo-image{
  width:100%!important;
  max-height:145px!important;
  object-fit:contain!important;
  filter:drop-shadow(0 16px 30px rgba(0,0,0,.32));
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .brand-tagline{
  position:relative;
  z-index:1;
  margin:5px 0 0!important;
  color:#fff!important;
  font-size:clamp(19px,2.2vw,29px)!important;
  font-weight:900!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .brand-tagline strong{color:var(--fx-gold)!important}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .brand-subtitle{
  position:relative;
  z-index:1;
  max-width:620px;
  margin:0!important;
  color:var(--fx-muted)!important;
  font-size:14px!important;
  line-height:1.75!important;
}

:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .home-actions{
  display:grid!important;
  grid-template-columns:1.15fr 1.15fr 1fr .8fr!important;
  gap:11px!important;
  margin:0!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .home-action{
  min-height:116px!important;
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  padding:18px!important;
  border:1px solid var(--fx-line)!important;
  border-radius:22px!important;
  background:linear-gradient(160deg,rgba(31,16,51,.86),rgba(16,9,29,.91))!important;
  color:#fff!important;
  box-shadow:0 15px 42px rgba(0,0,0,.20)!important;
  text-align:right!important;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .home-action:hover{
  transform:translateY(-3px)!important;
  border-color:rgba(255,90,169,.30)!important;
  box-shadow:0 20px 50px rgba(0,0,0,.28)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .home-action-create{
  border-color:rgba(255,90,169,.24)!important;
  background:
    radial-gradient(circle at 15% 20%,rgba(255,213,104,.08),transparent 10rem),
    linear-gradient(140deg,rgba(103,33,111,.78),rgba(41,16,65,.94))!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .home-action-icon{
  flex:0 0 48px!important;
  width:48px!important;height:48px!important;
  display:grid!important;place-items:center!important;
  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.055)!important;
  color:var(--fx-gold)!important;
  font-size:24px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .home-action b{
  display:block;
  color:#fff!important;
  font-size:17px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .home-action small{
  display:block;
  margin-top:5px;
  color:#bfb2ca!important;
  line-height:1.55!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .home-features{
  display:grid!important;
  grid-template-columns:repeat(3,1fr)!important;
  gap:9px!important;
  margin:0!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .home-features>div{
  padding:13px 15px!important;
  border:1px solid rgba(255,255,255,.065)!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.025)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .home-features b{color:#fff!important}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .home-features span{color:#aa9db5!important}

/* Setup */
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] #app.public-screen:not(.home-shell){
  max-width:1080px;
  padding:76px 0 52px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .page-head{
  margin:0 0 14px!important;
  padding:0 4px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .page-head h1{
  margin:0!important;
  color:#fff!important;
  font-size:clamp(30px,4vw,48px)!important;
  letter-spacing:-1px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .page-head p{color:var(--fx-muted)!important}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .setup-card{
  padding:clamp(18px,3vw,30px)!important;
  border:1px solid var(--fx-line)!important;
  border-radius:28px!important;
  background:
    radial-gradient(circle at 86% 0,rgba(255,90,169,.08),transparent 18rem),
    linear-gradient(180deg,rgba(29,15,49,.94),rgba(14,8,26,.96))!important;
  box-shadow:0 26px 75px rgba(0,0,0,.30)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .setup-card>.label{
  margin-top:18px!important;
  color:#eadff0!important;
  font-weight:900!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .setup-card>.label:first-child{margin-top:0!important}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] :is(.input,.setup-card input,.setup-card select){
  min-height:50px!important;
  border:1px solid rgba(255,255,255,.095)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.045)!important;
  color:#fff!important;
  box-shadow:none!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .segmented{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:7px!important;
  padding:5px!important;
  border:1px solid rgba(255,255,255,.07)!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.025)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .segment{
  min-height:43px!important;
  border:0!important;
  border-radius:11px!important;
  color:#cbbfd3!important;
  background:transparent!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .segment.active{
  background:linear-gradient(135deg,rgba(255,90,169,.30),rgba(153,76,255,.25))!important;
  color:#fff!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .setup-feature-block{
  margin-top:18px!important;
  padding:17px!important;
  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.027)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .category-picker-head{
  align-items:center!important;
  margin-bottom:11px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .category-picker-head strong{
  padding:5px 9px!important;
  border-radius:999px!important;
  background:rgba(255,90,169,.09)!important;
  color:#ffdce9!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .category-preset-row{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  margin-bottom:12px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .category-preset{
  min-height:38px!important;
  padding:7px 11px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.035)!important;
  color:#ddd1e4!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .category-preset.active{
  border-color:rgba(255,213,104,.25)!important;
  background:rgba(255,213,104,.08)!important;
  color:#fff3c8!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .category-choice-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .category-choice-wrap{
  position:relative!important;
  min-width:0!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .category-choice{
  width:100%!important;
  min-height:76px!important;
  padding:12px 40px 12px 12px!important;
  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.035)!important;
  color:#fff!important;
  text-align:right!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .category-choice.selected{
  border-color:rgba(255,90,169,.35)!important;
  background:linear-gradient(145deg,rgba(255,90,169,.12),rgba(153,76,255,.07))!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .choice-card,
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .settings-toggle-stack{
  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.025)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .choice-card.selected{
  border-color:rgba(168,77,255,.32)!important;
  background:rgba(168,77,255,.09)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .setup-final-actions{
  position:sticky!important;
  bottom:10px!important;
  z-index:12!important;
  display:grid!important;
  grid-template-columns:auto minmax(220px,1fr)!important;
  gap:9px!important;
  margin-top:22px!important;
  padding:9px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:17px!important;
  background:rgba(12,7,22,.88)!important;
  box-shadow:0 16px 45px rgba(0,0,0,.35)!important;
  backdrop-filter:blur(16px)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] #createBtn{
  min-height:52px!important;
  border:0!important;
  border-radius:13px!important;
  background:linear-gradient(135deg,var(--fx-accent),var(--fx-accent-2))!important;
  color:#fff!important;
  box-shadow:0 12px 28px rgba(168,77,255,.22)!important;
}

/* Lobby and host chrome */
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] #app.game-shell{
  width:min(1240px,calc(100% - 24px))!important;
  padding:12px 0 96px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .game-hud{
  margin-bottom:13px!important;
  padding:8px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:19px!important;
  background:rgba(14,7,25,.86)!important;
  box-shadow:0 14px 40px rgba(0,0,0,.24)!important;
  backdrop-filter:blur(18px)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .game-hud-main{min-height:50px!important}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .hud-button,
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .hud-chip{
  min-height:40px!important;
  border-radius:11px!important;
  border-color:rgba(255,255,255,.08)!important;
  background:rgba(255,255,255,.035)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .room-mini{
  border-color:rgba(255,213,104,.20)!important;
  color:#fff2bc!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .lobby-hero{
  margin:4px 0 12px!important;
  padding:17px 20px!important;
  border:1px solid rgba(255,255,255,.06)!important;
  border-radius:19px!important;
  background:rgba(255,255,255,.025)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .lobby-hero h1{
  margin:0!important;
  color:#fff!important;
  font-size:clamp(25px,3vw,38px)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .lobby-hero p{margin:.3rem 0 0!important;color:var(--fx-muted)!important}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .lobby-layout{
  display:grid!important;
  grid-template-columns:minmax(280px,350px) minmax(0,1fr)!important;
  gap:12px!important;
  align-items:stretch!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .lobby-join-card,
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .lobby-panel{
  min-width:0!important;
  padding:20px!important;
  border:1px solid rgba(255,255,255,.085)!important;
  border-radius:25px!important;
  background:
    radial-gradient(circle at 80% 0,rgba(255,90,169,.08),transparent 14rem),
    linear-gradient(180deg,rgba(28,14,47,.94),rgba(14,8,26,.95))!important;
  box-shadow:0 20px 58px rgba(0,0,0,.26)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .lobby-join-card{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  text-align:center!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] #qrWrap{
  width:min(250px,100%)!important;
  aspect-ratio:1!important;
  padding:12px!important;
  border:0!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:0 17px 42px rgba(0,0,0,.27)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] #qrWrap img{
  width:100%!important;height:100%!important;object-fit:contain!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .lobby-code-label{
  margin-top:14px!important;
  color:#a99bb4!important;
  font-size:11px!important;
  font-weight:850!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .room-code{
  margin:3px 0 11px!important;
  color:#fff4c8!important;
  font-size:clamp(38px,5vw,58px)!important;
  line-height:1!important;
  letter-spacing:.14em!important;
  font-weight:950!important;
  text-shadow:0 0 24px rgba(255,213,104,.14)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .join-direct-link{
  width:100%;
  margin-top:11px!important;
  padding-top:11px!important;
  border-top:1px solid rgba(255,255,255,.06)!important;
  color:#a99bb4!important;
  font-size:11px!important;
  overflow:hidden!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .join-direct-link a{
  max-width:100%;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d7c6e3!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .players-title{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  margin-bottom:8px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .players-title h3{margin:0!important;color:#fff!important;font-size:21px!important}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .players-title>span{
  padding:5px 9px!important;border-radius:999px!important;background:rgba(255,255,255,.05)!important;color:#d8ccdf!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .lobby-ready-status{
  margin-bottom:11px!important;
  padding:10px 12px!important;
  border-radius:13px!important;
  background:rgba(255,213,104,.055)!important;
  color:#d9cda5!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .lobby-ready-status.ready{
  background:rgba(72,211,142,.08)!important;
  color:#bff0d3!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .player-chips{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .player-chip{
  min-width:0!important;
  min-height:54px!important;
  border:1px solid rgba(255,255,255,.07)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.035)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .lobby-options-stack{
  display:grid!important;
  gap:7px!important;
  margin-top:12px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .lobby-option{
  min-height:58px!important;
  padding:10px 12px!important;
  border:1px solid rgba(255,255,255,.065)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.025)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .lobby-start{
  width:100%!important;
  min-height:52px!important;
  margin-top:12px!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,var(--fx-accent),var(--fx-accent-2))!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .host-tools-panel{
  border:1px solid rgba(255,255,255,.09)!important;
  background:rgba(13,7,24,.91)!important;
  box-shadow:0 -12px 42px rgba(0,0,0,.30)!important;
  backdrop-filter:blur(18px)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .host-toolbar{
  gap:7px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .host-toolbar .btn{
  min-height:44px!important;
  border-radius:12px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .stage-players,
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .team-scoreboard,
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .answer-entry-card,
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .host-player-vote-card{
  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:20px!important;
  background:rgba(20,10,35,.80)!important;
  box-shadow:0 14px 40px rgba(0,0,0,.18)!important;
}

@media(max-width:800px){
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] #app.app-shell{width:calc(100% - 16px)!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] #app.home-shell{padding-top:68px!important;align-content:start!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .brand-hero{min-height:265px!important;padding:34px 17px!important;border-radius:25px!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .home-actions{grid-template-columns:1fr!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .home-action{min-height:88px!important;padding:14px!important;border-radius:18px!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .home-features{grid-template-columns:1fr 1fr!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .home-features>div:last-child{grid-column:1/-1}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] #app.public-screen:not(.home-shell){padding-top:72px!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .segmented{grid-template-columns:repeat(5,minmax(0,1fr))!important;overflow-x:auto!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .segment{min-width:52px!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .category-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .setup-final-actions{grid-template-columns:1fr!important;bottom:76px!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .lobby-layout{grid-template-columns:1fr!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] #qrWrap{width:min(220px,70vw)!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .player-chips{grid-template-columns:1fr!important}
}
@media(max-width:390px){
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .category-choice-grid{grid-template-columns:1fr!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="fbrkha"] .brand-tagline{font-size:18px!important}
}

/* v1.1 — desktop host-toolbar containment guard.
   Loaded last so medium/mobile sticky rules can never leak into 1200px+ host views. */
@media (min-width:1200px){
  :root[data-ui-mode="modern"] body.host-active[data-game-brand="fbrkha"] #app[data-fbrkha-role="host"] .host-tools-panel.always-visible{
    position:fixed!important;
    inset-inline:auto!important;
    left:50%!important;
    right:auto!important;
    bottom:10px!important;
    transform:translateX(-50%)!important;
    width:min(1080px,calc(100% - 24px))!important;
    max-width:1080px!important;
    margin:0!important;
  }
}
