/* Host geometry only; all module UI remains under .kg/.nq. */
#kazuGamePlayScreen,#cardGameScreen.integrated-quest-screen{box-sizing:border-box;width:100%;max-width:704px;margin:0 auto;padding:0!important;min-height:0!important;height:auto!important}
#kazuGamePlayScreen[hidden],#cardGameScreen.integrated-quest-screen[hidden]{display:none!important}
.lesson-card-gain{position:fixed;z-index:900;left:12px;right:12px;bottom:8px;max-width:680px;margin:0 auto;overflow:hidden;border-radius:18px;background:#f3f8f5}
.lesson-card-gain[hidden]{display:none!important}.lesson-card-gain>.nq{height:100%;width:100%}
/* The status and three ability icons share a full row, so Japanese text does not break mid-word. */
#cardGameScreen.integrated-quest-screen .nq-state{grid-column:1/-1;justify-content:flex-end;white-space:nowrap}
/* Keep the drawn card inside its flexible slot, including when choice buttons are shown. */
#cardGameScreen.integrated-quest-screen .nq{line-height:1.3}
#cardGameScreen.integrated-quest-screen .nq-score{line-height:1.3}
#cardGameScreen.integrated-quest-screen .nq-msg{line-height:1.35}
#cardGameScreen.integrated-quest-screen .nq-ctl:has(.nq-hand){min-height:32px}
#cardGameScreen.integrated-quest-screen .nq-drawn>.nq-card-draw{height:100%;max-height:min(196px,39.2vw);width:auto;max-width:min(140px,28vw);min-height:0}
#cardGameScreen.integrated-quest-screen .nq-card-draw .nq-c-num{font-size:32px}
