*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;font-family:system-ui,Arial;background:#090d0b;color:#eee}button,input{font:inherit}button{background:#a82828;color:#fff;border:1px solid #d34a4a;border-radius:7px;padding:9px 13px;font-weight:800;cursor:pointer;min-height:40px}button.secondary{background:#222;border-color:#555}.hidden{display:none!important}.screen{width:100%;height:100%;overflow:hidden}.login{width:min(430px,92vw);margin:clamp(20px,10vh,90px) auto;padding:28px}.panel{background:#121916;border:1px solid #28372f;border-radius:12px;padding:clamp(10px,1.5vw,18px);min-width:0;min-height:0}.login input,form input,.actions input{background:#090d0b;color:#fff;border:1px solid #405247;border-radius:7px;padding:10px;min-width:0}.login input{width:100%;margin:15px 0}.login button{width:100%}h1{color:#e44b42;letter-spacing:2px}h2,h3,p{margin-top:.45em;margin-bottom:.65em}header{height:54px;padding:0 12px;background:#101713;border-bottom:1px solid #2c3a32;display:flex;align-items:center;gap:10px;justify-content:space-between;overflow:hidden}header>*{min-width:0}.lobbyGrid{height:calc(100% - 54px);display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:10px;padding:10px;max-width:1200px;margin:auto;overflow:hidden}.lobbyGrid>section{overflow:auto}.stats{display:flex;gap:8px;flex-wrap:wrap}.stats span{background:#0b100e;padding:8px 11px;border-radius:8px}.matchbox{margin-top:12px;padding:clamp(12px,2vw,22px);background:#0b100e;border-radius:10px}.messages{height:100%;min-height:0;overflow:auto;background:#090d0b;border:1px solid #27372e;border-radius:8px;padding:8px}.msg{padding:5px;border-bottom:1px solid #18221d}.chat{display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden!important}.chat form,.tableChat form{display:flex;gap:7px;margin-top:8px}.chat input,.tableChat input{flex:1}.tableLayout{height:calc(100% - 54px);display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,280px);gap:8px;padding:8px;overflow:hidden}.pokerWrap{min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden}.felt{position:relative;width:100%;height:100%;min-height:0;background:radial-gradient(ellipse,#17603d,#0c3d27 65%,#07291a);border:clamp(7px,1.2vw,15px) solid #442d1d;border-radius:45%;box-shadow:inset 0 0 0 3px #a87945,0 0 20px #000;overflow:hidden}.seat{position:absolute;width:clamp(112px,17vw,180px);min-height:clamp(72px,12vh,100px);max-height:32%;overflow:hidden;background:#101612ef;border:2px solid #415348;border-radius:10px;padding:clamp(4px,.8vw,8px);text-align:center;font-size:clamp(10px,1.25vw,14px)}.seat.turn{border-color:#f0c04b;box-shadow:0 0 12px #f0c04b77}.s0{bottom:1.5%;left:50%;transform:translateX(-50%)}.s1{left:1%;top:34%}.s2{top:1.5%;left:50%;transform:translateX(-50%)}.s3{right:1%;top:34%}.center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;width:min(58%,520px);font-size:clamp(11px,1.5vw,16px)}.cards{display:flex;justify-content:center;gap:clamp(2px,.55vw,6px);margin:clamp(4px,1.2vh,12px)}.card{display:inline-flex;width:clamp(29px,4.1vw,48px);height:clamp(41px,5.8vw,68px);border-radius:5px;background:#f5f3ea;color:#111;align-items:center;justify-content:center;font-weight:900;font-size:clamp(12px,1.7vw,20px);border:1px solid #bbb}.card.red{color:#c22}.card.back{background:repeating-linear-gradient(45deg,#7c2020,#7c2020 5px,#b43b3b 5px,#b43b3b 10px);color:transparent;border:2px solid white}.hole{margin-top:3px}.actions{display:flex;gap:6px;justify-content:center;padding:7px;flex-wrap:nowrap;overflow-x:auto;background:#090d0b}.actions button,.actions input{min-height:40px;flex:0 0 auto}.actions input{width:86px}.tableChat{padding:8px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}.tableChat .messages{height:auto}.menu{position:fixed;right:10px;top:60px;background:#151c18;border:1px solid #415348;padding:9px;border-radius:9px;z-index:10;display:grid;gap:7px}#toast{position:fixed;left:50%;bottom:12px;transform:translateX(-50%);background:#111e;padding:10px 16px;border-radius:8px;opacity:0;pointer-events:none;transition:.2s;max-width:90%;text-align:center}#toast.show{opacity:1}.folded{opacity:.42}.dealer{color:#f0c04b;font-weight:bold}
@media(max-width:760px){header{height:48px;font-size:12px;padding:0 7px}header button{min-height:36px;padding:6px 9px}.lobbyGrid{height:calc(100% - 48px);grid-template-columns:1fr;grid-template-rows:minmax(0,.9fr) minmax(0,1.1fr);gap:6px;padding:6px}.panel{padding:9px}.matchbox{margin-top:7px;padding:9px}.messages{font-size:13px}.chat form{margin-top:5px}.tableLayout{height:calc(100% - 48px);display:block;padding:4px}.pokerWrap{height:100%;grid-template-rows:minmax(0,1fr) auto}.tableChat{display:none}.felt{border-width:6px;border-radius:38%;}.seat{width:clamp(92px,31vw,128px);min-height:64px;max-height:29%;font-size:10px;padding:3px}.s0{bottom:1%}.s1{left:0;top:35%}.s2{top:1%}.s3{right:0;top:35%}.center{width:48%;font-size:11px}.card{width:clamp(25px,8vw,36px);height:clamp(36px,11vw,50px);font-size:13px}.cards{gap:2px;margin:4px}.actions{padding:5px 2px;gap:3px;justify-content:space-between}.actions button{padding:7px 8px;font-size:11px;min-height:38px}.actions input{width:60px;padding:6px;font-size:12px;min-height:38px}}
@media(max-width:420px){.seat{width:92px;font-size:9px}.center{width:44%}.actions button{padding:6px;font-size:10px}.actions input{width:54px}.stats span{padding:6px 8px;font-size:12px}}
@media(max-height:600px) and (min-width:761px){header{height:46px}.tableLayout{height:calc(100% - 46px);padding:5px}.seat{min-height:60px;font-size:11px}.card{width:32px;height:45px;font-size:14px}.actions{padding:4px}.actions button,.actions input{min-height:35px;padding-top:5px;padding-bottom:5px}.lobbyGrid{height:calc(100% - 46px)}}

