/* TANHU METE A23.10.3 — envelope/turn isolation and missed-turn recovery UI */
#tqcFab,#tanhuMatchChat>.tmc-fab,#tanhuMeteInviteCenterA2393>.tm-invite-bell-a2393{display:none!important}
#tanhuMeteMessageCenterA2310{position:fixed;right:10px;bottom:calc(env(safe-area-inset-bottom,0px) + 12px);top:auto;z-index:10040;font-family:Inter,system-ui,sans-serif;color:#fff;pointer-events:none}
.tm-mc-fab-a2310{width:50px;height:50px;border-radius:16px;border:1px solid #e3bd61;background:linear-gradient(145deg,#10283b,#40240f);color:#fff;font-size:22px;box-shadow:0 12px 34px #0009;position:relative;cursor:pointer;pointer-events:auto;touch-action:manipulation}
.tm-mc-count-a2310{position:absolute;right:-6px;top:-7px;min-width:22px;height:22px;padding:0 5px;border-radius:12px;background:#e83d46;color:#fff;border:2px solid #1a0d04;font:900 11px/18px system-ui;display:none}.tm-mc-fab-a2310.has-unread .tm-mc-count-a2310{display:block}
.tm-mc-drawer-a2310{display:none;position:fixed;right:8px;bottom:calc(env(safe-area-inset-bottom,0px) + 70px);top:auto;width:min(360px,calc(100vw - 16px));max-height:min(70dvh,560px);border:1px solid #d7ad58;border-radius:18px;background:linear-gradient(160deg,#091722fc,#24180dfc);box-shadow:0 24px 80px #000d;overflow:auto;pointer-events:none}.tm-mc-drawer-a2310.open{display:block;pointer-events:auto}
.tm-mc-head-a2310{display:flex;align-items:center;gap:8px;padding:10px 12px;background:#10283b;border-bottom:1px solid #ffffff1c}.tm-mc-head-a2310 strong{flex:1}.tm-mc-close-a2310{width:34px;height:34px;border:0;border-radius:10px;background:#ffffff12;color:#fff;font-size:22px}
.tm-mc-launchers-a2310{display:grid;gap:8px;padding:10px}.tm-mc-launchers-a2310 button{border:1px solid #49677c;border-radius:12px;padding:11px;background:#10283b;color:#fff;font-weight:800;text-align:left}.tm-mc-launchers-a2310 button:active{border-color:#f2cc70;background:#49391e;color:#ffe49b}
.tm-mc-system-a2310{display:grid;gap:6px;padding:0 10px 10px}.tm-mc-system-a2310 div{padding:8px 10px;border-radius:10px;background:#ffffff0b;border:1px solid #ffffff14;font-size:12px}
/* Closed legacy panels must never cover the board or turn controls. */
#tqcPanel:not(.open),#tmcPanel:not(.open),#tanhuMeteInviteCenterA2393 .tm-invite-panel-a2393:not(.open){display:none!important;pointer-events:none!important;visibility:hidden!important}
#tqcPanel.open,#tmcPanel.open,#tanhuMeteInviteCenterA2393 .tm-invite-panel-a2393.open{pointer-events:auto!important;visibility:visible!important;z-index:10035!important;max-height:min(68dvh,560px)!important;overflow:auto!important}
/* Keep the authoritative turn banner and game controls above non-open message layers. */
#a23RoomBanner,[data-competitive-status],.turnBadge,.turn-indicator,.statusPill{z-index:10060!important}
#game.active .boardShell{width:min(100%,calc(100vw - 12px))!important}
#board{max-width:min(96vw,82dvh)!important;max-height:min(96vw,82dvh)!important}
@media(max-width:700px){#tanhuMeteMessageCenterA2310{right:6px;bottom:calc(env(safe-area-inset-bottom,0px) + 8px)}.tm-mc-fab-a2310{width:46px;height:46px}.tm-mc-drawer-a2310{right:4px;bottom:calc(env(safe-area-inset-bottom,0px) + 60px);width:calc(100vw - 8px)}}
@media(max-width:900px) and (orientation:landscape){.tm-mc-drawer-a2310{width:min(340px,44vw)}#board{max-width:min(62vw,88dvh)!important;max-height:min(62vw,88dvh)!important}}
