/*
 * Qadha Game Experience v1 — 2026-09-18
 * Modern-only. Entry/setup/navigation chrome only.
 * Approved board cells, category layout and team footer are deliberately not targeted.
 */
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"]{
  --qx-gold:#ffd568;
  --qx-purple:#9b58ff;
  --qx-cyan:#67e6ee;
  --qx-panel:rgba(27,14,47,.90);
  --qx-line:rgba(255,255,255,.085);
  --qx-muted:#c5b9ce;
  background:
    radial-gradient(circle at 80% 8%,rgba(255,213,104,.08),transparent 25rem),
    radial-gradient(circle at 12% 32%,rgba(120,64,225,.17),transparent 30rem),
    linear-gradient(155deg,#130921,#080512 58%,#07040f)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-nav{
  width:min(1220px,calc(100% - 28px))!important;
  min-height:68px!important;
  margin:14px auto 0!important;
  padding:9px 12px!important;
  border:1px solid var(--qx-line)!important;
  border-radius:22px!important;
  background:rgba(14,8,26,.88)!important;
  box-shadow:0 15px 48px rgba(0,0,0,.28)!important;
  backdrop-filter:blur(20px)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-brand{
  min-width:150px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-brand .game-brand-logo{
  width:42px!important;height:42px!important;object-fit:contain!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-nav nav{
  gap:4px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-nav nav :is(a,button){
  min-height:44px!important;
  padding:8px 11px!important;
  border-radius:12px!important;
  color:#ddd2e4!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-nav nav :is(a,button):hover{
  background:rgba(155,88,255,.10)!important;
  color:#fff!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] #qAccountBtn{
  border:1px solid rgba(255,213,104,.18)!important;
  background:rgba(255,213,104,.055)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"]:not(.q-game-active) #qApp{
  width:min(1220px,calc(100% - 28px))!important;
  margin:14px auto 48px!important;
}

:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-q{
  min-height:520px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(300px,.92fr)!important;
  align-items:center!important;
  gap:30px!important;
  padding:48px!important;
  overflow:hidden!important;
  position:relative!important;
  border:1px solid var(--qx-line)!important;
  border-radius:32px!important;
  background:
    radial-gradient(circle at 75% 35%,rgba(155,88,255,.20),transparent 22rem),
    radial-gradient(circle at 18% 18%,rgba(255,213,104,.07),transparent 17rem),
    linear-gradient(145deg,rgba(34,17,57,.90),rgba(14,8,26,.91))!important;
  box-shadow:0 26px 80px rgba(0,0,0,.30),inset 0 1px rgba(255,255,255,.04)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-q>div:first-child{
  text-align:right!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-q .pill{
  display:inline-flex!important;
  min-height:32px!important;
  align-items:center!important;
  padding:6px 11px!important;
  border:1px solid rgba(255,213,104,.18)!important;
  border-radius:999px!important;
  background:rgba(255,213,104,.055)!important;
  color:#fff0b8!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-q h1{
  margin:12px 0 8px!important;
  color:#fff!important;
  font-size:clamp(58px,7vw,96px)!important;
  line-height:.95!important;
  letter-spacing:-3px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-q h1 span{color:var(--qx-gold)!important}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-q p{
  max-width:630px!important;
  margin:0!important;
  color:var(--qx-muted)!important;
  font-size:17px!important;
  line-height:1.8!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-q .actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:9px!important;
  margin-top:22px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-q .btn{
  min-height:50px!important;
  padding-inline:18px!important;
  border-radius:14px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-q .btn-primary{
  background:linear-gradient(135deg,#8e4df0,#6730cc)!important;
  box-shadow:0 12px 30px rgba(103,48,204,.25)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-panel{
  min-height:360px!important;
  display:grid!important;
  place-items:center!important;
  position:relative!important;
  border:1px solid rgba(255,255,255,.06)!important;
  border-radius:28px!important;
  background:
    radial-gradient(circle,rgba(155,88,255,.23),rgba(69,26,111,.11) 55%,transparent 72%)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-panel::before,
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-panel::after{
  content:"";
  position:absolute;
  width:210px;height:150px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:24px;
  background:linear-gradient(140deg,rgba(255,213,104,.07),rgba(155,88,255,.10));
  transform:rotate(-8deg) translate(-26px,12px);
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-panel::after{
  transform:rotate(7deg) translate(26px,22px);
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-panel img{
  width:min(250px,70%)!important;
  max-height:190px!important;
  object-fit:contain!important;
  z-index:2;
  filter:drop-shadow(0 15px 28px rgba(0,0,0,.32));
}

/* Setup — board is deliberately excluded */
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .setup-page{
  padding:clamp(18px,3vw,30px)!important;
  border:1px solid var(--qx-line)!important;
  border-radius:29px!important;
  background:
    radial-gradient(circle at 86% 0,rgba(255,213,104,.055),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="qadha"] .page-title-row{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:16px!important;
  margin-bottom:19px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .page-title-row h1{
  margin:.35rem 0 0!important;
  color:#fff!important;
  font-size:clamp(31px,4vw,48px)!important;
  letter-spacing:-1.2px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .setup-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .setup-grid .full{grid-column:1/-1!important}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .field{
  min-width:0!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .field>label,
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .field>h2{
  color:#eadff0!important;
  font-weight:900!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .setup-page :is(input,textarea,select){
  width:100%!important;
  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="qadha"] .setup-page textarea{
  min-height:96px!important;
  resize:vertical!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .qadha-team-split{
  margin-top:10px!important;
  padding:14px!important;
  border:1px solid rgba(255,255,255,.07)!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.025)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .qadha-team-split header{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .qadha-team-preview{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  margin-top:11px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .qadha-team-preview-card{
  min-width:0!important;
  padding:12px!important;
  border:1px solid rgba(255,255,255,.07)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.03)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .qadha-category-heading{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .qadha-content-packs{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  margin:10px 0!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .qadha-pack-chip{
  min-height:72px!important;
  padding:11px!important;
  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.03)!important;
  color:#fff!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .qadha-pack-chip:hover{
  border-color:rgba(255,213,104,.22)!important;
  background:rgba(255,213,104,.055)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .category-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  margin-top:10px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .cat-card{
  min-width:0!important;
  min-height:92px!important;
  padding:12px!important;
  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.03)!important;
  color:#fff!important;
  box-shadow:none!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .cat-card.selected{
  border-color:rgba(255,213,104,.35)!important;
  background:linear-gradient(145deg,rgba(255,213,104,.10),rgba(155,88,255,.07))!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .selected-count{
  margin-top:9px!important;
  padding:8px 11px!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.03)!important;
  color:#c8bdcf!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .selected-count b{color:var(--qx-gold)!important}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .qadha-setup-options,
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .help-setup-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .toggle-card,
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .qadha-board-theme-field{
  min-width:0!important;
  min-height:102px!important;
  padding:12px!important;
  border:1px solid rgba(255,255,255,.075)!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.03)!important;
  color:#fff!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .toggle-card:has(input:checked){
  border-color:rgba(103,230,238,.25)!important;
  background:rgba(103,230,238,.055)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .qadha-setup-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;
  padding:9px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:17px!important;
  background:rgba(12,7,22,.89)!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="qadha"] .qadha-setup-actions .start-game-btn{
  min-height:52px!important;
  border:0!important;
  border-radius:13px!important;
  background:linear-gradient(135deg,#8e4df0,#6831ce)!important;
  color:#fff!important;
}

/* Modal and board chrome only — no board cells/layout */
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-modal{
  background:rgba(5,2,10,.72)!important;
  backdrop-filter:blur(12px)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-modal-card{
  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:25px!important;
  background:
    radial-gradient(circle at 82% 0,rgba(155,88,255,.16),transparent 17rem),
    linear-gradient(180deg,#211138,#0e081a)!important;
  box-shadow:0 30px 90px rgba(0,0,0,.52)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-game-toolbar{
  border:1px solid rgba(255,255,255,.08)!important;
  background:rgba(12,7,23,.91)!important;
  box-shadow:0 13px 40px rgba(0,0,0,.24)!important;
  backdrop-filter:blur(18px)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-toolbar-action{
  min-height:42px!important;
  border-radius:11px!important;
  border-color:rgba(255,255,255,.07)!important;
  background:rgba(255,255,255,.03)!important;
}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-board-brand strong{color:#fff!important}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-board-slogan{color:#bdb1c7!important}
:root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .premium-turn-pill{
  border-color:rgba(255,213,104,.18)!important;
  background:rgba(255,213,104,.055)!important;
}

@media(max-width:850px){
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-nav{
    width:calc(100% - 16px)!important;
    margin-top:8px!important;
    border-radius:18px!important;
  }
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-brand span{display:none!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-brand{min-width:auto!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-nav nav :is(a,button){padding:7px 9px!important;font-size:12px!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"]:not(.q-game-active) #qApp{
    width:calc(100% - 16px)!important;
    margin-top:8px!important;
  }
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-q{
    min-height:0!important;
    grid-template-columns:1fr!important;
    padding:34px 18px!important;
    border-radius:25px!important;
  }
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-q>div:first-child{text-align:center!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-q h1{font-size:clamp(58px,17vw,78px)!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-q .actions{justify-content:center!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .hero-panel{min-height:220px!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .setup-grid{grid-template-columns:1fr!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .setup-grid .full{grid-column:auto!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .qadha-content-packs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .qadha-setup-options,
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .help-setup-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .qadha-setup-actions{grid-template-columns:1fr!important;bottom:10px!important}
}
@media(max-width:430px){
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-nav nav [data-screen="mygames"],
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .q-nav nav [data-screen="home"]{display:none!important}
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .qadha-team-preview,
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .qadha-content-packs,
  :root[data-ui-mode="modern"] body.fbrkh-next-shell[data-game-brand="qadha"] .category-grid{grid-template-columns:1fr!important}
}