/* v4 mobile bottom-seat safety */
@media(max-width:760px){
  .pokerWrap{grid-template-rows:minmax(0,1fr) 50px;gap:2px}
  .felt{padding-bottom:74px}
  .s0{bottom:8px;min-height:58px;max-height:none;z-index:3}
  .s0 .hole{display:flex;justify-content:center;gap:2px;margin-top:2px}
  .s0 .card{width:28px;height:39px;font-size:12px}
  .actions{height:50px;align-items:center;padding:4px 2px;overflow-x:auto;overflow-y:hidden}
}
@media(max-width:420px){
  .felt{padding-bottom:68px}
  .s0{bottom:6px;width:104px}
  .s0 .card{width:26px;height:36px;font-size:11px}
}
@media(max-height:500px) and (max-width:760px){
  .pokerWrap{grid-template-rows:minmax(0,1fr) 44px}
  .actions{height:44px}
  .felt{padding-bottom:58px}
  .s0{bottom:4px;min-height:50px}
  .s0 .card{width:23px;height:32px;font-size:10px}
}

/* v5: mobile hole cards must never be clipped */
@media(max-width:760px){
  .pokerWrap{grid-template-rows:minmax(0,1fr) 50px}
  .felt{overflow:hidden}
  .seat.s0{
    bottom:10px;
    width:118px;
    height:92px;
    min-height:92px;
    max-height:none;
    overflow:visible;
    padding:3px 4px 5px;
  }
  .seat.s0 .hole{
    height:41px;
    min-height:41px;
    margin:2px 0 0;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    gap:3px;
    overflow:visible;
  }
  .seat.s0 .hole .card{
    flex:0 0 28px;
    width:28px;
    height:39px;
    min-height:39px;
    margin:0;
  }
}
@media(max-width:420px){
  .seat.s0{bottom:8px;width:108px;height:86px;min-height:86px}
  .seat.s0 .hole{height:38px;min-height:38px}
  .seat.s0 .hole .card{flex-basis:26px;width:26px;height:36px;min-height:36px}
}
@media(max-height:500px) and (max-width:760px){
  .seat.s0{bottom:5px;height:76px;min-height:76px;font-size:8px;line-height:1.05}
  .seat.s0 .hole{height:34px;min-height:34px;margin-top:1px}
  .seat.s0 .hole .card{flex-basis:23px;width:23px;height:32px;min-height:32px}
}

