/* Khaltaha participant experience V2 — modern mode only.
   The host UI stays untouched. The active player task always wins the hierarchy. */

html[data-ui-mode="modern"] body.khaltaha-player-v2{
  --kp-bg:#07101f;
  --kp-panel:rgba(12,24,42,.94);
  --kp-panel-strong:rgba(15,31,51,.97);
  --kp-line:rgba(255,255,255,.105);
  --kp-line-strong:rgba(93,225,203,.28);
  --kp-text:#f9f8f2;
  --kp-muted:#9eabc1;
  --kp-teal:#5ce1cb;
  --kp-green:#1fc48f;
  --kp-gold:#f2c94c;
  --kp-purple:#8b5cf6;
  --kp-danger:#ff7188;
  min-height:100dvh;
  overflow-x:hidden;
  background:
    radial-gradient(620px 430px at 94% -8%,rgba(31,196,143,.16),transparent 64%),
    radial-gradient(540px 390px at -10% 28%,rgba(139,92,246,.13),transparent 67%),
    linear-gradient(180deg,#091426 0%,#07101f 58%,#050b16 100%)!important;
  color:var(--kp-text);
}

html[data-ui-mode="modern"] body.khaltaha-player-v2::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.01) 1px,transparent 1px);
  background-size:48px 48px;
  mask-image:linear-gradient(to bottom,#000,transparent 74%);
}

