/* The directory scrolls between the existing account and navigation bars. */
@layer gtPlayerNavigation {
  #app .approvedMenu:has(.neonTables) .neonMast { display:none!important; }
  #app .approvedMenu .neonTables {
    box-sizing:border-box; display:flex!important; flex-direction:column!important;
    align-items:stretch!important; align-content:start!important;
    gap:6px!important; padding:4px 7px 5px!important; overflow:hidden!important;
  }
  #app .neonTables > .gtMenuPageNav { flex:none; }
  #app .neonTables > .directoryBanner {
    display:block!important; flex:none!important; width:100%!important; height:auto!important;
    min-height:0!important; border:0!important; border-radius:8px!important; background:none!important;
    padding:0!important; margin:0!important; color:#102336!important;
  }
  #app .neonTables .directoryBanner h1 {display:none!important}
  #app .neonTables .directoryBanner :is([data-directory-promotion],.directoryPromoOpen) {
    display:block!important; box-sizing:border-box!important; width:100%!important; min-height:0!important;
    padding:0!important; margin:0!important; border:0!important; background:none!important; text-shadow:none!important;
  }
  #app .neonTables .gtDirectoryTicket {
    display:flex; align-items:center; justify-content:space-between; gap:10px; box-sizing:border-box;
    min-height:44px; padding:4px 9px; color:#11263a; border:1px solid #ba9366; border-radius:8px;
    box-shadow:inset 0 0 0 2px #f7e3c3,inset 0 0 0 3px #a57a52;
    background:linear-gradient(105deg,#f4e2be,#fff4dd 57%,#f1dfbf);
  }
  #app .neonTables .gtDirectoryTicket > img {display:block;width:min(49%,260px);height:auto;mix-blend-mode:multiply}
  #app .neonTables .gtTicketNumbers {
    display:block; min-width:0; text-align:right; overflow-wrap:anywhere;
    font:700 clamp(13px,3.55vw,16px)/1.18 system-ui,sans-serif; font-variant-numeric:tabular-nums;
  }
  #app .neonTables .gtTicketNumbers, #app .neonTables .gtTicketNumbers time {color:#10263a!important;text-shadow:none!important;}
  #app .neonTables .gtTicketDetail {display:block;font-size:.94em;font-weight:600;margin-top:2px;}
  #app .neonTables .gtTicketDetail .gtHandFaces {white-space:nowrap;}
  #app .neonTables #liveTableDirectory {
    flex:1 1 0!important; display:flex!important; flex-direction:column!important; min-height:0!important;
    padding:0!important; margin:0!important; overflow:hidden!important;
  }
  #app .neonTables .neonRows {
    flex:1 1 0!important; display:flex!important; flex-direction:column!important; align-items:stretch!important;
    min-height:0!important; overflow-y:auto!important; gap:7px!important; margin:0!important; padding:0!important;
    overscroll-behavior-y:contain; scroll-padding:4px; scrollbar-width:thin;
  }
  #app .neonTables .liveLobbyRow {
    --table-photo:url("./holdem-table-1.webp");
    --photo-ratio:2;
    display:flex!important; flex-direction:column!important; align-items:stretch!important;
    justify-content:space-between!important; box-sizing:border-box!important; position:relative; isolation:isolate;
    flex:0 0 auto!important; width:100%!important; height:auto!important; min-block-size:max-content!important;
    padding:0!important; gap:0!important; margin:0!important; overflow:hidden!important;
    border:1px solid #47688b!important; border-radius:13px!important; background:#0b1d36!important;
    color:#f7f8fb!important; text-align:left!important; box-shadow:none!important;
  }
  #app .neonTables .liveLobbyRow[data-photo="holdem-table-1"] {--photo-ratio:3;}
  #app .neonTables .liveLobbyRow[data-photo="holdem-table-2-blue"] {--table-photo:url("./holdem-table-2-blue.webp");}
  #app .neonTables .liveLobbyRow[data-photo="bomb-pot"] {--table-photo:url("./bomb-pot-studio.webp");}
  #app .neonTables .liveLobbyRow[data-photo="the-pink-game"] {--table-photo:url("./the-pink-game.webp");--photo-ratio:1.778;}
  #app .neonTables .liveLobbyRow[data-photo="omaha-hi-lo-table-3"] {--table-photo:url("./omaha-hi-lo-table-3.webp");}
  #app .neonTables .liveLobbyRow[data-photo="omaha-high-table-6"] {--table-photo:url("./omaha-high-table-6.webp");}
  #app .neonTables .liveLobbyRow[data-photo="pineapple-table-1"] {--table-photo:url("./pineapple-table-1.webp");}
  #app .neonTables .liveLobbyRow::before,
  #app .neonTables .liveLobbyRow::after {content:none!important;}
  #app .neonTables .liveLobbyInfo {
    position:relative; isolation:isolate; overflow:hidden; flex:1 0 auto;
    display:grid!important; gap:1px!important; align-content:center!important; justify-content:start!important;
    min-height:0!important; width:100%!important; max-width:100%!important; box-sizing:border-box;
    margin:0!important; padding:5px 9px!important; text-shadow:0 1px 3px #040711,0 0 5px #101421;
    /* Carry the photograph's bare felt across the lettering, even on wide rows. */
    background:#101722 var(--table-photo) left 56% / 215% 210% no-repeat!important;
  }
  #app .neonTables .liveLobbyInfo::before {
    content:""; position:absolute; top:0; right:0; height:100%; aspect-ratio:var(--photo-ratio);
    max-width:100%; z-index:-2; pointer-events:none;
    background:var(--table-photo) right center / contain no-repeat;
    mask-image:linear-gradient(to right,transparent,#000 27%);
  }
  #app .neonTables .liveLobbyInfo::after {
    content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
    background:linear-gradient(90deg,rgba(4,8,16,.42),rgba(4,8,16,.34) 37%,transparent 73%);
  }
  #app .neonTables [data-photo="bomb-pot"] .liveLobbyInfo {
    /* Reserve the right side for the photograph and let long table names wrap on the felt. */
    padding-right:37%!important;
    grid-template-columns:minmax(0,1fr);
    justify-content:stretch!important;
    text-align:center;
    background:#0c0407 var(--table-photo) right center / auto 100% no-repeat!important;
  }
  #app .neonTables [data-photo="bomb-pot"] .liveLobbyInfo::before {content:none;}
  #app .neonTables [data-photo="bomb-pot"] .liveLobbyInfo::after {
    background:linear-gradient(90deg,#0d0408 0%,rgba(13,4,8,.86) 38%,transparent 72%);
  }
  #app .neonTables .liveLobbyInfo strong {
    display:block!important; margin:0 0 2px!important; color:#fff!important;
    font:730 clamp(19px,5vw,23px)/1.14 system-ui,sans-serif!important; overflow-wrap:anywhere!important;
  }
  #app .neonTables .liveLobbyInfo small {
    display:block!important; margin:0!important; color:#edf2f8!important;
    font:500 clamp(13px,3.6vw,16px)/1.2 system-ui,sans-serif!important; font-variant-numeric:tabular-nums!important;
  }
  #app .neonTables .gtLiveStakes b {font-weight:750;color:white;}
  #app .neonTables .liveLobbyInfo .liveLobbySeats {color:#dcf3e8!important;font-weight:660!important;}
  #app .neonTables .liveLobbyInfo .liveLobbyWait {color:#ffe2a0!important;font-weight:650!important;}
  #app .neonTables .liveLobbyAction {
    display:grid!important; grid-auto-flow:column!important; grid-auto-columns:minmax(0,1fr)!important;
    gap:6px!important; width:100%!important; min-height:0!important; margin:0!important;
    box-sizing:border-box; padding:5px 8px!important; border:0!important; position:static!important;
  }
  #app .neonTables .liveLobbyAction button {
    width:100%!important; min-width:0!important; min-height:44px!important; height:auto!important;
    padding:5px 6px!important; margin:0!important; border:1px solid #6884aa!important; border-radius:9px!important;
    background:linear-gradient(#1b365c,#10233e)!important; color:#fff!important; 
    font:650 clamp(16px,4.3vw,18px)/1.15 system-ui,sans-serif!important;
    box-shadow:inset 0 1px 0 #ffffff1f!important;
  }
  #app .neonTables .liveLobbyAction :is([data-join],[data-claim],[data-join-wait]):enabled {
    background:linear-gradient(#08765b,#095640)!important; border-color:#4b9d87!important;
  }
  #app .neonTables .liveLobbyAction button:focus-visible {outline:2px solid #ffe19a;outline-offset:-3px;}
  #app .neonTables .liveLobbyFeedback:empty {display:none!important}
  #app .neonTables .liveLobbyFeedback:not(:empty) {margin:0;padding:4px 6px;}
  @media (max-width:600px) {
    #app .neonTables .liveLobbyRow {min-height:calc((100% - 14px)/3)!important;}
  }
  @media (max-width:360px) {
    #app .neonTables [data-photo="bomb-pot"] .liveLobbyInfo {padding-right:34%!important;}
    #app .neonTables [data-photo="bomb-pot"] .liveLobbyInfo strong {font-size:18px!important;}
  }
  @media (min-width:601px) {
    #app .neonTables .liveLobbyRow {min-height:154px!important;}
    #app .neonTables .liveLobbyInfo, #app .neonTables .liveLobbyAction {padding-inline:14px!important;}
  }
}