/* v6: raise all player information slightly inside each seat box */
.seat > b,
.seat > div {
  position: relative;
  top: -5px;
}
@media(max-width:760px){
  .seat > b,
  .seat > div { top:-6px; }
}

/* v7: compact all player-seat contents so hole cards have clear bottom margin */
.seat{padding:4px 5px;line-height:1.08}
.seat > b,.seat > div{top:-5px}
.seat .hole{margin-top:1px}
.seat .card{width:clamp(27px,3.7vw,43px);height:clamp(38px,5.2vw,60px);font-size:clamp(11px,1.5vw,18px)}
@media(max-width:760px){
  .seat{width:clamp(88px,29vw,120px);min-height:58px;padding:2px 3px;font-size:9px;line-height:1.02}
  .seat > b,.seat > div{top:-7px}
  .seat .hole{margin-top:0;height:34px;min-height:34px}
  .seat .hole .card{width:23px;height:32px;min-height:32px;flex-basis:23px;font-size:10px}
  .seat.s0{height:78px;min-height:78px}
  .seat.s0 .hole{height:34px;min-height:34px}
  .seat.s0 .hole .card{width:23px;height:32px;min-height:32px;flex-basis:23px;font-size:10px}
}
@media(max-width:420px){
  .seat{width:86px;font-size:8px}
  .seat .hole{height:31px;min-height:31px}
  .seat .hole .card{width:21px;height:29px;min-height:29px;flex-basis:21px;font-size:9px}
  .seat.s0{width:100px;height:72px;min-height:72px}
  .seat.s0 .hole{height:31px;min-height:31px}
  .seat.s0 .hole .card{width:21px;height:29px;min-height:29px;flex-basis:21px;font-size:9px}
}

/* v10: mobile/fullscreen chat keyboard + send button fix */
html, body {
    height: 100dvh;
    min-height: 100dvh;
}
.screen {
    height: 100dvh;
}
.chat form,
.tableChat form {
    width: 100%;
    min-width: 0;
    align-items: stretch;
}
.chat form input,
.tableChat form input {
    width: 0;
    min-width: 0;
    flex: 1 1 auto;
}
.chat form button,
.tableChat form button {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width:760px) {
    .lobbyGrid {
        height: calc(100dvh - 48px);
    }
    .tableLayout {
        height: calc(100dvh - 48px);
    }
    .chat form,
    .tableChat form {
        gap: 4px;
    }
    .chat form button,
    .tableChat form button {
        padding-left: 10px;
        padding-right: 10px;
        min-width: 58px;
    }
}

/* v15: mobile fullscreen/chat behavior matched to working Space MMO */
:root{--app-height:100vh}
html,body,.screen{height:var(--app-height);min-height:var(--app-height)}
@media (max-width:900px),(hover:none),(pointer:coarse){
  .chat form input,.tableChat form input{
    font-size:16px;
    height:42px;
  }
  .chat form button,.tableChat form button{
    height:42px;
    min-width:62px;
    flex:0 0 auto;
  }
}
@media (pointer:coarse) and (orientation:landscape){
  .lobbyGrid{height:calc(var(--app-height) - 48px)}
  .tableLayout{height:calc(var(--app-height) - 48px)}
}

/* v20: explicit poker table leave control */
.tableHeaderButtons{display:flex;align-items:center;gap:6px;min-width:0}
.leaveTableBtn{background:#7e2823;padding:8px 11px;white-space:nowrap}
@media(max-width:760px){.tableHeaderButtons{gap:3px}.leaveTableBtn{padding:6px 7px;font-size:10px}}


/* =====================================================
   POKER GAME TOUCH BEHAVIOR
   ===================================================== */

#table {
    -webkit-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

#table .card,
#table .seat,
#board {
    -webkit-user-select: none;
    user-select: none;

    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

#table button {
    -webkit-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;

    touch-action: manipulation;
}