html[data-ui-mode="modern"] body.khaltaha-player-v2 .k-top{
  width:min(760px,calc(100% - 18px));
  min-height:60px;
  margin:7px auto 0;
  padding:max(7px,env(safe-area-inset-top)) 9px 7px;
  position:sticky;
  top:6px;
  z-index:70;
  grid-template-columns:auto minmax(0,1fr) auto auto;
  gap:7px;
  border:1px solid var(--kp-line);
  border-radius:18px;
  background:rgba(5,12,25,.86)!important;
  box-shadow:0 12px 32px rgba(0,0,0,.22);
  backdrop-filter:blur(18px) saturate(125%);
}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .k-site-home{display:grid;place-items:center;width:48px;min-width:48px;height:44px;overflow:hidden;border-radius:13px;background:rgba(255,255,255,.035)}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .k-site-home img{width:46px!important;height:38px!important;object-fit:contain!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .k-game-title{justify-self:center;min-width:0;display:flex;align-items:center;justify-content:center}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .k-game-title img{width:min(126px,31vw)!important;height:42px!important;object-fit:contain!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 #connection{justify-self:end;min-height:34px!important;padding:7px 9px!important;border:1px solid rgba(92,225,203,.18)!important;border-radius:999px!important;background:rgba(31,196,143,.075)!important;color:#a8f3df!important;font-size:11px!important;font-weight:900!important;white-space:nowrap}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .k-tools-button{width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border-radius:12px!important}

html[data-ui-mode="modern"] body.khaltaha-player-v2 #kApp{
  width:min(760px,calc(100% - 18px))!important;
  min-height:calc(100dvh - 76px)!important;
  margin-inline:auto!important;
  padding:12px 0 calc(22px + env(safe-area-inset-bottom))!important;
  overflow-x:clip;
}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .k-card{
  border:1px solid var(--kp-line)!important;
  background:linear-gradient(180deg,var(--kp-panel-strong),var(--kp-panel))!important;
  box-shadow:0 18px 48px rgba(0,0,0,.25)!important;
}

/* Join: entering the room is the primary task. Optional sound choices are secondary. */
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-shell{min-height:calc(100dvh - 94px)!important;place-items:start center!important;padding-top:5px}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-card{
  width:min(620px,100%)!important;
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  padding:clamp(16px,4vw,24px)!important;
  text-align:center;
  border-radius:25px!important;
}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-mark{order:1;width:68px;height:68px;margin:0 auto;display:grid;place-items:center;border:1px solid rgba(92,225,203,.19);border-radius:21px;background:linear-gradient(145deg,rgba(31,196,143,.13),rgba(139,92,246,.10));font-size:0!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-mark::before{content:"";width:50px;height:50px;background:url('/assets/games/khaltaha-mark.svg') center/contain no-repeat;filter:drop-shadow(0 8px 18px rgba(92,225,203,.18))}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-card>.eyebrow{order:2;margin-inline:auto}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-card>h1{order:3;margin:0!important;font-size:clamp(31px,8vw,46px)!important;line-height:1.12!important;letter-spacing:-.035em}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-card>p{order:4;margin:2px 0 -3px!important;font-size:12px!important;color:var(--kp-muted)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-card>.room-code{order:5;margin:0 auto 3px!important;padding:8px 14px!important;border:1px solid rgba(242,201,76,.45)!important;border-radius:15px!important;background:rgba(242,201,76,.055)!important;color:var(--kp-gold)!important;font-size:clamp(28px,7vw,42px)!important;line-height:1!important;box-shadow:none!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-profile{order:6;width:100%;min-height:60px;padding:8px 10px;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;text-align:right;border:1px solid var(--kp-line)!important;border-radius:16px!important;background:rgba(255,255,255,.035)!important;color:var(--kp-text)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-profile::after{content:"‹";font-size:24px;color:var(--kp-muted)}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-profile .join-avatar{width:42px!important;height:42px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-profile span{min-width:0;display:grid}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-profile b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-profile small{color:var(--kp-muted);font-size:11px}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-name{order:7;text-align:right!important;gap:6px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-name>b{font-size:13px;color:#dce4ef}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-name input{min-height:54px!important;font-size:17px!important;background:rgba(4,10,21,.76)!important;border-color:rgba(255,255,255,.13)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 #join{order:8;width:100%;min-height:56px!important;margin-top:1px!important;font-size:17px!important;border-radius:15px!important;box-shadow:0 12px 26px rgba(242,201,76,.14)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-sound-panel{order:9;margin-top:5px!important;padding:12px!important;border:1px solid var(--kp-line)!important;border-radius:18px!important;background:rgba(255,255,255,.025)!important;text-align:right}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-sound-panel>header{gap:10px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-sound-panel>header b{font-size:15px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-sound-panel>header small{font-size:11px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-sound-panel>header>strong{font-size:11px!important;background:rgba(92,225,203,.08)!important;color:#aaf4e2!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-sound-grid{display:flex!important;gap:7px!important;max-height:none!important;overflow-x:auto!important;overflow-y:hidden!important;padding:4px 1px 8px!important;scroll-snap-type:x proximity;overscroll-behavior-inline:contain}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-sound-grid .sound-choice{flex:0 0 126px!important;min-width:126px!important;min-height:58px!important;padding:8px!important;border-radius:13px!important;scroll-snap-align:start}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-sound-grid .sound-choice>span{font-size:20px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-sound-grid .sound-choice>b{font-size:12px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-sound-grid .sound-choice>small{font-size:9px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-sound-panel>p{margin:3px 0 0!important;font-size:10px!important;text-align:center}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-card>.back-link{order:10;min-height:44px;display:grid;place-items:center;color:var(--kp-muted)!important;text-decoration:none;font-size:12px}

/* Waiting lobby: remove host-oriented QR emphasis for a player who is already inside. */
html[data-ui-mode="modern"] body.khaltaha-player-v2 .lobby-shell{width:min(680px,100%);margin:auto;display:grid;gap:10px}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .lobby-heading{margin:6px 0 10px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .lobby-heading h1{margin:8px 0 3px!important;font-size:clamp(30px,8vw,44px)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .lobby-heading p{font-size:13px}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .lobby-layout{grid-template-columns:1fr!important;gap:10px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .join-board{display:none!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .lobby-players{padding:16px!important;border-radius:21px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .lobby-players .section-title>span{font-size:12px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .lobby-players .player-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .lobby-players .player-chip{min-height:58px!important;padding:8px!important;border-radius:14px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .lobby-players .player-avatar{width:38px!important;height:38px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .session-summary{gap:6px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .session-summary span{padding:7px 5px!important;font-size:11px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .waiting-host{min-height:54px!important;border-color:rgba(92,225,203,.16)!important;background:rgba(31,196,143,.045)!important;color:#c3d3de!important;font-weight:900}

/* During rounds the phone should answer one question, not imitate the host screen. */
html[data-ui-mode="modern"] body.khaltaha-player-v2 .game-shell{width:min(720px,100%);margin:auto;gap:9px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .game-head{position:sticky;top:73px;z-index:35;grid-template-columns:auto minmax(0,1fr) auto!important;gap:7px!important;padding:5px;border:1px solid var(--kp-line);border-radius:17px;background:rgba(5,12,25,.88);backdrop-filter:blur(14px)}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .round-pill,
html[data-ui-mode="modern"] body.khaltaha-player-v2 .mode-pill,
html[data-ui-mode="modern"] body.khaltaha-player-v2 .timer-shell{min-height:48px!important;padding:6px 9px!important;border:0!important;border-radius:12px!important;background:rgba(255,255,255,.035)!important;box-shadow:none!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .round-pill{justify-self:stretch!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .mode-pill{justify-self:stretch!important;justify-content:center!important;min-width:0;padding-inline:8px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .mode-pill>i{font-size:22px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .mode-pill>div{min-width:0}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .mode-pill b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .round-pill small,
html[data-ui-mode="modern"] body.khaltaha-player-v2 .mode-pill small,
html[data-ui-mode="modern"] body.khaltaha-player-v2 .timer-shell small{font-size:8px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .round-pill b{font-size:14px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .timer-shell{justify-self:stretch!important;justify-content:center!important;min-width:67px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .timer{font-size:20px!important;color:var(--kp-teal)!important}

html[data-ui-mode="modern"] body.khaltaha-player-v2 .round-start-sync{padding:8px 11px!important;border-radius:12px!important;text-align:center!important;font-size:12px!important;color:#b8f2e4!important;background:rgba(31,196,143,.065)!important;border:1px solid rgba(92,225,203,.15)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .prompt-card{min-height:0!important;gap:10px!important;padding:14px!important;border-radius:21px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .mode-explain{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:9px!important;padding:9px 10px!important;text-align:right!important;border-color:rgba(92,225,203,.15)!important;border-radius:14px!important;background:rgba(31,196,143,.045)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .mode-explain>span{font-size:27px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .mode-explain h2{font-size:17px!important;line-height:1.25!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .mode-explain p{margin:2px 0 0!important;font-size:11px!important;line-height:1.5!important;color:var(--kp-muted)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .prompt-main{min-height:126px!important;gap:9px!important;padding:3px 2px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .prompt-main h1{max-width:100%!important;margin:0!important;font-size:clamp(25px,7.4vw,38px)!important;line-height:1.42!important;text-wrap:balance;overflow-wrap:break-word}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .sentence{max-width:100%!important;padding:10px 12px!important;border-radius:13px!important;background:rgba(4,10,21,.72)!important;color:var(--kp-gold)!important;font-size:clamp(21px,6.5vw,31px)!important;line-height:1.55!important;overflow-wrap:break-word}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .choice-preview{gap:6px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .choice-preview span{padding:8px 10px!important;border-radius:11px!important;font-size:14px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .image-stage{width:min(100%,520px)!important;max-height:39dvh!important;border-width:5px!important;border-radius:17px!important;box-shadow:0 12px 28px rgba(0,0,0,.22)!important}

html[data-ui-mode="modern"] body.khaltaha-player-v2 .secret-mission{border-color:rgba(242,201,76,.16)!important;border-radius:14px!important;background:rgba(242,201,76,.035)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .secret-mission summary{min-height:46px!important;padding:8px 10px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .secret-mission summary>span{font-size:18px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .secret-mission summary b{font-size:12px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .secret-mission summary small{font-size:9px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .secret-mission p{padding:0 10px 10px!important;font-size:12px!important}

html[data-ui-mode="modern"] body.khaltaha-player-v2 .progress-shell{grid-template-columns:auto minmax(0,1fr)!important;gap:9px!important;padding:7px 9px!important;border:1px solid var(--kp-line)!important;border-radius:13px!important;background:rgba(255,255,255,.025)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .progress-shell>div:first-child{font-size:11px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .progress{height:7px!important;background:rgba(0,0,0,.28)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .progress i{background:linear-gradient(90deg,var(--kp-teal),var(--kp-purple))!important}

html[data-ui-mode="modern"] body.khaltaha-player-v2 .answer-form{
  width:100%!important;
  position:sticky!important;
  bottom:max(7px,env(safe-area-inset-bottom))!important;
  z-index:42!important;
  gap:10px!important;
  margin:0!important;
  padding:13px!important;
  border:1px solid rgba(92,225,203,.18)!important;
  border-radius:19px!important;
  background:rgba(8,19,34,.96)!important;
  box-shadow:0 18px 48px rgba(0,0,0,.34)!important;
  backdrop-filter:blur(18px) saturate(120%);
}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .answer-form>div:first-child{display:grid;gap:3px}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .answer-form .form-kicker{padding:5px 8px!important;font-size:9px!important;border-color:rgba(92,225,203,.18)!important;color:#9beedc!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .answer-form h2{margin:0!important;font-size:clamp(19px,5.5vw,26px)!important;line-height:1.35!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .answer-form small,
html[data-ui-mode="modern"] body.khaltaha-player-v2 .answer-form p{font-size:11px!important;line-height:1.45!important;color:var(--kp-muted)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .answer-form .k-input{min-height:56px!important;padding:11px 13px!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:14px!important;background:#050d1a!important;color:var(--kp-text)!important;font-size:18px!important;box-shadow:none!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .answer-form .k-input:focus{border-color:rgba(92,225,203,.55)!important;box-shadow:0 0 0 4px rgba(92,225,203,.075)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .answer-form>.k-btn.gold{width:100%!important;min-height:56px!important;border-radius:14px!important;font-size:16px!important;color:#10201c!important;background:linear-gradient(135deg,#a5f5e1,#5ce1cb)!important;box-shadow:0 10px 24px rgba(92,225,203,.14)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .answer-form.sent{position:relative!important;bottom:auto!important;min-height:168px!important;place-items:center!important;align-content:center!important;text-align:center!important;border-color:rgba(31,196,143,.22)!important;background:linear-gradient(180deg,rgba(15,43,48,.88),rgba(8,19,34,.94))!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .answer-form.sent .sent-icon{font-size:34px}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .answer-form.sent h2{font-size:23px!important}

/* Direct choice mode. */
html[data-ui-mode="modern"] body.khaltaha-player-v2 .answer-form .choice-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .answer-form .choice{min-width:0!important;min-height:56px!important;padding:9px 10px!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:14px!important;background:rgba(255,255,255,.045)!important;color:var(--kp-text)!important;font-size:15px!important;font-weight:900!important;overflow-wrap:break-word}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .answer-form .choice.selected{border-color:rgba(92,225,203,.68)!important;background:rgba(92,225,203,.13)!important;color:#c9fff2!important;box-shadow:inset 0 0 0 1px rgba(92,225,203,.22)!important}

/* Ordering and guessing can be taller than a viewport; don't trap them inside one sticky card. */
html[data-ui-mode="modern"] body.khaltaha-player-v2 .order-form,
html[data-ui-mode="modern"] body.khaltaha-player-v2 .guess-form{position:relative!important;bottom:auto!important;padding-bottom:9px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .order-list{display:grid!important;gap:7px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .order-item{min-width:0!important;min-height:59px!important;padding:7px!important;display:grid!important;grid-template-columns:42px 32px minmax(0,1fr) auto!important;align-items:center!important;gap:7px!important;border:1px solid rgba(255,255,255,.11)!important;border-radius:13px!important;background:rgba(255,255,255,.035)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .order-item.dragging{opacity:.72;transform:scale(.99);border-color:var(--kp-teal)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .order-item.drag-over{border-color:var(--kp-gold)!important;background:rgba(242,201,76,.075)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .drag-handle{width:42px!important;min-width:42px!important;height:44px!important;padding:0!important;border:1px solid rgba(92,225,203,.18)!important;border-radius:11px!important;background:rgba(92,225,203,.06)!important;color:#a8efdf!important;font-size:20px!important;touch-action:none!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .order-item>span{min-width:0;font-size:14px!important;font-weight:850!important;overflow-wrap:break-word}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .order-fallback{display:flex!important;gap:4px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .order-fallback button{width:38px!important;min-width:38px!important;height:42px!important;min-height:42px!important;padding:0!important;border:1px solid var(--kp-line)!important;border-radius:10px!important;background:rgba(255,255,255,.04)!important;color:var(--kp-text)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .order-form>.k-btn,
html[data-ui-mode="modern"] body.khaltaha-player-v2 .guess-form>.k-btn{position:sticky!important;bottom:max(7px,env(safe-area-inset-bottom))!important;z-index:4!important;margin-top:3px!important;box-shadow:0 12px 28px rgba(0,0,0,.28)!important}

html[data-ui-mode="modern"] body.khaltaha-player-v2 .guess-board{display:grid!important;gap:9px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .guess-card{padding:10px!important;border:1px solid var(--kp-line)!important;border-radius:15px!important;background:rgba(255,255,255,.025)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .guess-text{display:block;margin-bottom:8px!important;font-size:15px!important;line-height:1.5!important;font-weight:900!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .guess-authors{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .guess-author-card{min-width:0!important;min-height:54px!important;padding:7px!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:12px!important;background:rgba(255,255,255,.035)!important;color:var(--kp-text)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .guess-author-card.selected{border-color:rgba(92,225,203,.65)!important;background:rgba(92,225,203,.12)!important;box-shadow:inset 0 0 0 1px rgba(92,225,203,.18)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .guess-author-card.used:not(.selected){opacity:.42!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .guess-avatar{width:34px!important;height:34px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .guess-author-card b{font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .guess-progress{position:sticky;bottom:70px;z-index:3;padding:8px 10px!important;border:1px solid rgba(92,225,203,.15)!important;border-radius:12px!important;background:rgba(5,13,26,.93)!important;backdrop-filter:blur(12px)}

/* Keyboard: preserve the prompt context but give the editor most of the visual viewport. */
html[data-ui-mode="modern"] body.khaltaha-player-v2.k-input-active .k-top{opacity:.985}
html[data-ui-mode="modern"] body.khaltaha-player-v2.k-input-active #kApp{padding-top:6px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2.k-input-active .game-head{position:relative!important;top:auto!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2.k-input-active .mode-explain,
html[data-ui-mode="modern"] body.khaltaha-player-v2.k-input-active .secret-mission,
html[data-ui-mode="modern"] body.khaltaha-player-v2.k-input-active .progress-shell{display:none!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2.k-input-active .prompt-card{padding:10px!important;gap:5px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2.k-input-active .prompt-main{min-height:74px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2.k-input-active .prompt-main h1{font-size:clamp(20px,5.7vw,29px)!important;line-height:1.35!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2.k-input-active .answer-form{position:relative!important;bottom:auto!important}

/* Reveal, results, ranking and final: make the player's outcome easy to scan. */
html[data-ui-mode="modern"] body.khaltaha-player-v2 .reveal-screen{width:min(680px,100%)!important;min-height:calc(100dvh - 105px)!important;margin:auto!important;padding:clamp(18px,5vw,32px)!important;border:1px solid var(--kp-line)!important;border-radius:24px!important;background:radial-gradient(circle at 50% 10%,rgba(92,225,203,.09),transparent 38%),linear-gradient(180deg,var(--kp-panel-strong),var(--kp-panel))!important;box-shadow:0 20px 54px rgba(0,0,0,.27)!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .reveal-screen h1{font-size:clamp(30px,8vw,46px)!important;line-height:1.25!important;text-align:center}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .reveal-screen p{font-size:14px!important;color:var(--kp-muted)!important;text-align:center}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .result-card,
html[data-ui-mode="modern"] body.khaltaha-player-v2 .ranking-shell,
html[data-ui-mode="modern"] body.khaltaha-player-v2 .finale{width:min(720px,100%)!important;margin-inline:auto!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .result-row{min-width:0!important;border-radius:15px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .result-answer-text{font-size:clamp(18px,5.5vw,26px)!important;overflow-wrap:break-word}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .ranking-list{grid-template-columns:1fr!important;padding:8px!important}
html[data-ui-mode="modern"] body.khaltaha-player-v2 .waiting-host{border-color:rgba(92,225,203,.17)!important;background:rgba(31,196,143,.045)!important}

html[data-ui-mode="modern"] body.khaltaha-player-v2 :where(button,a,input,select,summary):focus-visible{outline:3px solid rgba(92,225,203,.82)!important;outline-offset:3px!important}

@media(max-width:560px){
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .k-top{width:calc(100% - 12px);margin-top:5px;grid-template-columns:42px minmax(0,1fr) auto 42px;gap:5px}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .k-site-home{width:42px;min-width:42px;height:42px}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .k-site-home img{width:40px!important;height:34px!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .k-game-title img{width:min(108px,28vw)!important;height:38px!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 #connection{max-width:72px;overflow:hidden;text-overflow:ellipsis;padding-inline:7px!important;font-size:9px!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 #kApp{width:calc(100% - 12px)!important;padding-top:8px!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .game-head{top:68px}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .lobby-players .player-grid{grid-template-columns:1fr!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .session-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .session-summary span{min-width:0!important;white-space:normal!important;line-height:1.3!important}
}

@media(max-width:390px){
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .k-game-title img{width:92px!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 #connection{display:none!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .k-top{grid-template-columns:42px minmax(0,1fr) 42px!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .k-tools-button{grid-column:3!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .answer-form .choice-grid{grid-template-columns:1fr!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .order-item{grid-template-columns:40px 28px minmax(0,1fr)!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .order-fallback{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .order-fallback button{width:100%!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .guess-authors{grid-template-columns:1fr!important}
}

@media(orientation:landscape) and (max-height:520px){
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .k-top{position:relative;top:auto}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .game-head{position:relative;top:auto}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .prompt-main{min-height:82px!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .mode-explain{display:none!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .secret-mission{display:none!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .answer-form{position:relative!important;bottom:auto!important}
  html[data-ui-mode="modern"] body.khaltaha-player-v2 .image-stage{max-height:52dvh!important}
}

@media(prefers-reduced-motion:reduce){
  html[data-ui-mode="modern"] body.khaltaha-player-v2 *,
  html[data-ui-mode="modern"] body.khaltaha-player-v2 *::before,
  html[data-ui-mode="modern"] body.khaltaha-player-v2 *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
