/* r1035: Khaltaha host round/readability repair, restricted to current host only. */
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .game-head .mode-pill b,
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .game-head .round-pill b{
 color:#f8f6ff!important;-webkit-text-fill-color:#f8f6ff!important;opacity:1!important
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .game-head :is(.mode-pill small,.round-pill small,.timer-shell small){
 color:#cddde4!important;-webkit-text-fill-color:#cddde4!important;opacity:1!important;font-size:clamp(10px,1.4vw,12px)!important
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .game-shell .mode-explain p{
 color:#674158!important;-webkit-text-fill-color:#674158!important;
 opacity:1!important;line-height:1.5!important
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .game-shell .player-chip small,
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .ranking-title p{
 color:#74465b!important;-webkit-text-fill-color:#74465b!important;opacity:1!important
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .lobby-shell .join-board .room-code{
 color:#573348!important;-webkit-text-fill-color:#573348!important;
 background:#fff6d9!important;border-color:#d69e50!important;
 font-weight:900!important;opacity:1!important;overflow-wrap:anywhere!important
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .lobby-shell .join-board .join-url{
 color:#724b59!important;-webkit-text-fill-color:#724b59!important;
 overflow-wrap:anywhere!important;opacity:1!important
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .lobby-shell .join-board .k-btn.ghost{
 color:#48243e!important;-webkit-text-fill-color:#48243e!important;
 background:#fff9fb!important;border:1px solid #caa6b9!important
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .result-list .result-row .result-answer-text{
 color:#61334a!important;-webkit-text-fill-color:#61334a!important;
 overflow-wrap:anywhere!important;font-weight:800!important;opacity:1!important
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .result-list .result-row .result-names span,
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .result-list .result-row>strong{
 color:#552a47!important;-webkit-text-fill-color:#552a47!important;
 overflow-wrap:anywhere!important;opacity:1!important
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .result-list .result-row :is(.approve-answer,[data-merge-agreed]){
 color:#124a40!important;-webkit-text-fill-color:#124a40!important;
 background:#d6fff3!important;border:1px solid #54bdaa!important;
 font-weight:700!important;opacity:1!important
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .ranking-title p{
 font-size:clamp(14px,2vw,17px)!important;line-height:1.5!important
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .ranking-shell .rank-podium-card b{
 color:#593049!important;-webkit-text-fill-color:#593049!important;
 overflow-wrap:anywhere!important;word-break:normal!important;
 white-space:normal!important;min-width:0!important;max-width:100%!important;
 line-height:1.25!important
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .ranking-shell .rank-podium-card strong{
 color:#6c4358!important;-webkit-text-fill-color:#6c4358!important;
 overflow-wrap:anywhere!important
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .finale .final-title h1,
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .finale .podium .place b{
 color:#faf5ff!important;-webkit-text-fill-color:#faf5ff!important;
 opacity:1!important;overflow-wrap:anywhere!important;
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .finale .final-title p{
 color:#ecdfec!important;-webkit-text-fill-color:#ecdfec!important
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .finale .podium .place i{
 color:#f8edff!important;-webkit-text-fill-color:#f8edff!important
}
@media(max-width:760px){
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .game-shell{
   display:flex!important;flex-direction:column!important;
   height:auto!important;max-height:none!important;min-height:0!important;
   grid-template-columns:none!important;grid-template-rows:none!important;grid-auto-rows:auto!important;
   align-items:stretch!important;align-content:flex-start!important;
   gap:9px!important;padding-bottom:calc(20px + env(safe-area-inset-bottom))!important
 }
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .game-shell>.game-head{
   position:relative!important;top:auto!important;left:auto!important;right:auto!important;
   flex:0 0 auto!important;order:0!important;width:100%!important;
   height:auto!important;min-height:0!important;max-height:none!important
 }
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .game-shell>.prompt-card{
   order:1!important;flex:0 0 auto!important;
   width:100%!important;min-width:0!important;
   height:auto!important;min-height:0!important;max-height:none!important;
   display:flex!important;flex-direction:column!important;overflow:visible!important;
   margin:0!important;padding:12px!important;gap:8px!important
 }
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .game-shell>.prompt-card .mode-explain,
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .game-shell>.prompt-card .prompt-main{
   width:100%!important;min-width:0!important;height:auto!important;
   min-height:0!important;max-height:none!important;flex:0 0 auto!important;overflow:visible!important
 }
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .game-shell>.prompt-card .prompt-main h1{
   font-size:clamp(21px,6vw,29px)!important;
   line-height:1.4!important;
   overflow-wrap:anywhere!important;
 }
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .game-shell>.secret-mission{order:2!important;flex:0 0 auto!important}
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .game-shell>.progress-shell{order:3!important;flex:0 0 auto!important;min-height:50px!important}
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .game-shell>.player-grid{order:4!important;flex:0 0 auto!important;width:100%!important;min-height:0!important;height:auto!important}
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .game-shell>.host-stage-actions,
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .game-shell>.answer-form{order:5!important;flex:0 0 auto!important;position:relative!important;inset:auto!important;bottom:auto!important;top:auto!important;z-index:auto!important;overflow:visible!important}
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .ranking-shell .round-podium{
   display:flex!important;flex-direction:column!important;align-items:stretch!important;
   gap:8px!important;height:auto!important;max-height:none!important
 }
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .ranking-shell .rank-podium-card{
   flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;
   height:auto!important;min-height:92px!important;max-height:none!important;
   display:flex!important;flex-flow:row wrap!important;align-items:center!important;justify-content:center!important;
   padding:8px!important;gap:7px!important;
 }
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .ranking-shell .rank-podium-card.first{order:0!important}
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .ranking-shell .rank-podium-card.second{order:1!important}
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .ranking-shell .rank-podium-card.third{order:2!important}
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .ranking-shell .rank-podium-card b{
   flex:1 1 135px!important;text-align:right!important;max-width:none!important;
   font-size:clamp(14px,4.2vw,18px)!important
 }
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .ranking-shell .rank-podium-card strong{
   font-size:clamp(17px,5.2vw,22px)!important;flex:0 0 auto!important
 }
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .finale .podium{
   display:flex!important;flex-direction:column!important;align-items:stretch!important;
   gap:8px!important;height:auto!important;max-height:none!important
 }
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .finale .podium .place{
   display:flex!important;flex-flow:row wrap!important;align-items:center!important;justify-content:center!important;
   width:100%!important;max-width:100%!important;min-width:0!important;
   height:auto!important;min-height:95px!important;max-height:none!important;
   flex:0 0 auto!important;gap:7px!important;padding:10px!important
 }
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .finale .podium .place.first{order:0!important}
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .finale .podium .place.second{order:1!important}
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .finale .podium .place.third{order:2!important}
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .finale .podium .place b{
   flex:1 1 140px!important;max-width:none!important;min-width:0!important;
   white-space:normal!important;overflow-wrap:anywhere!important;
   font-size:clamp(15px,4.5vw,18px)!important;line-height:1.25!important
 }
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .finale .podium .place strong{font-size:22px!important}
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .game-shell .mode-explain p{font-size:12px!important}
}

/* On round/result screens, focus toggle belongs beside header tools, never across scores. */
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2):is(.k-phase-lobby,.k-phase-play,.k-phase-guessing,.k-phase-reveal,.k-phase-results,.k-phase-ranking,.k-phase-finished) #fbrkhHostFocusToggle{
 position:fixed!important;inset:22px auto auto 220px!important;
 width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
 padding:0!important;margin:0!important;
 font-size:0!important;display:grid!important;place-items:center!important;
 border-radius:10px!important;transform:none!important;
 color:#fff!important;background:#282037!important;border:1px solid #746585!important;
 box-shadow:0 4px 12px rgba(0,0,0,.12)!important;z-index:62!important;
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2):is(.k-phase-lobby,.k-phase-play,.k-phase-guessing,.k-phase-reveal,.k-phase-results,.k-phase-ranking,.k-phase-finished) #fbrkhHostFocusToggle span{
 font-size:18px!important
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .result-list .result-row .result-names span{
 color:#532d45!important;-webkit-text-fill-color:#532d45!important;
 background:#fffaf4!important;border:1px solid #c49eac!important;
 border-radius:12px!important;overflow-wrap:anywhere!important
}
html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2) .ranking-shell .leader-change small{
 color:#664058!important;-webkit-text-fill-color:#664058!important
}
@media(max-width:760px){
 html[data-ui-mode="modern"] body[data-game-brand="khaltaha"]:not(.khaltaha-player-v2):is(.k-phase-lobby,.k-phase-play,.k-phase-guessing,.k-phase-reveal,.k-phase-results,.k-phase-ranking,.k-phase-finished) #fbrkhHostFocusToggle{
    top:21px!important;left:77px!important;right:auto!important;bottom:auto!important;inset:21px auto auto 77px!important
 }
}