/*
   VERY IMPORTANT:
   Don't disable normal touch behavior on chat.
*/
#table input,
#table textarea,
#tableChat {
    -webkit-user-select: text;
    user-select: text;

    -webkit-touch-callout: default;
}
/* v38.7: portrait phone poker table — normal browser view */
@media (max-width:760px) and (orientation:portrait) {
  #table header{height:48px}
  #table .tableLayout{height:calc(var(--app-height) - 48px);padding:4px;display:block}
  #table .pokerWrap{height:100%;grid-template-rows:minmax(0,1fr) auto;gap:3px}
  #table .felt{border-width:5px;border-radius:24%;min-height:0}

  /* Seats use the tall screen instead of crowding the middle. */
  #table .seat{width:112px;min-height:78px;height:auto;max-height:96px;padding:4px;font-size:10px;line-height:1.08;overflow:hidden}
  #table .seat>b,#table .seat>div{top:0}
  #table .s0{bottom:8px;left:50%;transform:translateX(-50%);width:132px;min-height:94px;max-height:108px}
  #table .s1{left:4px;top:24%}
  #table .s2{top:7px;left:50%;transform:translateX(-50%)}
  #table .s3{right:4px;top:24%}

  #table .center{top:55%;width:82%;font-size:12px;line-height:1.15}
  #table .center .cards{margin:5px 0;gap:3px}
  #table .center .card{width:38px;height:53px;font-size:15px}

  /* Hole cards stay readable in every player seat. */
  #table .seat .hole{height:auto;min-height:46px;margin-top:3px;display:flex;justify-content:center;gap:3px;overflow:visible}
  #table .seat .hole .card{width:32px;height:44px;min-height:44px;flex:0 0 32px;font-size:13px}
  #table .s0 .hole{height:auto;min-height:52px}
  #table .s0 .hole .card{width:36px;height:50px;min-height:50px;flex-basis:36px;font-size:15px}

  #table .actions{min-height:52px;padding:5px 3px;gap:4px;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
  #table .actions button{min-height:42px;padding:7px 10px;font-size:12px}
  #table .actions input{width:70px;min-height:42px;font-size:16px}
  #table .tableChat{display:none}
}

@media (max-width:430px) and (orientation:portrait) {
  #table .seat{width:100px;font-size:9px}
  #table .s0{width:124px}
  #table .s1{left:2px;top:23%}
  #table .s3{right:2px;top:23%}
  #table .center{top:54%;width:78%;font-size:11px}
  #table .center .card{width:35px;height:49px;font-size:14px}
  #table .seat .hole .card{width:30px;height:42px;min-height:42px;flex-basis:30px;font-size:12px}
  #table .s0 .hole .card{width:35px;height:49px;min-height:49px;flex-basis:35px;font-size:14px}
}

@media (max-width:370px) and (orientation:portrait) {
  #table .seat{width:92px}
  #table .s0{width:116px}
  #table .center{width:74%}
  #table .center .card{width:32px;height:45px;font-size:13px}
  #table .actions button{padding:7px 8px;font-size:11px}
}

/* =====================================================
   V59 RESPONSIVE OVERHAUL — TEXAS HOLD'EM
   Final authoritative layout layer.
   ===================================================== */
#table{--poker-header:52px}
#table header{height:var(--poker-header);min-height:var(--poker-header);padding:0 clamp(6px,1.2vw,12px);gap:6px}
#table header>b,#table #street{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#table .tableHeaderButtons{flex:0 0 auto}
#table .tableLayout{height:calc(var(--app-height) - var(--poker-header));min-height:0;grid-template-columns:minmax(0,1fr) clamp(230px,22vw,300px);gap:6px;padding:6px}
#table .pokerWrap{min-height:0;grid-template-rows:minmax(0,1fr) auto;gap:4px}
#table .felt{min-width:0;min-height:0;border-width:clamp(6px,1vw,12px);border-radius:42%;padding:0;overflow:hidden}

