/* One room list at every viewport: rotation never changes the entry flow. */
.texas-lobby-status:empty { display:none; }
.texas-lobby-refresh, .texas-entry-retry, .texas-fullscreen-gate-back {
  min-height:44px;padding:10px 16px;border:1px solid #d8bc73;border-radius:10px;
  background:#12273a;color:#fff;font:700 14px Arial,sans-serif;cursor:pointer;
  touch-action:manipulation;
}
.texas-lobby-status { color:#ffe49a;line-height:1.4; }
.texas-lobby-room:disabled { opacity:.65;cursor:wait; }
@media (max-width:900px), (pointer:coarse) {
  .texas-page:not(.texas-desktop-table-open) { height:auto;min-height:100dvh;overflow:auto; }
  .texas-page::before { display:none !important; }
  .texas-page > .texas-desktop-lobby {
    display:block !important;box-sizing:border-box;width:100%;max-width:760px;
    min-height:100dvh;margin:0 auto;padding:20px max(16px,env(safe-area-inset-left));
    background:#091421;color:#fff;overflow-wrap:anywhere;
  }
  .texas-page.texas-entry-loading > .texas-desktop-entry-placeholder {
    display:flex !important;flex-direction:column;justify-content:center;align-items:center;gap:16px;
  }
  .texas-entry-status { max-width:32em;text-align:center;color:#baccdf;line-height:1.5; }
  .texas-entry-loading > .texas-shell,
  .texas-desktop-lobby-ready:not(.texas-desktop-table-open) > .texas-shell,
  .texas-page.texas-desktop-table-open > .texas-desktop-lobby,
  .texas-nickname-entry > .texas-desktop-entry-placeholder { display:none !important; }
  .texas-desktop-lobby > header {
    display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;
    padding-bottom:16px;border-bottom:1px solid #806b39;
  }
  .texas-desktop-lobby h1 { flex:1 1 200px;margin:0;color:#ffd451;font-size:21px;line-height:1.25; }
  .texas-desktop-lobby > p { margin:16px 0;color:#c3d4e5;font-size:14px;line-height:1.5; }
  .texas-lobby-list { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:12px;margin:18px 0; }
  .texas-lobby-room {
    box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;gap:7px;
    width:100%;min-width:0;min-height:124px;padding:16px;border:1px solid #4c687b;border-radius:14px;
    background:linear-gradient(135deg,#173247,#0e2031);color:#fff;text-align:left;font:inherit;
    touch-action:manipulation;
  }
  .texas-lobby-room strong { color:#ffe095;font-size:17px;line-height:1.25; }
  .texas-lobby-room > span { font-size:14px; }
  .texas-lobby-room small { color:#c7dbe8;font-size:13px; }
  .texas-lobby-room-state { display:inline-block;margin-top:3px;padding:5px 9px;border-radius:20px;background:#253b4c;font-size:12px !important; }
  .texas-lobby-room-state--playing { background:#123d30;color:#a5f3c7; }
  .texas-lobby-empty { grid-column:1/-1;line-height:1.5; }
  .texas-lobby-room:focus-visible { outline:3px solid #ffd451;outline-offset:2px; }
  .texas-lobby-article { margin-top:28px;border-top:1px solid #2a4254;padding-top:16px;color:#baccdf;font-size:13px;line-height:1.6; }
  .texas-lobby-article h2 { font-size:18px; }
  .texas-lobby-article h3 { font-size:16px; }
  .texas-desktop-room-bar {
    display:flex !important;flex:0 0 auto;align-items:center;gap:10px;box-sizing:border-box;
    min-height:36px;padding:3px max(8px,env(safe-area-inset-left));background:#102235;color:#c9dbe7;
  }
  .texas-desktop-room-bar button,.texas-desktop-room-bar a {
    min-height:32px;padding:7px 10px;border:1px solid #807246;border-radius:7px;
    background:#142d3d;color:#fff;font:700 11px Arial,sans-serif;text-decoration:none;white-space:nowrap;
  }
  .texas-desktop-room-hint { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px; }
  .texas-page.texas-desktop-table-open > .texas-shell {
    position:relative;inset:auto;transform:none;box-sizing:border-box;width:100%;max-width:none;
    height:100dvh;max-height:none;margin:0;border-radius:0;box-shadow:none;
  }
  .texas-page.texas-desktop-table-open .texas-table { min-height:0;aspect-ratio:auto; }
  .texas-page.texas-nickname-entry > .texas-shell { display:block !important;height:auto;min-height:100dvh;overflow:auto; }
  .texas-nickname-entry .texas-table,.texas-nickname-entry .texas-shell > p { display:none !important; }
  .texas-nickname-entry .texas-shell > form.texas-seat { box-sizing:border-box;width:calc(100% - 32px);max-width:440px;margin:36px auto;padding:20px; }
  .texas-nickname-entry input { box-sizing:border-box;max-width:100%;min-height:44px;font-size:16px; }
}
@media (pointer:coarse) and (min-width:901px) and (orientation:landscape) {
  .texas-desktop-table-open > .texas-shell { display:flex;flex-direction:column;overflow:hidden; }
  .texas-desktop-table-open .texas-table { flex:1 1 auto; }
  .texas-desktop-table-open .texas-shell > header,.texas-desktop-table-open .texas-player-panel,
  .texas-desktop-table-open .texas-shell > p { display:none !important; }
}
/* Keep the rotation prompt clear instead of exposing a compressed table behind it. */
.texas-fullscreen-required .texas-fullscreen-gate { background:#06101f; }

/* Keep the felt free: room navigation is part of the existing gear menu. */
.texas-settings-menu > .texas-desktop-room-bar {
  display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;margin:8px 0 10px;padding:0;min-height:0;background:none;
}
.texas-settings-menu > .texas-desktop-room-bar > button,
.texas-settings-menu > .texas-desktop-room-bar > a {
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  width:100%;min-width:0;min-height:40px;margin:0;padding:8px;
  border:1px solid #bda65e;border-radius:8px;background:#193849;color:#fff;
  font:700 12px/1.2 Arial,sans-serif;text-decoration:none;white-space:normal;
}
.texas-settings-menu .texas-desktop-room-hint {
  grid-column:1/-1;min-width:0;max-width:100%;overflow-wrap:anywhere;
  white-space:normal;color:#c9dbe7;font:12px/1.4 Arial,sans-serif;
}
.texas-settings-menu .texas-cash-return { grid-column:1/-1; }
.texas-settings-menu > .texas-room-navigation-status {
  display:block;margin:0 0 10px;padding:8px;border-radius:7px;
  background:#0b1928;color:#ffe08a;font:12px/1.4 Arial,sans-serif;
}
.texas-settings-menu > .texas-room-navigation-status:empty { display:none; }
/* A closed panel must not create an invisible scroll area around the gear. */
.texas-settings:not(.texas-settings--open) > .texas-settings-menu { display:none; }
.texas-settings-toggle { touch-action:manipulation; }
