/* lobby.css — home header (01), club cards (01), global lobby Games tab.
   The shared table row is the locked CL12 row (08_club_lobby): felt mini-table,
   slanted game card, seat pips, stat columns, pin. */

/* ---------- home header (locked 01) ---------- */
.home-logo { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 14px 60px 0; }
.home-logo img { width: 46px; height: 46px; }
.home-logo .divider { width: 1px; height: 34px; background: linear-gradient(180deg, transparent, #c9a463, transparent); }
.home-logo .stack { display: flex; flex-direction: column; line-height: 1.12; }
.home-logo .stack span {
  font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; letter-spacing: 5px;
}
.home-corner { position: absolute; top: 22px; }
.home-corner.l { left: 12px; } .home-corner.r { right: 12px; }

.profile-row { display: flex; align-items: center; gap: 10px; padding: 18px 14px 0; }
.profile-row .who { display: flex; flex-direction: column; gap: 1px; flex-grow: 1; }
.profile-row .who .hi { font-size: 11.5px; color: #8c8c8c; }
.profile-row .who .nm { font-family: 'Cinzel', serif; font-size: 17px; font-weight: 600; letter-spacing: .5px; }

/* metal STATUS plate (locked 01) */
.status-plate {
  position: relative; width: 70px; height: 44px; border-radius: 7px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, rgba(0,0,0,.05) 1px 2px, transparent 2px 4px),
    linear-gradient(118deg, transparent 22%, rgba(255,255,255,0.3) 40%, transparent 56%),
    linear-gradient(135deg, #d6d9dc 0%, #8c9298 34%, #e6e8ea 55%, #767c82 80%, #c0c4c8 100%);
  border: 1px solid #6e747a; box-shadow: 0 4px 10px #000a, inset 0 1px 0 #fff8;
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  justify-content: space-between; padding: 5px 6px;
}
.status-plate .top { display: flex; justify-content: space-between; align-items: center; }
.status-plate .top img { width: 12px; height: 12px; filter: grayscale(1) brightness(.4); mix-blend-mode: multiply; }
.status-plate .top span {
  font-family: 'Montserrat', sans-serif; font-size: 6.5px; letter-spacing: 1.5px; color: #3b4147;
}
.status-plate .tier {
  font-family: 'Cinzel', serif; font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  color: #1b1f23; text-shadow: 0 1px 0 #fff8;
}

.search-row { display: flex; gap: 8px; padding: 14px 14px 0; }
.search-box {
  flex-grow: 1; height: 40px; border-radius: 12px; background: #0f0f0fd9;
  border: 1px solid #252525; display: flex; align-items: center; gap: 8px; padding: 0 12px;
}
.search-box input { flex-grow: 1; border: none; background: transparent; color: #f2f2f2; font-size: 13px; outline: none; }
.btn-addclub {
  height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid #c9a463;
  background: #121212; color: #e3c58a; font-size: 12.5px; font-weight: 800;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}

.sect-label {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Montserrat', sans-serif; font-size: 10.5px; font-weight: 500;
  letter-spacing: 2.5px; color: #a6a6a6; padding: 18px 16px 8px;
}

/* ---------- club card (locked 01) ---------- */
.club-card {
  position: relative; display: block; border-radius: 16px; overflow: hidden;
  border: 1px solid #3a3a3a;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, rgba(0,0,0,.05) 1px 2px, transparent 2px 4px),
    linear-gradient(118deg, transparent 22%, rgba(255,255,255,0.08) 40%, transparent 56%),
    linear-gradient(135deg, var(--c1) 0%, var(--c2) 36%, var(--c3) 60%, var(--c4) 100%);
  box-shadow: 0 18px 34px #000000d9, 0 2px 4px #000a, inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(0,0,0,.35);
  text-decoration: none; color: #f2f2f2; margin: 0 12px 10px;
}
.club-card::after { content: ''; position: absolute; inset: 5px; border-radius: 12px; border: .8px solid #d7b56d; opacity: .45; pointer-events: none; }
.club-card .inner { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px; min-height: 132px; }
.club-tile {
  flex-shrink: 0; width: 70px; height: 70px; border-radius: 14px;
  background:
    linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,.42)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, rgba(0,0,0,.05) 1px 2px, transparent 2px 4px),
    linear-gradient(118deg, transparent 22%, rgba(255,255,255,0.07) 40%, transparent 56%),
    linear-gradient(135deg, var(--c1) 0%, var(--c2) 36%, var(--c3) 60%, var(--c4) 100%);
  border: 1px solid #d7b56d80;
  box-shadow: inset 0 2px 6px #0008, 0 1px 0 rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
}
.club-tile img { width: 50px; height: 50px; }
.club-card .body { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.club-name {
  font-family: 'Cinzel', serif; font-size: 18.5px; font-weight: 600; letter-spacing: .5px;
  filter: drop-shadow(0 1px 0 #000); line-height: 1.1; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; flex-grow: 1; min-width: 0;
}
.club-meta { display: flex; align-items: center; gap: 10px; font-family: 'Sora', sans-serif; font-size: 10.5px; font-weight: 600; color: var(--tint, #a0a0a0); }
.union-mark { display: inline-flex; align-items: center; gap: 4px; }
.union-mark svg { display: block; flex-shrink: 0; }
.union-mark b { font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 700; color: #e3c58a; }
.member-line {
  display: flex; align-items: center; gap: 8px; font-family: 'Montserrat', sans-serif;
  font-size: 9.5px; font-weight: 500; letter-spacing: 1.4px; color: var(--tint, #a0a0a0); white-space: nowrap;
}
.club-facts { display: flex; align-items: center; gap: 12px; font-family: 'Sora', sans-serif; font-size: 11.5px; font-weight: 700; color: #f2f2f2; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #2fd682; box-shadow: 0 0 6px #2fd682; }
.live-dot.off { background: #6e6e6e; box-shadow: none; }
.role-tag { padding: 1px 6px; border-radius: 4px; border: 1px solid #e3c58a; color: #e3c58a; font-size: 8.5px; font-weight: 800; letter-spacing: 1px; }
.role-tag.agent { border-color: #8fd3ff; color: #8fd3ff; }
.fav-btn { background: none; border: none; padding: 0; display: flex; }
.card-badge {
  position: absolute; right: -5px; top: -5px; min-width: 18px; height: 18px; border-radius: 9px;
  background: #ff4d5e; color: #fff; font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; border: 2px solid #080808; z-index: 3;
}
/* level hexagon (locked: gold hex on the tile corner) */
.hex { position: absolute; right: -8px; bottom: -8px; filter: drop-shadow(0 2px 3px #000c); }

/* ---------- shared table row (locked 08) ---------- */
.trow {
  position: relative; height: 68px; border-radius: 16px;
  background:
    radial-gradient(ellipse 110px 46px at 72px 50%, var(--glow, #2fd6821f), transparent 75%),
    linear-gradient(180deg, #151515, #0a0a0a 60%, #070707);
  border: 1px solid #1f1f1f;
  box-shadow: inset 0 1px 0 #ffffff12, 0 8px 18px #0008;
  display: flex; align-items: center; gap: 9px; padding: 0 4px 0 7px;
  text-decoration: none; color: #f2f2f2;
}
/* mini table: black glossy rail capsule (locked) */
.mtable {
  position: relative; z-index: 2; flex-shrink: 0; display: block;
  width: 132px; height: 56px; border-radius: 28px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 8%, #ffffff2e, transparent 70%),
    linear-gradient(180deg, #262626 0%, #050505 38%, #000 70%, #141414 100%);
  box-shadow: 0 10px 18px #000000e6, 0 0 22px var(--glow, #2fd68226), inset 0 1px 0 #ffffff30, inset 0 -1px 0 #ffffff12, 0 0 0 1px #000;
}
.mtable .felt {
  position: absolute; inset: 7px; border-radius: 21px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.08) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 80% 90% at 50% 30%, var(--f1) 0%, var(--f2) 55%, var(--f3) 100%);
  box-shadow: inset 0 3px 8px #000c, inset 0 0 0 1px #00000080, inset 0 0 0 3px var(--ring33, #1fb56c33);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; overflow: hidden; padding: 0 16px;
}
.mtable .felt img.wm {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px;
  transform: translate(-50%, -50%); opacity: .07; filter: grayscale(1) brightness(3);
}
.mtable .felt .tname {
  position: relative; font-family: 'Cinzel', serif; font-size: 11.5px; font-weight: 700;
  letter-spacing: .2px; color: #fff; text-shadow: 0 1px 2px #000c; white-space: nowrap;
  line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.mtable .felt .tname.long { font-size: 10.5px; }
.mtable .felt .stakes {
  position: relative; font-family: 'Sora', sans-serif; font-size: 8.5px; font-weight: 600;
  letter-spacing: .3px; color: #ffffffcc; white-space: nowrap; line-height: 1.15;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.mtable .felt .tags { position: relative; display: flex; gap: 2px; margin-top: 2px; max-width: 100%; overflow: hidden; }
.mtable .felt .tags span {
  padding: 0 3px; height: 11px; border-radius: 3px; background: #00000055;
  border: .5px solid #ffffff38; color: #f3e6c4; font-size: 6.2px; font-weight: 700;
  letter-spacing: .4px; line-height: 11px; white-space: nowrap;
}
.mtable svg.pips { position: absolute; left: 0; top: 0; }
/* slanted game card tucked under the rail (locked) */
.gcard-wrap {
  position: relative; z-index: 1; margin-left: -20px; margin-top: -14px;
  transform: rotate(15deg); transform-origin: 30% 100%; flex-shrink: 0;
}
.gcard {
  position: relative; display: block; width: 34px; height: 48px; border-radius: 5px;
  background: linear-gradient(160deg, #ffffff, #efeae0); padding: 2px;
  box-shadow: 0 6px 12px #000d, 0 1px 0 #fff inset;
}
.gcard .in {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding-top: 5px; gap: 3px; width: 100%; height: 100%; border-radius: 3px; overflow: hidden;
  background:
    linear-gradient(118deg, transparent 30%, #ffffff40 45%, transparent 60%),
    radial-gradient(circle at 30% 20%, var(--g1) , var(--g2) 90%);
  box-shadow: inset 0 0 0 1px #00000040;
}
.gcard .code {
  font-family: 'Barlow Condensed', 'Sora', sans-serif; font-size: 9.5px; font-weight: 800;
  letter-spacing: .3px; color: #fff; text-shadow: 0 1px 1px #0009; line-height: 1;
}
.gcard .code.wide { font-size: 8.5px; }
/* right-side stat columns (locked) */
.tstat {
  display: flex; flex-direction: column; align-items: center; gap: 3px; flex-shrink: 0;
}
.tstat .k {
  font-family: 'Montserrat', sans-serif; font-size: 7.5px; font-weight: 500;
  letter-spacing: 1.6px; color: #7d7d7d;
}
.tstat .v { font-family: 'Sora', sans-serif; font-size: 12.5px; font-weight: 700; color: #f2f2f2; white-space: nowrap; letter-spacing: -.2px; }
.tstat .v.gold { color: #ffd66b; font-size: 13px; }
.tstat .fill { width: 34px; height: 3px; border-radius: 2px; background: #222; overflow: hidden; }
.tstat .fill i { display: block; height: 100%; background: linear-gradient(90deg, #b08a3e, #ffd66b); }
.trow .vsep { width: 1px; height: 34px; flex-shrink: 0; background: linear-gradient(180deg, transparent, #2e2e2e, transparent); }
.pin-btn { width: 24px; height: 44px; flex-shrink: 0; border: none; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; }
.pin-btn svg { transform: rotate(35deg); }

/* family colors for game cards (locked) */
.fam-holdem   { --g1: #27b067; --g2: #0d5a33; }
.fam-omaha    { --g1: #3c7fe0; --g2: #10306e; }
.fam-short    { --g1: #f0913a; --g2: #7a3a06; }
.fam-draw     { --g1: #20b3bf; --g2: #0a4a50; }
.fam-stud     { --g1: #8d5ee0; --g2: #351a66; }
.fam-mixed    { --g1: #e2bd62; --g2: #6e5316; }
.fam-exotics  { --g1: #ec4a4a; --g2: #650c0c; }
.fam-ofc      { --g1: #e0479e; --g2: #5e0f40; }
/* felt by format (locked): ring emerald, sng sapphire, mtt crimson */
.fmt-cash { --f1: #1fb56c; --f2: #0b6a3c; --f3: #022414; --glow: #2fd6821f; --ring33: #1fb56c33; }
.fmt-sng  { --f1: #3a7ee6; --f2: #15428f; --f3: #04112e; --glow: #5b9bff1f; --ring33: #3a7ee633; }
.fmt-mtt  { --f1: #d0405a; --f2: #7a1128; --f3: #26040c; --glow: #ff5c781f; --ring33: #d0405a33; }

/* mini family card chip (locked filter chips / wizard family chips) */
.minicard { width: 9px; height: 12px; border-radius: 2px; background: #fff; padding: 1px; box-sizing: border-box; display: inline-block; }
.minicard i { display: block; width: 100%; height: 100%; border-radius: 1px; }

/* inline expansion of a row (seat pips + sit) */
.trow-expand {
  margin: -4px 12px 10px; border-radius: 14px; border: 1px solid #1c1c1c; background: #0c0c0c;
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
}
.seatring { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.seatpip { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: #8c8c8c; }
.seatpip .dot { width: 14px; height: 14px; border-radius: 50%; background: #050505; border: 1px solid #3a3a3a; }
.seatpip.taken .dot { background: radial-gradient(circle at 35% 30%, #fff6d8, #e3c58a 55%, #8a6a2c); border: none; }
.expand-actions { display: flex; gap: 10px; }
.expand-actions .btn-gold { flex: 1; height: 42px; font-size: 13.5px; }

/* format tabs (locked 08: pill track w/ felt dots) */
.fmt-tabs {
  display: flex; gap: 3px; padding: 3px; border-radius: 12px;
  background: linear-gradient(180deg, #0a0a0a, #111); border: 1px solid #222;
  box-shadow: inset 0 1px 3px #000;
}
.fmt-tabs button {
  flex-grow: 1; height: 32px; border-radius: 9px; border: none; background: transparent;
  color: #a6a6a6; font-size: 12.5px; font-weight: 800; display: flex; align-items: center;
  justify-content: center; gap: 6px; box-shadow: none;
}
.fmt-tabs button.on {
  background: linear-gradient(180deg, #2a2a2a, #121212); color: #e3c58a;
  box-shadow: inset 0 1px 0 #ffffff1a, 0 0 0 1px #3a3a3a;
}
.fmt-tabs .cnt { font-family: 'Sora', sans-serif; font-size: 10px; opacity: .6; }
.fdot { width: 9px; height: 9px; border-radius: 50%; }
.fdot.ring { background: radial-gradient(circle at 35% 30%, #1fb56c, #0b6a3c); box-shadow: 0 0 6px #2fd68266; }
.fdot.sng { background: radial-gradient(circle at 35% 30%, #3a7ee6, #15428f); box-shadow: 0 0 6px #5b9bff66; }
.fdot.mtt { background: radial-gradient(circle at 35% 30%, #d0405a, #7a1128); box-shadow: 0 0 6px #ff5c7866; }