/* Seats have fixed visual zones so changing text/cards cannot shove the table around. */
#table .seat{width:clamp(104px,15vw,168px);min-height:0;height:clamp(72px,15vh,108px);max-height:none;padding:4px 5px;line-height:1.05;overflow:hidden;display:block}
#table .seat>b,#table .seat>div{position:static;top:auto}
#table .seat>b{display:inline-block;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
#table .seat .hole{height:clamp(34px,7vh,52px);min-height:0;margin-top:2px;display:flex;align-items:center;justify-content:center;gap:2px;overflow:visible}
#table .seat .hole .card{width:clamp(24px,3.2vw,38px);height:clamp(34px,4.5vw,53px);min-height:0;flex:0 0 auto;font-size:clamp(10px,1.35vw,16px);margin:0}
#table .s0{bottom:1.5%;left:50%;transform:translateX(-50%)}
#table .s1{left:1%;top:35%}
#table .s2{top:1.5%;left:50%;transform:translateX(-50%)}
#table .s3{right:1%;top:35%}

#table .center{top:50%;width:min(58%,520px);font-size:clamp(10px,1.3vw,15px);line-height:1.1}
#table .center .cards{display:flex;flex-wrap:nowrap;justify-content:center;gap:clamp(2px,.45vw,5px);margin:clamp(3px,.8vh,8px) 0}
#table .center .card{width:clamp(28px,3.8vw,46px);height:clamp(39px,5.3vw,64px);font-size:clamp(11px,1.5vw,18px);flex:0 0 auto}
#table #message{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

#table .actions{min-height:52px;padding:5px;gap:5px;overflow-x:auto;overflow-y:hidden;justify-content:center;scrollbar-width:thin;overscroll-behavior-x:contain}
#table .actions button,#table .actions input{min-height:42px;height:42px;touch-action:manipulation}
#table .actions button{padding:7px clamp(9px,1.6vw,15px)}
#table .actions input{width:clamp(66px,8vw,86px);font-size:16px}
#table .tableChat{min-width:0;padding:7px}

@media(max-width:900px){
  #table{--poker-header:48px}
  #table .tableLayout{display:block;height:calc(var(--app-height) - var(--poker-header));padding:4px}
  #table .pokerWrap{height:100%;grid-template-rows:minmax(0,1fr) auto}
  #table .tableChat{display:none}
  #table .felt{border-width:5px;border-radius:32%}
  #table .seat{width:clamp(88px,27vw,120px);height:clamp(62px,13vh,86px);padding:3px;font-size:clamp(8px,2.4vw,10px)}
  #table .seat .hole{height:clamp(29px,7vh,40px);margin-top:1px}
  #table .seat .hole .card{width:clamp(21px,6.4vw,29px);height:clamp(29px,9vw,41px);font-size:clamp(8px,2.8vw,11px)}
  #table .s0{bottom:2%}
  #table .s1{left:1%;top:34%}
  #table .s2{top:1%}
  #table .s3{right:1%;top:34%}
  #table .center{width:50%;top:52%;font-size:clamp(9px,2.6vw,12px)}
  #table .center .card{width:clamp(25px,7.6vw,36px);height:clamp(35px,10.6vw,50px);font-size:clamp(10px,3.4vw,14px)}
  #table .actions{min-height:50px;padding:4px 2px;gap:3px;justify-content:flex-start;-webkit-overflow-scrolling:touch}
  #table .actions button{min-height:42px;height:42px;padding:6px 10px;font-size:11px}
  #table .actions input{min-height:42px;height:42px;width:68px}
}

/* Portrait gets a tall-table composition with clear separation between seats and board. */
@media(max-width:760px) and (orientation:portrait){
  #table .felt{border-radius:25%}
  #table .seat{width:clamp(90px,29vw,112px);height:clamp(64px,11.5vh,82px)}
  #table .s0{bottom:1.5%;width:clamp(104px,34vw,126px);height:clamp(72px,13vh,92px)}
  #table .s1{left:1%;top:25%}
  #table .s2{top:1%}
  #table .s3{right:1%;top:25%}
  #table .center{top:55%;width:70%}
  #table .center .card{width:clamp(27px,9vw,38px);height:clamp(38px,12.6vw,53px)}
  #table .s0 .hole .card{width:clamp(24px,8vw,32px);height:clamp(34px,11.2vw,45px);font-size:clamp(10px,3.4vw,13px)}
}

