/* =========================================
   EGGY POOL LOBBY CLEAN REDESIGN
========================================= */

:root {
  --bg: #040914;
  --panel: rgba(10, 18, 32, .92);
  --panel2: rgba(255,255,255,.065);
  --cyan: #00ffe1;
  --purple: #7c3aed;
  --gold: #ffd166;
  --green: #52ffa8;
  --text: #ffffff;
  --muted: #b8c7d9;
  --line: rgba(0,255,225,.16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(0,255,225,.12), transparent 28%),
    radial-gradient(circle at top right, rgba(124,58,237,.16), transparent 34%),
    linear-gradient(180deg, #07101d, #03060d 70%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow-x: hidden;
}

a { color: inherit; }

.pool-topnav {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(7, 12, 22, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.pool-topnav-inner {
  width: min(1500px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.pool-brand {
  color: var(--cyan);
  text-decoration: none;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 1.2px;
  text-shadow: 0 0 18px rgba(0,255,225,.32);
}

.pool-navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pool-navlinks a {
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-weight: 900;
}

.pool-navlinks a:hover {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #07101d;
}

.pool-page {
  width: min(1500px, calc(100% - 34px));
  margin: 22px auto 50px;
}

.pool-hero {
  min-height: 210px;
  border-radius: 28px;
  padding: clamp(22px, 4vw, 38px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(0,255,225,.12), rgba(124,58,237,.16)),
    rgba(255,255,255,.04);
  border: 1px solid rgba(0,255,225,.18);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}

.pool-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0,255,225,.11);
  border: 1px solid rgba(0,255,225,.22);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .8px;
}

.pool-hero h1 {
  margin: 0;
  color: var(--cyan);
  font-size: clamp(44px, 8vw, 82px);
  line-height: .95;
  text-shadow: 0 0 24px rgba(0,255,225,.25);
}

.pool-hero p {
  margin: 14px 0 0;
  max-width: 720px;
  color: #d8e8f7;
  font-size: 17px;
  line-height: 1.5;
}

.pool-hero-actions {
  display: grid;
  gap: 10px;
  min-width: 220px;
}

.pool-hero-actions a,
.hub-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 16px;
  padding: 10px 14px;
  font-weight: 950;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
}

.pool-hero-actions a.primary,
.hub-cta {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #07101d;
}

.pool-account-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 26px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
  overflow: hidden;
}

.pool-account-left {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.pool-avatar {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(0,0,0,.36);
  border: 1px solid rgba(0,255,225,.22);
  font-size: 34px;
  flex: 0 0 auto;
}

.pool-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Critical: stop old/global avatar CSS from making images huge */
.pool-account-panel img,
.pool-avatar img {
  max-width: 76px !important;
  max-height: 76px !important;
}

.pool-account-left small,
.pool-stats-row small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.pool-account-left strong {
  display: block;
  color: var(--cyan);
  font-size: 24px;
  font-weight: 950;
}

.pool-account-left p {
  margin: 4px 0 8px;
  color: #d8e8f7;
}

.pool-xpbar {
  height: 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.38);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}

.pool-xpbar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.pool-stats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.pool-stats-row div {
  padding: 13px;
  border-radius: 18px;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.07);
}

.pool-stats-row b {
  display: block;
  margin-top: 5px;
  color: var(--gold);
  font-size: 24px;
}

.pool-feature-hub {
  margin-top: 18px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(5, 10, 20, .82);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
}

.pool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pool-tabs button,
button {
  border: 0;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 950;
  cursor: pointer;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
}

.pool-tabs button.active,
button:not(:disabled):hover {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #07101d;
}

button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.feature-grid,
.cue-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.feature-card,
.cue-preview-grid div {
  min-height: 118px;
  padding: 14px;
  border-radius: 18px;
  background: var(--panel2);
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
}

.feature-card.locked::after {
  content: "LOCKED";
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #07101d;
  font-size: 9px;
  font-weight: 950;
}

.feature-card em {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 9px;
  border-radius: 14px;
  background: rgba(0,255,225,.1);
  border: 1px solid rgba(0,255,225,.16);
  font-style: normal;
  font-size: 20px;
}

.feature-card b,
.cue-preview-grid b {
  display: block;
  color: #fff;
  margin-bottom: 6px;
}

