:root{
  --qgh-bg:#02051e;--qgh-panel:#071044;--qgh-panel-2:#0d135b;--qgh-line:#168cff;
  --qgh-cyan:#12e4ff;--qgh-blue:#147eff;--qgh-purple:#942cff;--qgh-pink:#ff36c7;
  --qgh-gold:#ffc928;--qgh-green:#38ee7c;--qgh-red:#ff315b;--qgh-white:#fff;--qgh-muted:#b8c8ff;
}
body.qgh-gamehost-page{background:#02051e!important}
body.qgh-gamehost-page .entry-header,body.qgh-gamehost-page .entry-title,body.qgh-gamehost-page .wp-block-post-title{display:none!important}
body.qgh-gamehost-page .site-content,body.qgh-gamehost-page .content-area,body.qgh-gamehost-page main,body.qgh-gamehost-page article,body.qgh-gamehost-page .entry-content{max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
.qgh-app,.qgh-app *{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.qgh-app{position:relative;isolation:isolate;width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);overflow:hidden;background:var(--qgh-bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#fff!important;line-height:1.22}
.qgh-app h1,.qgh-app h2,.qgh-app h3,.qgh-app p,.qgh-app span,.qgh-app strong,.qgh-app small,.qgh-app b,.qgh-app em,.qgh-app label{color:inherit}
.qgh-app button,.qgh-app input{font:inherit}.qgh-hidden{display:none!important}
.qgh-background{position:absolute;inset:0;z-index:-3;background:#030625 url('img/game-show-background.webp') center top/cover no-repeat}
.qgh-background:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(1,3,22,.2),rgba(2,6,31,.38) 42%,rgba(2,4,25,.9) 100%)}
.qgh-background:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 20%,rgba(10,168,255,.12),transparent 36%),linear-gradient(90deg,rgba(18,228,255,.04),transparent 20%,transparent 80%,rgba(148,44,255,.05))}
.qgh-effects{position:fixed;inset:0;pointer-events:none;z-index:60;overflow:hidden}

/* Shared top bar – same identity on 16:9 and 9:16 */
.qgh-topbar{position:sticky;top:0;z-index:30;background:linear-gradient(180deg,rgba(2,6,35,.985),rgba(4,7,48,.965));border-bottom:2px solid rgba(18,228,255,.72);box-shadow:0 10px 34px rgba(0,0,0,.42)}
.qgh-topbar-inner{width:min(1480px,96vw);min-height:94px;margin:auto;display:grid;grid-template-columns:minmax(330px,1fr) auto auto;align-items:center;gap:22px;padding:10px 4px}
.qgh-brand-wrap{display:flex;align-items:center;gap:16px;min-width:0}.qgh-logo-orb{width:72px;height:72px;flex:0 0 72px}.qgh-logo-orb img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 14px rgba(18,228,255,.85))}.qgh-brand-copy{min-width:0;display:grid;gap:0}.qgh-brand-copy strong{font-size:clamp(27px,2.35vw,40px)!important;line-height:.96;font-weight:1000;letter-spacing:-.04em;color:#fff!important;text-shadow:0 0 18px rgba(16,210,255,.22)}.qgh-brand-copy strong span{color:var(--qgh-cyan)!important}.qgh-brand-copy>small{margin-top:7px;color:#d9e3ff!important;font-size:11px;font-weight:900;letter-spacing:.32em;text-transform:uppercase}.qgh-brand-copy>i{display:none}
.qgh-room-badge{min-width:210px;padding:10px 18px;border:1.5px solid #257fff;border-radius:17px;background:rgba(8,24,88,.87);text-align:center;box-shadow:inset 0 0 24px rgba(27,112,255,.1),0 0 14px rgba(21,112,255,.12)}.qgh-room-badge span{display:block;color:#b9c9ff!important;font-size:10px;font-weight:900;letter-spacing:.1em}.qgh-room-badge strong{display:block;margin-top:2px;color:#fff!important;font-size:24px;letter-spacing:.07em}.qgh-room-badge.is-empty{opacity:.42}.qgh-online-pill{display:flex;align-items:center;gap:9px;padding:11px 18px;border:2px solid #47fa91;border-radius:999px;background:rgba(9,90,48,.36);color:#eafff1!important;font-size:14px;font-weight:1000;white-space:nowrap;box-shadow:0 0 18px rgba(56,238,124,.18)}.qgh-online-pill:before{content:"";width:13px;height:13px;border-radius:50%;background:#59ff89;box-shadow:0 0 11px #59ff89}

.qgh-shell{width:100%}.qgh-screen{width:min(1480px,96vw);margin:0 auto;padding:18px 0 34px;display:grid;gap:14px}.qgh-card{border:2px solid rgba(45,112,255,.7);border-radius:22px;background:linear-gradient(145deg,rgba(8,17,72,.96),rgba(17,13,83,.93));box-shadow:inset 0 0 30px rgba(24,94,255,.08),0 12px 34px rgba(0,0,0,.28),0 0 18px rgba(30,95,255,.08);backdrop-filter:blur(10px)}

/* Home setup */
.qgh-hero{position:relative;overflow:hidden;padding:28px;text-align:center;min-height:500px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(180deg,rgba(6,12,60,.86),rgba(10,9,74,.92))}.qgh-hero:before{content:"";position:absolute;width:520px;height:520px;left:50%;top:-285px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle,rgba(18,228,255,.32),transparent 68%)}.qgh-live{position:relative;display:inline-flex;padding:8px 14px;border:1.5px solid #ff7790;border-radius:999px;background:linear-gradient(180deg,#ff365f,#a50837);color:#fff!important;font-size:11px;font-weight:1000;letter-spacing:.08em}.qgh-question-mark{display:block;width:142px;margin:16px auto 4px;filter:drop-shadow(0 0 13px #15e0ff) drop-shadow(0 0 26px #7c2fff)}.qgh-hero h1{position:relative;margin:8px 0 6px;font-size:clamp(52px,5.2vw,86px)!important;line-height:.82;letter-spacing:-.055em;color:#fff!important}.qgh-hero h1 span{color:var(--qgh-cyan)!important;font-size:.72em}.qgh-hero p{max-width:520px;margin:18px auto 0;color:#d7e2ff!important;font-size:15px;line-height:1.5}
.qgh-profile-card,.qgh-category-card,.qgh-room-size-card,.qgh-action-card,.qgh-player-card,.qgh-mini-players{padding:18px}.qgh-section-title{display:flex;align-items:center;gap:10px;margin-bottom:14px;color:#fff!important;font-size:13px;font-weight:1000;letter-spacing:.07em}.qgh-section-title b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:linear-gradient(145deg,var(--qgh-cyan),var(--qgh-blue));color:#04113f!important;font-size:14px}.qgh-label{display:block;margin:0 0 7px;color:#dce5ff!important;font-size:10px;font-weight:1000;letter-spacing:.08em}.qgh-input{width:100%;min-height:52px;border:1.5px solid #506fd1;border-radius:14px;padding:11px 13px;background:#050a35;color:#fff!important;outline:none;font-size:16px;font-weight:900}.qgh-input:focus{border-color:var(--qgh-cyan);box-shadow:0 0 0 3px rgba(18,228,255,.15)}
.qgh-avatar-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-top:14px}.qgh-avatar-choice{position:relative;aspect-ratio:1;padding:3px;border:2px solid #394da8;border-radius:50%;background:#11194f;overflow:hidden;cursor:pointer}.qgh-avatar-choice img{width:100%;height:100%;display:block;object-fit:cover;object-position:top;border-radius:50%}.qgh-avatar-choice.selected{border-color:#fff;outline:3px solid var(--qgh-cyan);box-shadow:0 0 22px rgba(18,228,255,.65);transform:translateY(-2px)}.qgh-avatar-choice.selected:after{content:"✓";position:absolute;right:0;bottom:0;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:var(--qgh-green);color:#04220f;font-size:13px;font-weight:1000}
.qgh-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.qgh-category-choice{min-height:48px;border:1.5px solid #4059bd;border-radius:13px;padding:8px 10px;background:linear-gradient(145deg,#0a1958,#23116f);color:#e9efff!important;font-size:10px;font-weight:1000;letter-spacing:.02em;cursor:pointer}.qgh-category-choice.selected{border-color:var(--qgh-cyan);background:linear-gradient(145deg,#0e6fbe,#5a28bd);color:#fff!important;box-shadow:0 0 16px rgba(18,228,255,.28)}.qgh-category-note{margin:10px 2px 0;color:#b9c8f6!important;font-size:10px;line-height:1.45}.qgh-player-target-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:7px}.qgh-player-target{min-width:0;min-height:46px;border:1.5px solid #4059bd;border-radius:12px;background:#10195a;color:#e7edff!important;font-size:15px;font-weight:1000;cursor:pointer}.qgh-player-target.selected{border-color:var(--qgh-gold);background:linear-gradient(145deg,#df9911,#7e4800);color:#fff!important;box-shadow:0 0 16px rgba(255,201,40,.28)}.qgh-test-bots-toggle{display:flex;align-items:center;gap:11px;margin-top:12px;padding:12px;border:1px solid rgba(18,228,255,.3);border-radius:13px;background:rgba(5,12,58,.72);cursor:pointer}.qgh-test-bots-toggle input{width:22px;height:22px;accent-color:var(--qgh-green)}.qgh-test-bots-toggle span{display:grid;gap:2px}.qgh-test-bots-toggle strong{font-size:12px;color:#fff!important}.qgh-test-bots-toggle small{font-size:10px;line-height:1.35;color:#b7c6f4!important}.qgh-primary,.qgh-secondary,.qgh-share{border:0;border-radius:15px;color:#fff!important;font-weight:1000;cursor:pointer}.qgh-primary{width:100%;min-height:58px;padding:13px 18px;background:linear-gradient(180deg,#45ee74,#119541);border:2px solid #92ffb1;box-shadow:inset 0 2px 0 rgba(255,255,255,.25),0 5px 0 #075622;font-size:16px}.qgh-secondary{min-height:50px;padding:10px 16px;background:linear-gradient(180deg,#7c4df0,#431baa);border:1.5px solid #b797ff;font-size:12px}.qgh-share{min-height:50px;padding:10px 18px;background:linear-gradient(180deg,#ff47c8,#a61783);border:1.5px solid #ff9fe3}.qgh-primary:active,.qgh-secondary:active,.qgh-share:active{transform:translateY(2px)}.qgh-primary:disabled,.qgh-secondary:disabled{opacity:.55;cursor:not-allowed}.qgh-or{display:flex;align-items:center;gap:10px;margin:14px 0;color:#9eafe5!important;font-size:9px;font-weight:1000}.qgh-or:before,.qgh-or:after{content:"";height:1px;flex:1;background:#263a87}.qgh-code-row{display:grid;grid-template-columns:1fr auto;gap:9px}.qgh-code-input{text-transform:uppercase;letter-spacing:.16em;text-align:center}.qgh-message{min-height:18px;margin:10px 0 0;text-align:center;color:#ffafc2!important;font-size:11px;font-weight:900}

/* Lobby */
.qgh-lobby-hero{padding:28px 22px;text-align:center}.qgh-kicker{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;background:rgba(18,228,255,.11);border:1px solid rgba(18,228,255,.3);color:var(--qgh-cyan)!important;font-size:11px;font-weight:1000;letter-spacing:.07em}.qgh-lobby-hero h2{margin:14px 0 0;color:#fff!important;font-size:21px!important}.qgh-countdown{font-variant-numeric:tabular-nums;margin:3px 0 12px;font-size:clamp(66px,9vw,120px);font-weight:1000;line-height:.95;color:#fff!important;text-shadow:0 3px 0 #175ec6,0 0 24px rgba(18,228,255,.7)}.qgh-lobby-hero p{max-width:700px;margin:0 auto 14px;color:#d0dcff!important;font-size:13px;line-height:1.5}.qgh-share-url{width:100%;margin-top:10px;border:1px solid #4d66be;border-radius:10px;padding:9px 11px;background:#05092f;color:#d8e2ff!important;font-size:10px;text-align:center}.qgh-player-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:#fff!important;font-size:13px;font-weight:1000;letter-spacing:.05em}.qgh-player-card-head b{color:var(--qgh-gold)!important;font-size:15px}.qgh-player-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.qgh-player-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;padding:10px 11px;border:1.5px solid #304aaa;border-radius:15px;background:linear-gradient(145deg,rgba(4,10,49,.92),rgba(9,12,69,.86))}.qgh-player-row img{width:50px;height:50px;border:2px solid var(--qgh-cyan);border-radius:50%;object-fit:cover;object-position:top}.qgh-player-row>div{min-width:0}.qgh-player-row strong{display:flex;align-items:center;gap:5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff!important;font-size:16px!important;line-height:1.1;text-shadow:0 1px 5px rgba(0,0,0,.8)}.qgh-player-row span{display:block;margin-top:5px;color:#9fc0ff!important;font-size:11px!important;font-weight:800}.qgh-player-row.answered{border-color:#41ed83;box-shadow:0 0 14px rgba(56,238,124,.12)}.qgh-player-row.answered:after{content:"✓";color:#54ff99;font-size:20px;font-weight:1000}.qgh-player-row.is-me{border-color:var(--qgh-gold);background:linear-gradient(145deg,rgba(72,52,7,.72),rgba(8,11,61,.9));box-shadow:0 0 15px rgba(255,201,40,.18)}.qgh-player-score{color:var(--qgh-gold)!important;font-weight:1000}.qgh-auto-note{display:grid;grid-template-columns:70px 1fr;gap:12px;align-items:center;padding:14px 16px}.qgh-auto-note img{width:64px;filter:drop-shadow(0 0 13px rgba(18,228,255,.75))}.qgh-auto-note strong{display:block;color:var(--qgh-gold)!important;font-size:12px}.qgh-auto-note span{display:block;margin-top:3px;color:#cad8ff!important;font-size:10px;line-height:1.4}

/* Game – built from the approved 16:9 / 9:16 look */
.qgh-round-strip{display:grid;grid-template-columns:minmax(250px,1fr) auto minmax(250px,1fr);grid-template-rows:auto auto;align-items:center;gap:3px 18px;padding:14px 20px;border-radius:20px}.qgh-round-strip>span{grid-column:2;grid-row:1;color:var(--qgh-cyan)!important;font-size:20px;font-weight:1000;text-align:center}.qgh-round-strip>b{grid-column:3;grid-row:2;color:#d5e0ff!important;font-size:11px;text-align:right}.qgh-round-strip>small{grid-column:1;grid-row:1/3;color:#fff!important;font-size:15px;font-weight:1000;letter-spacing:.02em}.qgh-timer{grid-column:3;grid-row:1;justify-self:end;display:grid;place-items:center;min-width:112px;height:48px;padding:0 14px;border:0;border-radius:12px;background:linear-gradient(90deg,#071348,#0b2775);color:#fff!important;font-variant-numeric:tabular-nums;font-size:25px;font-weight:1000;box-shadow:inset 0 0 0 1px rgba(18,228,255,.28)}.qgh-timer.urgent{background:linear-gradient(90deg,#7b132e,#b71743);box-shadow:0 0 18px rgba(255,49,91,.35)}
.qgh-question-card{min-height:200px;display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;gap:24px;padding:24px 42px;border-color:#4b9cff;box-shadow:inset 0 0 40px rgba(36,64,255,.12),0 0 18px rgba(104,36,255,.18)}.qgh-question-card img{width:150px;justify-self:center;filter:drop-shadow(0 0 12px #15e0ff) drop-shadow(0 0 22px rgba(148,44,255,.55))}.qgh-question-card span{display:none}.qgh-question-card h2{margin:0!important;color:#fff!important;font-size:clamp(38px,3.6vw,64px)!important;line-height:1.04!important;font-weight:1000!important;letter-spacing:-.035em;text-shadow:0 2px 2px rgba(0,0,0,.75),0 0 14px rgba(255,255,255,.06)}
.qgh-answers{display:grid;grid-template-columns:1fr 1fr;gap:12px}.qgh-answer{position:relative;min-height:92px;border:2px solid rgba(255,255,255,.42);border-radius:18px;padding:18px 20px 18px 92px;color:#fff!important;text-align:left;font-size:24px;font-weight:1000;line-height:1.15;text-shadow:0 1px 2px rgba(0,0,0,.35);box-shadow:inset 0 2px 0 rgba(255,255,255,.14),0 7px 18px rgba(0,0,0,.24);cursor:pointer}.qgh-answer:before{position:absolute;left:26px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:48px;height:48px;border:2px solid rgba(255,255,255,.45);border-radius:50%;background:rgba(0,0,0,.14);color:#fff!important;font-size:24px}.qgh-answer:nth-child(1){background:linear-gradient(135deg,#f31f49,#b80e34)}.qgh-answer:nth-child(2){background:linear-gradient(135deg,#1686ff,#0758cf)}.qgh-answer:nth-child(3){background:linear-gradient(135deg,#ffc01a,#bd7c00)}.qgh-answer:nth-child(4){background:linear-gradient(135deg,#16ca63,#078d43)}.qgh-answer:nth-child(1):before{content:"A"}.qgh-answer:nth-child(2):before{content:"B"}.qgh-answer:nth-child(3):before{content:"C"}.qgh-answer:nth-child(4):before{content:"D"}.qgh-answer.selected{outline:4px solid #fff;filter:brightness(1.08)}.qgh-answer.correct{outline:4px solid #72ff9f;box-shadow:0 0 28px rgba(56,238,124,.55)}.qgh-answer.wrong{opacity:.56;filter:grayscale(.28)}.qgh-answer:disabled{cursor:default}.qgh-answer-status{min-height:26px;text-align:center;color:#fff!important;font-size:13px;font-weight:1000;text-shadow:0 1px 2px #000}.qgh-mini-players{padding:14px 16px}.qgh-mini-players .qgh-player-list.compact{grid-template-columns:repeat(4,minmax(0,1fr))}.qgh-mini-players .qgh-player-row{grid-template-columns:52px minmax(0,1fr) auto}.qgh-mini-players .qgh-player-row img{width:50px;height:50px}.qgh-mini-players .qgh-player-row strong{font-size:15px!important}.qgh-mini-players .qgh-player-row span{display:block;font-size:10px!important}.qgh-bot-tag{display:inline-flex;align-items:center;margin-left:4px;padding:2px 5px;border-radius:999px;background:rgba(255,201,40,.15);border:1px solid rgba(255,201,40,.6);color:var(--qgh-gold)!important;font-size:7px;font-style:normal;letter-spacing:.04em}

/* Leaderboards */
.qgh-leaderboard-card,.qgh-final-card{padding:26px 22px;text-align:center}.qgh-leaderboard-card h2,.qgh-final-card h2{margin:10px 0 18px;color:#fff!important;font-size:40px!important;text-shadow:0 0 16px rgba(18,228,255,.28)}.qgh-leaderboard{display:grid;gap:9px;text-align:left}.qgh-leader-row{display:grid;grid-template-columns:48px 58px minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 14px;border:1.5px solid #304aaa;border-radius:15px;background:rgba(4,10,49,.9)}.qgh-leader-row.top{border-color:var(--qgh-gold);box-shadow:0 0 16px rgba(255,201,40,.18)}.qgh-rank{display:grid;place-items:center;color:var(--qgh-gold)!important;font-size:17px;font-weight:1000}.qgh-leader-row img{width:54px;height:54px;border:2px solid var(--qgh-cyan);border-radius:50%;object-fit:cover;object-position:top}.qgh-leader-row strong{display:flex;align-items:center;gap:5px;color:#fff!important;font-size:18px!important}.qgh-leader-row small{display:block;margin-top:3px;color:#9fb4ef!important;font-size:11px}.qgh-leader-row>b{color:var(--qgh-gold)!important;font-size:18px}.qgh-next-count{min-height:22px;margin-top:14px;color:#d2ddff!important;font-size:12px;font-weight:900}.qgh-winner-avatar{display:block;width:132px;height:132px;margin:18px auto 7px;border:5px solid var(--qgh-gold);border-radius:50%;object-fit:cover;object-position:top;background:#15184c;box-shadow:0 0 30px rgba(255,201,40,.52)}.qgh-final-card>strong{display:block;margin:-7px 0 16px;color:var(--qgh-gold)!important;font-size:20px}.qgh-final-card .qgh-primary{margin-top:17px}
.qgh-confetti{position:absolute;top:-30px;width:9px;height:17px;border-radius:2px;background:var(--c);animation:qghConfetti var(--t) linear forwards;transform:translate3d(0,-40px,0) rotate(0)}
@keyframes qghUrgent{to{transform:scale(1.035);filter:brightness(1.12)}}@keyframes qghConfetti{to{transform:translate3d(var(--x),110vh,0) rotate(720deg)}}

/* 16:9 desktop composition */
@media(min-width:900px){
  .qgh-app{min-height:calc(100vh - 32px)}
  #qghHomeScreen{grid-template-columns:minmax(340px,.78fr) minmax(560px,1.22fr);align-items:stretch}.qgh-hero{grid-column:1;grid-row:1/5}.qgh-profile-card,.qgh-category-card,.qgh-room-size-card,.qgh-action-card{grid-column:2}
  #qghLobbyScreen{grid-template-columns:minmax(420px,.72fr) minmax(640px,1.28fr);align-items:start}.qgh-lobby-hero{grid-column:1;grid-row:1/3}.qgh-player-card{grid-column:2;grid-row:1}.qgh-auto-note{grid-column:2;grid-row:2}
  #qghGameScreen{gap:12px}.qgh-mini-players .qgh-player-list.compact{grid-template-columns:repeat(4,minmax(0,1fr))}
  #qghLeaderboardScreen,#qghFinalScreen{width:min(900px,92vw)}
}

/* 9:16 mobile composition */
@media(max-width:899px){
  .qgh-app{width:100%;max-width:100%;margin:0;min-height:100vh}.qgh-background{background-position:center top;background-attachment:scroll}
  .qgh-topbar-inner{width:100%;min-height:86px;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:9px 12px}.qgh-brand-wrap{gap:10px}.qgh-logo-orb{width:54px;height:54px;flex-basis:54px}.qgh-brand-copy strong{font-size:23px!important}.qgh-brand-copy>small{font-size:8px;letter-spacing:.22em;margin-top:4px}.qgh-room-badge{grid-column:1/2;grid-row:2;min-width:0;padding:6px 10px;text-align:left;display:flex;align-items:center;gap:7px}.qgh-room-badge span{font-size:8px}.qgh-room-badge strong{font-size:17px}.qgh-online-pill{grid-column:2;grid-row:1/3;align-self:center;padding:8px 10px;font-size:10px}.qgh-online-pill:before{width:9px;height:9px}
  .qgh-screen{width:100%;padding:12px 12px 28px;gap:10px}.qgh-card{border-radius:18px}.qgh-hero{min-height:auto;padding:20px 16px}.qgh-question-mark{width:92px;margin:10px auto 0}.qgh-hero h1{font-size:48px!important}.qgh-hero p{font-size:12px}.qgh-profile-card,.qgh-category-card,.qgh-room-size-card,.qgh-action-card,.qgh-player-card,.qgh-mini-players{padding:14px}
  .qgh-category-grid{grid-template-columns:1fr 1fr}.qgh-category-choice{font-size:9px}.qgh-player-target-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.qgh-avatar-grid{gap:6px}
  .qgh-lobby-hero{padding:20px 14px}.qgh-countdown{font-size:64px}.qgh-player-list{grid-template-columns:1fr}.qgh-player-row{grid-template-columns:48px minmax(0,1fr) auto;padding:9px}.qgh-player-row img{width:46px;height:46px}.qgh-player-row strong{font-size:16px!important}.qgh-player-row span{font-size:10px!important}
  .qgh-round-strip{grid-template-columns:1fr auto;grid-template-rows:auto auto;padding:11px 12px;gap:2px 8px}.qgh-round-strip>small{grid-column:1;grid-row:1;color:#fff!important;font-size:11px}.qgh-round-strip>span{grid-column:1;grid-row:2;text-align:left;font-size:14px}.qgh-round-strip>b{display:none}.qgh-timer{grid-column:2;grid-row:1/3;min-width:80px;height:42px;font-size:21px}
  .qgh-question-card{min-height:160px;grid-template-columns:92px minmax(0,1fr);gap:8px;padding:16px 14px}.qgh-question-card img{width:82px}.qgh-question-card h2{font-size:clamp(27px,7.2vw,38px)!important;line-height:1.04!important;color:#fff!important}
  .qgh-answers{grid-template-columns:1fr;gap:9px}.qgh-answer{min-height:74px;border-radius:15px;padding:13px 12px 13px 68px;font-size:18px}.qgh-answer:before{left:17px;width:38px;height:38px;font-size:19px}.qgh-answer-status{font-size:11px;min-height:20px}
  .qgh-mini-players .qgh-player-list.compact{grid-template-columns:1fr}.qgh-mini-players .qgh-player-row{grid-template-columns:48px minmax(0,1fr) auto}.qgh-mini-players .qgh-player-row img{width:46px;height:46px}.qgh-mini-players .qgh-player-row strong{font-size:16px!important}.qgh-mini-players .qgh-player-row span{display:block;font-size:10px!important}
  .qgh-leaderboard-card,.qgh-final-card{padding:20px 12px}.qgh-leaderboard-card h2,.qgh-final-card h2{font-size:30px!important}.qgh-leader-row{grid-template-columns:32px 46px minmax(0,1fr) auto;gap:7px;padding:9px}.qgh-leader-row img{width:44px;height:44px}.qgh-leader-row strong{font-size:15px!important}.qgh-leader-row small{font-size:9px}.qgh-leader-row>b{font-size:14px}.qgh-winner-avatar{width:106px;height:106px}
}
@media(max-width:380px){.qgh-brand-copy strong{font-size:20px!important}.qgh-brand-copy>small{font-size:7px}.qgh-online-pill{font-size:9px}.qgh-question-card{grid-template-columns:72px 1fr}.qgh-question-card img{width:66px}.qgh-question-card h2{font-size:25px!important}.qgh-answer{font-size:16px}.qgh-player-row strong,.qgh-mini-players .qgh-player-row strong{font-size:14px!important}.qgh-leader-row strong{font-size:14px!important}}
@media(prefers-reduced-motion:reduce){.qgh-app *,.qgh-app *:before,.qgh-app *:after{animation-duration:.01ms!important;animation-iteration-count:1!important}}


/* v0.4.1 visibility and no-scroll tightening */
#qghQuestionText{color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;visibility:visible!important;text-shadow:0 2px 3px rgba(0,0,0,.85),0 0 14px rgba(255,255,255,.08)!important}
#qghRoundLabel,#qghPhaseLabel,#qghGameCategory,#qghAnswerStatus,.qgh-question-card span,.qgh-answer, .qgh-answer *, .qgh-player-chip, .qgh-player-chip *{color:#fff!important;-webkit-text-fill-color:currentColor}
.qgh-gamehost-page .qgh-app .qgh-question-card h2{color:#fff!important;-webkit-text-fill-color:#fff!important}
.qgh-mini-players .qgh-player-list.compact{display:grid;gap:8px}
.qgh-player-chip{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr) auto auto;align-items:center;gap:7px;padding:8px 10px;border:1.5px solid rgba(72,122,255,.55);border-radius:14px;background:rgba(3,11,54,.9);min-height:58px;overflow:hidden}
.qgh-player-chip.is-me{border-color:var(--qgh-gold);box-shadow:0 0 0 2px rgba(255,201,40,.18)}
.qgh-player-chip img{width:36px;height:36px;border-radius:50%;border:2px solid var(--qgh-cyan);object-fit:cover;object-position:top}
.qgh-player-chip strong{min-width:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px!important;font-weight:1000}
.qgh-player-chip b{font-size:14px;color:var(--qgh-gold)!important;white-space:nowrap}
.qgh-player-chip i{font-style:normal;font-size:22px;line-height:1;font-weight:1000;justify-self:end}
.qgh-player-chip.answered i{color:var(--qgh-green)!important}
.qgh-player-chip.thinking i{color:var(--qgh-cyan)!important}
.qgh-player-chip.waiting i{color:#b5c1ef!important}
.qgh-player-chip-rank{position:absolute;left:6px;top:4px;font-size:10px;font-weight:1000;color:#b8c8ff!important}
.qgh-player-chip .qgh-bot-tag{font-size:8px;margin-left:4px;padding:1px 4px}

@media(max-width:899px){
  .qgh-topbar{position:relative}
  .qgh-screen{padding:10px 10px 16px;gap:8px}
  #qghGameScreen{min-height:calc(100dvh - 96px);grid-template-rows:auto auto auto auto auto;align-content:start}
  .qgh-round-strip{padding:10px 12px;border-radius:16px}
  .qgh-round-strip>small{font-size:10px}
  .qgh-round-strip>span{font-size:13px}
  .qgh-timer{min-width:78px;height:38px;font-size:19px;padding:0 10px}
  .qgh-question-card{min-height:118px;grid-template-columns:72px 1fr;gap:6px;padding:12px 12px;border-radius:18px}
  .qgh-question-card img{width:62px}
  .qgh-question-card h2{font-size:clamp(20px,6.2vw,30px)!important;line-height:1.04!important;max-height:3.2em;overflow:hidden}
  .qgh-answers{gap:8px}
  .qgh-answer{min-height:60px;padding:10px 12px 10px 58px;font-size:14px;border-radius:14px}
  .qgh-answer:before{left:13px;width:32px;height:32px;font-size:16px}
  .qgh-answer-status{min-height:16px;font-size:10px;line-height:1.2;margin-top:-2px}
  .qgh-mini-players{padding:10px 10px 12px;border-radius:16px}
  .qgh-mini-players .qgh-player-card-head{margin-bottom:8px}
  .qgh-mini-players .qgh-player-card-head span{font-size:11px!important}
  .qgh-mini-players .qgh-player-card-head b{font-size:11px!important}
  .qgh-mini-players .qgh-player-list.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .qgh-player-chip{grid-template-columns:30px minmax(0,1fr) auto;grid-template-areas:'avatar name status' 'avatar score status';min-height:52px;padding:7px 8px 7px 9px;gap:3px 6px}
  .qgh-player-chip img{grid-area:avatar;width:28px;height:28px}
  .qgh-player-chip strong{grid-area:name;font-size:11px!important}
  .qgh-player-chip b{grid-area:score;font-size:11px!important}
  .qgh-player-chip i{grid-area:status;font-size:18px}
  .qgh-player-chip-rank{font-size:9px;left:4px;top:3px}
  .qgh-player-chip .qgh-bot-tag{display:none}
  #qghFinalScreen .qgh-final-card{padding:14px 10px}
  #qghFinalScreen .qgh-leaderboard{gap:6px}
  #qghFinalScreen .qgh-leader-row{padding:7px 8px}
}

@media(max-width:420px){
  .qgh-brand-copy strong{font-size:20px!important}
  .qgh-online-pill{padding:6px 8px;font-size:9px}
  .qgh-room-badge strong{font-size:15px}
  .qgh-question-card h2{font-size:clamp(18px,5.8vw,26px)!important}
  .qgh-answer{font-size:13px;min-height:58px}
  .qgh-mini-players .qgh-player-list.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* v1.0.0 production page chrome + viewport fit */
body.qgh-gamehost-page #wpadminbar{display:none!important}
html:has(body.qgh-gamehost-page){margin-top:0!important}
body.qgh-gamehost-page{margin-top:0!important;padding-top:0!important}
body.qgh-gamehost-page .qgh-app{scroll-margin-top:0}
@media(max-width:899px){
  #qghGameScreen{padding-bottom:8px}
  .qgh-mini-players{padding:8px}
  .qgh-mini-players .qgh-player-list.compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .qgh-player-chip{grid-template-columns:24px minmax(0,1fr) auto;grid-template-areas:'avatar name status';min-height:38px;padding:4px 5px;gap:4px}
  .qgh-player-chip img{grid-area:avatar;width:22px;height:22px}
  .qgh-player-chip strong{grid-area:name;font-size:9.5px!important}
  .qgh-player-chip b{display:none}
  .qgh-player-chip i{grid-area:status;font-size:15px}
  .qgh-player-chip-rank{display:none}
  .qgh-mini-players .qgh-player-card-head{margin-bottom:5px}
  .qgh-answer-status{margin-bottom:0}
}
@media(max-width:380px){
  .qgh-mini-players .qgh-player-list.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* v1.0.0 compact lobby and leaderboard mobile layouts */
@media(max-width:899px){
  #qghLobbyScreen{gap:8px;padding-bottom:8px}
  #qghLobbyScreen .qgh-lobby-hero{padding:12px 10px}
  #qghLobbyScreen .qgh-lobby-hero h2{font-size:16px!important;margin-top:8px}
  #qghLobbyScreen .qgh-countdown{font-size:46px;margin:2px 0 8px}
  #qghLobbyScreen .qgh-lobby-hero p{font-size:10px;line-height:1.3;margin-bottom:8px}
  #qghLobbyScreen .qgh-share{min-height:42px;font-size:11px}
  #qghLobbyScreen .qgh-share-url{display:none}
  #qghLobbyScreen .qgh-player-card{padding:9px}
  #qghLobbyScreen .qgh-player-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  #qghLobbyScreen .qgh-player-row{grid-template-columns:28px minmax(0,1fr) auto;gap:5px;min-height:42px;padding:5px 6px;border-radius:11px}
  #qghLobbyScreen .qgh-player-row img{width:27px;height:27px}
  #qghLobbyScreen .qgh-player-row strong{font-size:10.5px!important}
  #qghLobbyScreen .qgh-player-row span{display:none}
  #qghLobbyScreen .qgh-player-row.answered:after{font-size:15px}
  #qghLobbyScreen .qgh-auto-note{display:none}

  #qghLeaderboardScreen,#qghFinalScreen{padding:8px 10px}
  .qgh-leaderboard-card,.qgh-final-card{padding:12px 9px}
  .qgh-leaderboard-card h2,.qgh-final-card h2{font-size:23px!important;margin:6px 0 8px}
  .qgh-leaderboard{gap:4px}
  .qgh-leader-row{grid-template-columns:26px 30px minmax(0,1fr) auto;gap:5px;min-height:38px;padding:4px 6px;border-radius:10px}
  .qgh-rank{font-size:12px}
  .qgh-leader-row img{width:29px;height:29px}
  .qgh-leader-row strong{font-size:11px!important;line-height:1}
  .qgh-leader-row small{font-size:8px;margin-top:1px}
  .qgh-leader-row>b{font-size:11px}
  .qgh-winner-avatar{width:58px;height:58px;margin:6px auto 2px;border-width:3px}
  .qgh-final-card>strong{font-size:14px;margin:-2px 0 6px}
  .qgh-final-card .qgh-primary{margin-top:8px;min-height:44px;font-size:12px}
  .qgh-next-count{margin-top:7px;font-size:10px}
}


/* v1.0.1 bottom navigation */
.qgh-bottom-nav{width:min(1480px,96vw);margin:0 auto;padding:0 0 26px;text-align:center}
.qgh-back-games{display:inline-flex;align-items:center;justify-content:center;min-width:230px;min-height:54px;padding:12px 24px;border:2px solid rgba(18,228,255,.82);border-radius:16px;background:linear-gradient(180deg,rgba(9,36,104,.98),rgba(5,17,61,.98));color:#fff!important;text-decoration:none!important;font-size:14px;font-weight:1000;letter-spacing:.08em;box-shadow:inset 0 0 22px rgba(18,228,255,.08),0 0 20px rgba(18,228,255,.14)}
.qgh-back-games:hover,.qgh-back-games:focus{color:#fff!important;border-color:#fff;outline:none;box-shadow:inset 0 0 22px rgba(18,228,255,.14),0 0 26px rgba(18,228,255,.28)}
@media(max-width:899px){.qgh-bottom-nav{width:100%;padding:0 10px 18px}.qgh-back-games{width:100%;min-height:50px;font-size:13px;border-radius:14px}}