@media(max-width:390px) and (orientation:portrait){
  #table header{font-size:10px}
  #table .leaveTableBtn{font-size:9px;padding:5px 6px}
  #table #tableMenu{font-size:0;padding:5px 8px}
  #table #tableMenu::after{content:'☰';font-size:16px}
  #table .seat{width:88px;height:62px;font-size:8px}
  #table .s0{width:104px;height:72px}
  #table .center{width:66%;top:54%}
  #table .center .card{width:25px;height:35px;font-size:10px}
  #table .actions button{padding-inline:8px;font-size:10px}
  #table .actions input{width:62px}
}

/* Short landscape phones prioritize the actual table and controls. */
@media(max-height:560px) and (orientation:landscape) and (max-width:900px){
  #table{--poker-header:42px}
  #table header{font-size:10px}
  #table header button{min-height:34px;padding:4px 7px;font-size:9px}
  #table .felt{border-width:4px;border-radius:38%}
  #table .seat{width:clamp(88px,18vw,112px);height:58px;font-size:8px;padding:2px 3px}
  #table .seat .hole{height:27px}
  #table .seat .hole .card{width:19px;height:27px;font-size:8px}
  #table .s0{bottom:1%}
  #table .s1{top:34%}
  #table .s2{top:1%}
  #table .s3{top:34%}
  #table .center{width:46%;top:50%;font-size:9px}
  #table .center .cards{margin:2px 0}
  #table .center .card{width:25px;height:35px;font-size:10px}
  #table .actions{min-height:44px;height:44px;padding:2px;gap:3px}
  #table .actions button,#table .actions input{min-height:38px;height:38px}
}


/* =====================================================
   V76 MOBILE POKER CHAT — keep table chat accessible
   without permanently stealing table space.
   ===================================================== */
#table .mobileChatBtn{display:none}
#table .tableChatTitle{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
#table .tableChatTitle h3{margin:0}
#table #closeTableChat{display:none;min-width:42px;min-height:38px;padding:5px 10px}

@media(max-width:900px){
  #table .mobileChatBtn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:5px 9px;font-size:11px;flex:0 0 auto}
  #table .tableHeaderButtons{display:flex;align-items:center;gap:4px;min-width:0}

  /* Override the older mobile display:none rules. It remains hidden until CHAT is tapped. */
  #table #tableChatPanel{
    display:none;
    position:absolute;
    z-index:40;
    left:4px;
    right:4px;
    bottom:4px;
    width:auto;
    height:min(52%,330px);
    min-height:190px;
    padding:8px;
    grid-template-rows:auto minmax(0,1fr) auto;
    overflow:hidden;
    border:2px solid #415348;
    background:#121916f7;
    box-shadow:0 -8px 24px #000a;
  }
  #table #tableChatPanel.mobileOpen{display:grid!important}
  #table #tableChatPanel .tableChatTitle{min-height:38px}
  #table #closeTableChat{display:inline-flex;align-items:center;justify-content:center}
  #table #tableChatPanel .messages{min-height:0;height:auto;overflow-y:auto;-webkit-overflow-scrolling:touch;font-size:13px}
  #table #tableChatPanel form{display:flex;gap:6px;margin-top:6px;min-width:0}
  #table #tableChatPanel form input{min-width:0;width:0;flex:1 1 auto;min-height:44px;height:44px;font-size:16px;padding:8px}
  #table #tableChatPanel form button{flex:0 0 auto;min-width:64px;min-height:44px;height:44px;padding:7px 10px}
}

@media(max-width:430px){
  #table .mobileChatBtn{font-size:10px;padding-inline:7px}
  #table #tableChatPanel{left:2px;right:2px;bottom:2px;height:min(58%,310px);min-height:180px;padding:6px}
}

@media(max-height:560px) and (orientation:landscape) and (max-width:900px){
  #table .mobileChatBtn{min-height:34px;padding:4px 7px;font-size:9px}
  #table #tableChatPanel{height:calc(var(--app-height) - var(--poker-header) - 8px);min-height:0;top:calc(var(--poker-header) + 4px);bottom:4px}
  #table #tableChatPanel .tableChatTitle{min-height:32px}
  #table #tableChatPanel form input,#table #tableChatPanel form button{min-height:40px;height:40px}
}