.feature-card span,
.cue-preview-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.cue-preview-grid i {
  display: block;
  height: 13px;
  width: 100%;
  border-radius: 999px;
  transform: rotate(-7deg);
  margin: 13px 0;
  box-shadow: 0 0 18px rgba(255,255,255,.16);
}

.hub-cta {
  width: fit-content;
  margin-top: 14px;
}

.pool-lobby-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 350px;
  gap: 16px;
  align-items: start;
}

.pool-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
  min-width: 0;
}

.pool-card h2 {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 19px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.card-head span {
  color: var(--green);
  font-weight: 950;
  font-size: 12px;
}

.player-list,
.challenge-list,
.mini-ranking {
  display: grid;
  gap: 8px;
}

.player-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(0,255,225,.16);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.player-item:hover,
.player-item.selected {
  border-color: rgba(0,255,225,.55);
  background: rgba(0,255,225,.11);
}

.player-meta {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
}

.chat-card {
  min-height: 470px;
}

.chat-box {
  height: 390px;
  overflow-y: auto;
  background: rgba(0,0,0,.22);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-line {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
}

.chat-line b {
  color: var(--cyan);
}

.private-bot-line {
  border-color: rgba(255,209,102,.25);
  background: rgba(255,209,102,.09);
}

.private-bot-line b {
  color: var(--gold);
}

.chat-form {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

input {
  width: 100%;
  min-height: 46px;
  border-radius: 15px;
  border: 1px solid rgba(0,255,225,.18);
  background: rgba(0,0,0,.34);
  color: #fff;
  padding: 0 14px;
  outline: none;
  font-weight: 800;
}

.challenge-actions {
  display: grid;
  gap: 9px;
}

.helper-text {
  color: var(--muted);
  font-size: 13px;
}

.section-gap {
  margin-top: 22px !important;
}

.challenge-item,
.pool-lobby-rank-row {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
}

.pool-lobby-rank-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
}

.pool-lobby-rank-row b {
  color: var(--cyan);
}

.pool-lobby-rank-row small {
  color: var(--gold);
  font-weight: 950;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  background: rgba(0,0,0,.72);
  padding: 18px;
}

.modal.show {
  display: flex;
}

.modal-card {
  width: min(440px, 100%);
  background: #0b1424;
  border: 1px solid rgba(0,255,225,.22);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.modal-card h3 {
  color: var(--cyan);
  margin: 0 0 8px;
}

@media (max-width: 1200px) {
  .pool-lobby-grid,
  .pool-account-panel,
  .pool-hero {
    grid-template-columns: 1fr;
  }

  .pool-hero-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .pool-stats-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid,
  .cue-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .pool-page {
    width: min(100% - 18px, 1500px);
    margin-top: 12px;
  }

  .pool-topnav-inner {
    flex-direction: column;
    padding: 12px 0;
  }

  .pool-navlinks {
    justify-content: center;
  }

  .pool-hero-actions,
  .pool-stats-row,
  .feature-grid,
  .cue-preview-grid {
    grid-template-columns: 1fr;
  }

  .pool-account-left {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pool-avatar {
    margin: 0 auto;
  }

  .chat-box {
    height: 320px;
  }
}


/* =========================================
   TABLE SEAT LOBBY
========================================= */
.table-lobby-card {
  margin-top: 18px;
  padding: 18px;
}

.table-lobby-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.table-lobby-head h2 {
  margin: 6px 0 4px;
  color: var(--cyan);
  font-size: clamp(24px, 3vw, 38px);
}

.create-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.create-table-actions button {
  min-height: 46px;
}

.table-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.empty-tables {
  grid-column: 1 / -1;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.065);
  border: 1px dashed rgba(0,255,225,.28);
  display: grid;
  gap: 5px;
  color: var(--muted);
}

.empty-tables b {
  color: var(--cyan);
}

.pool-table-card {
  padding: 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(0,255,225,.11), transparent 42%),
    rgba(255,255,255,.055);
  border: 1px solid rgba(0,255,225,.18);
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
}

.pool-table-card.has-vacancy {
  border-color: rgba(82,255,168,.45);
}

.pool-table-card.is-private {
  border-color: rgba(255,209,102,.28);
}

.pool-table-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.pool-table-top strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.pool-table-top span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pool-table-top em {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
}

.pool-table-visual {
  display: grid;
  grid-template-columns: 1fr 86px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.pool-seat {
  min-height: 76px;
  padding: 11px;
  border-radius: 18px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.24);
}

.pool-seat small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.pool-seat b {
  color: #fff;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pool-seat.vacant {
  border-color: rgba(82,255,168,.42);
  background: rgba(82,255,168,.08);
}

.pool-seat.vacant b {
  color: var(--green);
}

.pool-seat.filled {
  border-color: rgba(0,255,225,.28);
}

.mini-pool-bed {
  position: relative;
  width: 92px;
  height: 54px;
  margin: 0 auto;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, #06100a 0 5px, transparent 6px),
    radial-gradient(circle at 92% 12%, #06100a 0 5px, transparent 6px),
    radial-gradient(circle at 8% 88%, #06100a 0 5px, transparent 6px),
    radial-gradient(circle at 92% 88%, #06100a 0 5px, transparent 6px),
    radial-gradient(circle at 50% 5%, #06100a 0 4px, transparent 5px),
    radial-gradient(circle at 50% 95%, #06100a 0 4px, transparent 5px),
    linear-gradient(135deg, #16874a, #0c5f35 62%, #084426);
  border: 7px solid #5a341b;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.10),
    inset 0 0 18px rgba(0,0,0,.32),
    0 12px 20px rgba(0,0,0,.32);
}

.mini-pool-bed::before,
.mini-pool-bed::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.mini-pool-bed::before {
  inset: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 14px rgba(0,0,0,.18);
}

.mini-pool-bed::after {
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.9) 0 2px, transparent 3px),
    #e9efff;
  box-shadow:
    -18px -7px 0 #f2ca42,
    -18px 7px 0 #d84141,
    18px -7px 0 #334fd6,
    18px 7px 0 #202020;
}

.mini-pool-bed i {
  display: none;
}

.join-table {
  width: 100%;
}
.table-actions-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.leave-table {
  min-width: 104px;
  border-color: rgba(255, 209, 102, .32) !important;
  background: rgba(255, 209, 102, .10) !important;
  color: var(--gold) !important;
}

.leave-table:hover {
  background: rgba(255, 209, 102, .20) !important;
}


@media (max-width: 1200px) {
  .table-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .table-lobby-head {
    display: grid;
  }

  .create-table-actions,
  .table-list {
    grid-template-columns: 1fr;
  }

  .create-table-actions {
    display: grid;
  }

  .table-list {
    grid-template-columns: 1fr;
  }

  .pool-table-visual {
    grid-template-columns: 1fr;
  }
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.modal-actions button {
  flex: 1 1 140px;
}

.primary-modal-btn {
  background: linear-gradient(135deg, var(--cyan), #3b82f6) !important;
  color: #031019 !important;
  border-color: rgba(255,255,255,.18) !important;
}

.danger-modal-btn {
  background: linear-gradient(135deg, #ef4444, #991b1b) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.18) !important;
}

.pool-seat.filled small {
  color: var(--gold);
}

/* =========================================================
   ALWAYS-VISIBLE TABLES + MOBILE LOBBY OVERRIDE
   ========================================================= */
.table-list:empty::before {
  content: "Loading public pool tables...";
  display: block;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}
.static-table-card { display: block !important; }
.pool-table-card { min-width: 0; }
.mini-pool-bed {
  position: relative;
  min-height: 74px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 9% 18%, #050505 0 7px, transparent 8px),
    radial-gradient(circle at 50% 8%, #050505 0 7px, transparent 8px),
    radial-gradient(circle at 91% 18%, #050505 0 7px, transparent 8px),
    radial-gradient(circle at 9% 82%, #050505 0 7px, transparent 8px),
    radial-gradient(circle at 50% 92%, #050505 0 7px, transparent 8px),
    radial-gradient(circle at 91% 82%, #050505 0 7px, transparent 8px),
    linear-gradient(135deg, #087244, #0bbf6a 48%, #05603a);
  border: 8px solid #5b3518;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.11), inset 0 0 28px rgba(0,0,0,.34);
}
.mini-pool-bed i {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 28px 4px 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 18px -5px 0 #111, 36px 4px 0 #ffd166;
}

@media (max-width: 900px) {
  .pool-topnav-inner,
  .pool-hero,
  .pool-account-panel,
  .table-lobby-head,
  .lobby-grid,
  .pool-feature-hub {
    grid-template-columns: 1fr !important;
  }
  .pool-page { width: min(100%, calc(100vw - 12px)); padding: 6px; }
  .pool-navlinks { overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  .pool-hero h1 { font-size: clamp(28px, 9vw, 44px); }
  .pool-hero-actions, .create-table-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .table-list { grid-template-columns: 1fr !important; gap: 10px; }
  .pool-table-visual { grid-template-columns: 1fr; gap: 8px; }
  .mini-pool-bed { min-height: 96px; order: -1; }
  .pool-stats-row { grid-template-columns: repeat(3, 1fr); }
  .feature-grid, .cue-preview-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 520px) {
  .table-actions-row { grid-template-columns: 1fr; }
  .leave-table { width: 100%; }
  .pool-page { padding: 4px; }
  .pool-card, .pool-account-panel, .pool-hero { border-radius: 18px; padding: 12px; }
  .pool-hero-actions, .create-table-actions { grid-template-columns: 1fr; }
  .pool-stats-row { grid-template-columns: repeat(2, 1fr); }
  .pool-tabs { display: flex; overflow-x: auto; }
  .pool-tabs button { flex: 0 0 auto; }
}



/* =========================================================
   Eggy Pool nav account/login/logout fix
   Keeps auth links readable and matching the existing nav.
   ========================================================= */
.pool-nav-auth-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.pool-navlinks a.pool-nav-auth-pill,
.pool-nav-auth-pill,
a.pool-nav-auth-pill:link,
a.pool-nav-auth-pill:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  min-width: 86px !important;
  padding: 9px 16px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  background: linear-gradient(180deg, rgba(43,51,70,.98), rgba(25,32,47,.98)) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset, 0 8px 18px rgba(0,0,0,.22) !important;
}

.pool-navlinks a.pool-nav-auth-pill:hover,
.pool-nav-auth-pill:hover,
a.pool-nav-auth-pill:hover {
  background: linear-gradient(180deg, rgba(55,65,88,.98), rgba(31,40,58,.98)) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
  transform: translateY(-1px);
}

.pool-navlinks a.pool-nav-logout,
.pool-nav-logout,
a.pool-nav-logout:link,
a.pool-nav-logout:visited {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: linear-gradient(180deg, rgba(43,51,70,.98), rgba(25,32,47,.98)) !important;
  opacity: 1 !important;
  filter: none !important;
}

@media (max-width: 760px) {
  .pool-nav-auth-group {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 6px;
  }
  .pool-navlinks a.pool-nav-auth-pill,
  .pool-nav-auth-pill {
    min-width: 78px !important;
    min-height: 34px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
  }
}

/* =========================================================
   CLEAN THREE-COLUMN LOBBY LAYOUT
   Friends + Online Users left, Tables + Chat centre, Challenges right
   ========================================================= */
.pool-lobby-shell {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}

.pool-left-rail,
.pool-right-rail,
.pool-center-stage {
  min-width: 0;
}

.pool-sidebar-stack {
  display: grid;
  gap: 14px;
}

.pool-left-rail,
.pool-right-rail {
  position: sticky;
  top: 92px;
}

.pool-center-stage .table-lobby-card {
  margin-top: 0;
}

.pool-center-stage .chat-card {
  margin-top: 16px;
  min-height: 360px;
}

.pool-center-stage .chat-box {
  height: 300px;
}

/* tidy social/friends card inside left rail */
.pool-left-rail .eggy-friends-card,
.pool-left-rail .pool-card,
.pool-right-rail .pool-card,
.pool-center-stage .pool-card {
  border-radius: 20px;
}

.pool-left-rail .eggy-friends-card {
  padding: 14px !important;
  background: linear-gradient(180deg, rgba(8,16,32,.96), rgba(8,13,24,.96)) !important;
  border: 1px solid rgba(0,255,225,.18) !important;
}

.pool-left-rail .eggy-friends-head h2,
.pool-left-rail .pool-card h2,
.pool-right-rail .pool-card h2,
.pool-center-stage .pool-card h2 {
  font-size: 18px;
}

.pool-left-rail .eggy-friends-tabs {
  gap: 6px;
}

.pool-left-rail .eggy-friends-tabs button {
  padding: 7px 9px;
  font-size: 12px;
}

.pool-left-rail .eggy-friends-search {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.pool-left-rail .eggy-friends-search button {
  width: 100%;
}

.pool-left-rail .players-card {
  padding: 14px;
}

.pool-left-rail .player-list {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 3px;
}

.pool-left-rail .player-item {
  padding: 10px;
  border-radius: 13px;
  font-size: 13px;
}

.pool-right-rail .challenge-card {
  padding: 15px;
}

.pool-right-rail .challenge-actions button {
  width: 100%;
  min-height: 44px;
}

.pool-right-rail .challenge-list,
.pool-right-rail .mini-ranking {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 3px;
}

/* Make centre content breathe and keep chat between sidebars */
.pool-center-stage .table-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pool-center-stage .table-lobby-head {
  align-items: flex-start;
}

.pool-center-stage .chat-form button {
  min-width: 92px;
}

/* Keep old grid harmless if any scripts/classes expect it */
.pool-lobby-grid {
  display: none;
}

@media (max-width: 1350px) {
  .pool-lobby-shell {
    grid-template-columns: 280px minmax(0, 1fr) 300px;
  }

  .pool-center-stage .table-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1050px) {
  .pool-lobby-shell {
    grid-template-columns: 1fr;
  }

  .pool-left-rail,
  .pool-right-rail {
    position: static;
  }

  .pool-left-rail {
    order: 1;
  }

  .pool-center-stage {
    order: 2;
  }

  .pool-right-rail {
    order: 3;
  }

  .pool-sidebar-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pool-left-rail .player-list {
    max-height: 280px;
  }
}

@media (max-width: 720px) {
  .pool-lobby-shell {
    gap: 12px;
  }

  .pool-sidebar-stack {
    grid-template-columns: 1fr;
  }

  .pool-center-stage .table-lobby-head {
    display: grid;
  }

  .pool-center-stage .chat-box {
    height: 280px;
  }

  .pool-center-stage .chat-form {
    grid-template-columns: 1fr;
  }
}


/* Keep the main lobby cards tidy and locked in place */
.pool-lobby-shell {
    align-items: start;
}

.pool-left-rail .pool-sidebar-stack {
    display: grid;
    gap: 14px;
}

.pool-center-stage {
    display: grid;
    gap: 14px;
}

.chat-card {
    margin-top: 0;
}

.pool-right-rail {
    align-self: start;
}

@media (max-width: 900px) {
    

    

    
}


/* =========================================================
   UNIVERSAL LOBBY NOTICE MARQUEE - FULL SECTION REWRITE
   Uses unique class names so old yellow styles cannot affect it.
   ========================================================= */

.eggy-lobby-marquee-neon {
    width: min(1180px, calc(100% - 18px));
    margin: 10px auto 14px;
    position: relative;
    isolation: isolate;
}

.eggy-lobby-marquee-neon::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -2;
    border-radius: 20px;
    background:
        linear-gradient(120deg,
            rgba(88, 126, 255, 0.70),
            rgba(164, 105, 255, 0.50),
            rgba(56, 189, 248, 0.36),
            rgba(88, 126, 255, 0.70)
        );
    filter: blur(7px);
    opacity: 0.55;
}

.eggy-lobby-marquee-neon::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(18, 25, 42, 1), rgba(7, 11, 21, 1));
}

.eggy-lobby-marquee-neon__inner {
    min-height: 56px;
    display: grid;
    grid-template-columns: 154px 1fr;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(145, 170, 255, 0.42);
    background:
        radial-gradient(circle at 8% 0%, rgba(95, 130, 255, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(21, 29, 48, 0.98), rgba(8, 12, 23, 0.98));
    box-shadow:
        0 0 0 1px rgba(125, 160, 255, 0.14),
        0 0 18px rgba(88, 126, 255, 0.26),
        0 0 38px rgba(164, 105, 255, 0.15),
        0 16px 36px rgba(0, 0, 0, 0.44),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.eggy-lobby-marquee-neon__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    background:
        linear-gradient(180deg, rgba(36, 47, 74, 0.98), rgba(14, 20, 35, 0.98));
    border-right: 1px solid rgba(145, 170, 255, 0.22);
    color: #dfe8ff;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(145, 170, 255, 0.22);
}

.eggy-lobby-marquee-neon__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #8fb3ff;
    box-shadow:
        0 0 8px rgba(143, 179, 255, 0.9),
        0 0 18px rgba(164, 105, 255, 0.45);
}

.eggy-lobby-marquee-neon__screen {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0 18px;
    overflow: hidden;
    white-space: nowrap;
    background:
        linear-gradient(180deg, rgba(14, 21, 36, 0.72), rgba(8, 12, 22, 0.72));
    color: #edf3ff;
    font-size: 14px;
    font-weight: 780;
    letter-spacing: 0.01em;
}

.eggy-lobby-marquee-neon__screen::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(8, 12, 22, 0.20) 0%,
            transparent 12%,
            transparent 80%,
            rgba(8, 12, 22, 0.86) 100%
        );
}

#eggyLobbyTypedMessage {
    position: relative;
    z-index: 2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #edf3ff;
    text-shadow:
        0 0 12px rgba(143, 179, 255, 0.20),
        0 0 22px rgba(164, 105, 255, 0.10);
}

.eggy-lobby-marquee-neon__caret {
    position: relative;
    z-index: 3;
    width: 2px;
    height: 19px;
    margin-left: 6px;
    border-radius: 99px;
    background: #9bbcff;
    box-shadow:
        0 0 10px rgba(155, 188, 255, 0.80),
        0 0 22px rgba(164, 105, 255, 0.38);
    animation: eggyLobbyNeonCaretBlink 0.75s steps(2, start) infinite;
}

@keyframes eggyLobbyNeonCaretBlink {
    0%, 44% {
        opacity: 1;
    }

    45%, 100% {
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .eggy-lobby-marquee-neon {
        width: min(100% - 12px, 1180px);
        margin: 8px auto 12px;
    }

    .eggy-lobby-marquee-neon__inner {
        min-height: 74px;
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .eggy-lobby-marquee-neon::before {
        border-radius: 18px;
    }

    .eggy-lobby-marquee-neon__label {
        min-height: 28px;
        border-right: 0;
        border-bottom: 1px solid rgba(145, 170, 255, 0.20);
        font-size: 10px;
    }

    .eggy-lobby-marquee-neon__screen {
        min-height: 46px;
        padding: 0 14px;
        font-size: 13px;
    }
}


/* =========================================================
   EGGY POOL LOBBY - VARIANT 1 HERO/NAV REWRITE
   Futuristic cyan/purple neon billiards style.
   ========================================================= */

body {
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 245, 220, 0.12), transparent 34%),
        radial-gradient(circle at 92% 10%, rgba(119, 65, 255, 0.16), transparent 36%),
        linear-gradient(180deg, #050914 0%, #07101e 48%, #03070f 100%) !important;
    color: #f4f7ff !important;
}

/* Top nav */
.pool-topbar,
.lobby-topbar,
.site-topbar,
header.pool-header,
header.lobby-header,
.top-nav,
.main-nav {
    background: rgba(7, 12, 24, 0.92) !important;
    border-bottom: 1px solid rgba(0, 245, 220, 0.16) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35) !important;
    backdrop-filter: blur(12px);
}

.pool-brand,
.lobby-brand,
.site-brand,
.logo,
.brand {
    color: #15ffe3 !important;
    font-weight: 1000 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 18px rgba(0, 245, 220, .34) !important;
}

nav a,
.nav-link,
.pool-nav a,
.lobby-nav a {
    background: linear-gradient(180deg, rgba(29, 36, 54, .96), rgba(16, 22, 34, .96)) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-radius: 13px !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 6px 18px rgba(0,0,0,.24) !important;
    font-weight: 850 !important;
}

nav a:hover,
.nav-link:hover,
.pool-nav a:hover,
.lobby-nav a:hover {
    border-color: rgba(0, 245, 220, .36) !important;
    box-shadow:
        0 0 0 1px rgba(0,245,220,.10),
        0 0 18px rgba(0,245,220,.16),
        inset 0 1px 0 rgba(255,255,255,.08) !important;
    transform: translateY(-1px);
}

/* Main hero */
.pool-hero,
.lobby-hero,
.hero-card,
.pool-lobby-hero {
    width: min(1180px, calc(100% - 18px)) !important;
    margin: 18px auto 14px !important;
    min-height: 255px !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 30px !important;
    border: 2px solid rgba(0, 235, 255, .58) !important;
    background:
        radial-gradient(circle at 74% 58%, rgba(0,0,0,.10), transparent 0),
        radial-gradient(circle at 78% 58%, rgba(255,255,255,.06) 0 7px, transparent 8px),
        radial-gradient(circle at 70% 68%, rgba(210,225,255,.20) 0 6px, transparent 7px),
        radial-gradient(circle at 45% 60%, rgba(255,255,255,.06), transparent 18%),
        linear-gradient(90deg, rgba(5, 24, 42, .96) 0%, rgba(7, 14, 30, .94) 58%, rgba(29, 15, 62, .95) 100%) !important;
    box-shadow:
        0 0 0 1px rgba(151, 83, 255, .30),
        0 0 34px rgba(0, 245, 220, .18),
        0 0 44px rgba(151, 83, 255, .22),
        0 18px 42px rgba(0,0,0,.48),
        inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.pool-hero::before,
.lobby-hero::before,
.hero-card::before,
.pool-lobby-hero::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        radial-gradient(circle at 72% 55%, rgba(10, 17, 34, .88) 0 54px, transparent 56px),
        radial-gradient(circle at 58% 77%, rgba(214, 226, 255, .58) 0 24px, transparent 25px),
        linear-gradient(90deg, transparent 0%, transparent 69%, rgba(140, 91, 255, .12) 100%) !important;
    opacity: .9 !important;
    pointer-events: none !important;
}

.pool-hero::after,
.lobby-hero::after,
.hero-card::after,
.pool-lobby-hero::after {
    content: "" !important;
    position: absolute !important;
    top: 38px !important;
    right: 260px !important;
    width: 1px !important;
    height: calc(100% - 76px) !important;
    background: linear-gradient(180deg, transparent, rgba(65, 145, 255, .58), transparent) !important;
    pointer-events: none !important;
}

/* Hero text */
.pool-hero h1,
.lobby-hero h1,
.hero-card h1,
.pool-lobby-hero h1 {
    position: relative !important;
    z-index: 2 !important;
    color: #ffffff !important;
    font-size: clamp(48px, 6vw, 78px) !important;
    line-height: .95 !important;
    letter-spacing: -0.05em !important;
    font-weight: 1000 !important;
    text-shadow: 0 0 30px rgba(0, 245, 220, .25) !important;
}

.pool-hero h1 span,
.lobby-hero h1 span,
.hero-card h1 span,
.pool-lobby-hero h1 span {
    color: #19efe8 !important;
    text-shadow: 0 0 30px rgba(25, 239, 232, .34) !important;
}

.pool-hero p,
.lobby-hero p,
.hero-card p,
.pool-lobby-hero p {
    position: relative !important;
    z-index: 2 !important;
    max-width: 560px !important;
    color: rgba(245, 249, 255, .88) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
}

/* Pill in hero */
.pool-hero .eyebrow,
.lobby-hero .eyebrow,
.hero-card .eyebrow,
.pool-lobby-hero .eyebrow,
.pool-hero .badge,
.lobby-hero .badge,
.hero-card .badge,
.pool-lobby-hero .badge {
    position: relative !important;
    z-index: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 9px 15px !important;
    border-radius: 999px !important;
    color: #15ffe3 !important;
    border: 1px solid rgba(0,245,220,.54) !important;
    background: rgba(0, 245, 220, .06) !important;
    box-shadow: 0 0 18px rgba(0,245,220,.13) !important;
    font-weight: 900 !important;
}

.pool-hero .eyebrow::before,
.lobby-hero .eyebrow::before,
.hero-card .eyebrow::before,
.pool-lobby-hero .eyebrow::before,
.pool-hero .badge::before,
.lobby-hero .badge::before,
.hero-card .badge::before,
.pool-lobby-hero .badge::before {
    content: "" !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 999px !important;
    border: 2px solid #15ffe3 !important;
    box-shadow: 0 0 12px rgba(0,245,220,.62) !important;
}

/* Hero right buttons */
.pool-hero-actions,
.hero-actions,
.lobby-hero-actions,
.quick-actions,
.hero-side-actions {
    position: relative !important;
    z-index: 3 !important;
}

.pool-hero-actions a,
.pool-hero-actions button,
.hero-actions a,
.hero-actions button,
.lobby-hero-actions a,
.lobby-hero-actions button,
.quick-actions a,
.quick-actions button,
.hero-side-actions a,
.hero-side-actions button {
    min-height: 54px !important;
    border-radius: 13px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    background: linear-gradient(180deg, rgba(25, 30, 50, .94), rgba(13, 17, 31, .94)) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 8px 22px rgba(0,0,0,.28) !important;
}

.pool-hero-actions a:first-child,
.pool-hero-actions button:first-child,
.hero-actions a:first-child,
.hero-actions button:first-child,
.lobby-hero-actions a:first-child,
.lobby-hero-actions button:first-child,
.quick-actions a:first-child,
.quick-actions button:first-child,
.hero-side-actions a:first-child,
.hero-side-actions button:first-child {
    background: linear-gradient(135deg, #15f4e8, #5d31ff) !important;
    color: #ffffff !important;
    box-shadow:
        0 0 28px rgba(0,245,220,.25),
        0 0 32px rgba(93,49,255,.24),
        inset 0 1px 0 rgba(255,255,255,.14) !important;
}

/* If the feature card is the current hero-side layout */
.pool-feature-hub {
    width: min(1180px, calc(100% - 18px)) !important;
    margin: 14px auto !important;
    border-radius: 18px !important;
}

/* Keep rest of lobby matching darker cards */
.panel,
.card,
.pool-card,
.sidebar-card,
.chat-card,
.social-card,
.challenge-card,
.live-tables-card {
    background: linear-gradient(180deg, rgba(18, 25, 42, .96), rgba(8, 12, 22, .96)) !important;
    border: 1px solid rgba(120, 138, 170, .18) !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.05) !important;
}

@media (max-width: 900px) {
    .pool-hero,
    .lobby-hero,
    .hero-card,
    .pool-lobby-hero {
        min-height: auto !important;
        border-radius: 22px !important;
        padding: 24px 18px !important;
    }

    .pool-hero::after,
    .lobby-hero::after,
    .hero-card::after,
    .pool-lobby-hero::after {
        display: none !important;
    }

    .pool-hero h1,
    .lobby-hero h1,
    .hero-card h1,
    .pool-lobby-hero h1 {
        font-size: clamp(38px, 12vw, 56px) !important;
    }
}


/* =========================================================
   EGGY POOL - EQUAL WIDTH CARD ALIGNMENT FIX
   Makes the main lobby cards line up from left to right.
   ========================================================= */

:root {
    --eggy-lobby-main-width: min(1180px, calc(100% - 18px));
}

/* Every major single-row card uses the same width */
.pool-hero,
.lobby-hero,
.hero-card,
.pool-lobby-hero,
.eggy-lobby-marquee-neon,
.eggy-lobby-marquee-box,
#eggyUniversalRankCard,
.universal-rank-card,
.eggy-universal-rank,
.pool-feature-hub,
.pool-lobby-shell {
    width: var(--eggy-lobby-main-width) !important;
    max-width: var(--eggy-lobby-main-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Remove accidental narrow/offset positioning from marquee/rank/feature cards */
.eggy-lobby-marquee-neon,
.eggy-lobby-marquee-box,
#eggyUniversalRankCard,
.universal-rank-card,
.eggy-universal-rank,
.pool-feature-hub {
    box-sizing: border-box !important;
}

/* Main lobby grid should match the same left and right edge as the cards above */
.pool-lobby-shell {
    display: grid !important;
    grid-template-columns: 270px minmax(0, 1fr) 300px !important;
    gap: 14px !important;
    align-items: start !important;
    box-sizing: border-box !important;
}

/* Cards inside the lower layout should fill their column properly */
.pool-left-rail,
.pool-center-stage,
.pool-right-rail,
.pool-left-rail > *,
.pool-center-stage > *,
.pool-right-rail > *,
.social-card,
.live-tables-card,
.chat-card,
.challenge-card,
.sidebar-card,
.pool-card,
.card,
.panel {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Keep the feature tabs/card aligned and not narrower than the rank bar */
.pool-feature-hub {
    padding-left: 14px !important;
    padding-right: 14px !important;
}

/* Hero internal alignment */
.pool-hero,
.lobby-hero,
.hero-card,
.pool-lobby-hero {
    box-sizing: border-box !important;
}

/* Center the top hero if earlier styles added a different max width */
.pool-hero,
.lobby-hero,
.hero-card,
.pool-lobby-hero {
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

/* Keep rank card and marquee visually equal to hero width */
#eggyUniversalRankCard,
.universal-rank-card,
.eggy-universal-rank {
    overflow: hidden !important;
}

/* Mobile: stack while keeping same outer edges */
@media (max-width: 1050px) {
    .pool-lobby-shell {
        grid-template-columns: 1fr !important;
    }

    .pool-left-rail,
    .pool-center-stage,
    .pool-right-rail {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 760px) {
    :root {
        --eggy-lobby-main-width: min(100% - 12px, 1180px);
    }

    .pool-lobby-shell {
        gap: 12px !important;
    }
}
