/* KG standard lobby — styles for /assets/lobby.js (KGLobby.mount).
   Self-contained: every rule is kgl-* and every color var has a fallback,
   so a game gets the full look with zero CSS of its own. The host scrim
   element keeps the game's own .scrim styling (fixed overlay + backdrop).

   Visual language (from the arcade's most polished screens): the game's
   cover art full-bleed behind a dark gradient, a blurred glass card,
   neon-glow title, monospace neon section dividers, pulsing START.
   No emoji anywhere — players are colored initial discs. */

/* full-bleed cover art + the dark shade over it (slight overscan hides
   any matte/border baked into the cover image) */
.kgl-art { position:absolute; inset:-4%; width:108%; height:108%; object-fit:cover; }
.kgl-shade { position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(6,5,18,.42) 0%, rgba(6,5,16,.66) 55%, rgba(4,3,10,.88) 100%); }

.kgl-card {
  position:relative; z-index:1; width:100%; max-width:400px; text-align:center;
  background:linear-gradient(180deg, rgba(26,20,48,.82), rgba(12,9,26,.9));
  border:1px solid rgba(255,255,255,.14); border-radius:22px; padding:22px 20px;
  backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px);
  box-shadow:0 26px 64px rgba(0,0,0,.6); max-height:92vh; overflow:auto;
}
.kgl-title {
  margin:2px 0 4px; font-size:31px; font-weight:900; letter-spacing:.5px;
  background:linear-gradient(180deg,#fff,var(--pink,#ff4fa3));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:kglGlow 2.6s ease-in-out infinite;
}
@keyframes kglGlow {
  0%,100% { filter:drop-shadow(0 0 8px rgba(120,200,255,.4)) drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
  50%     { filter:drop-shadow(0 0 15px rgba(255,90,200,.6)) drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
}
.kgl-center { margin:4px 0 2px; }

/* section header — thin neon rules flanking a monospace label */
.kgl-divider { display:flex; align-items:center; gap:10px; margin:13px 0 8px; }
.kgl-divider i { flex:1; height:1px;
  background:linear-gradient(90deg, transparent, rgba(79,227,255,.55)); }
.kgl-divider span + i { transform:scaleX(-1); }
.kgl-divider span {
  font:900 11px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing:2px;
  color:var(--cyan,#4fe3ff); text-shadow:0 0 10px rgba(79,227,255,.5);
}

/* player panel — everyone on the page; count + Together/Alone under the list */
.kgl-panel { margin:2px 0 0; }
.kgl-list { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:2px; }
.kgl-chip { display:flex; align-items:center; gap:7px; padding:5px 12px 5px 5px; border-radius:999px;
  background:rgba(10,8,22,.55); border:1px solid rgba(255,255,255,.16); font-weight:800; font-size:13px; color:#fff; }
.kgl-chip.me { border-color:rgba(255,209,102,.6); }
.kgl-ava { width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font:900 13px/1 ui-monospace, Menlo, monospace; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.55);
  background:radial-gradient(circle at 35% 30%, rgba(255,255,255,.4), transparent 50%), var(--pc,#4fe3ff); }
.kgl-you { font:900 9px/1 ui-monospace, Menlo, monospace; letter-spacing:1px; color:var(--gold,#ffd166);
  border:1px solid rgba(255,209,102,.55); border-radius:6px; padding:2px 4px; }
.kgl-dot { width:8px; height:8px; border-radius:50%;
  background:var(--lime,#8aff80); box-shadow:0 0 8px var(--lime,#8aff80); }
/* character portrait inside the avatar disc (replaces the initial letter) */
.kgl-ava img { width:100%; height:100%; object-fit:contain; border-radius:50%; }
/* lobby ready-up badges: READY (green) / PICKING… (grey) */
.kgl-rdy { font:900 9px/1 ui-monospace, Menlo, monospace; letter-spacing:1px;
  border-radius:6px; padding:2px 5px; color:var(--lime,#8aff80);
  border:1px solid rgba(138,255,128,.55); }
.kgl-rdy.off { color:var(--mut,#a8a8bd); border-color:rgba(168,168,189,.45); }
.kgl-head { display:flex; gap:10px; align-items:center; justify-content:space-between; margin-top:9px;
  font:800 10px/1.3 ui-monospace, Menlo, monospace; letter-spacing:1.2px; text-transform:uppercase;
  color:var(--mut,#a8a8bd); }
.kgl-tog { padding:7px 13px; border-radius:999px; border:1px solid rgba(255,255,255,.25); cursor:pointer;
  background:rgba(255,255,255,.06); color:#fff;
  font:900 11px/1 ui-monospace, Menlo, monospace; letter-spacing:1.5px; }
.kgl-tog.on { background:rgba(79,227,255,.15); border-color:var(--cyan,#4fe3ff);
  color:var(--cyan,#4fe3ff); text-shadow:0 0 8px rgba(79,227,255,.6); }

/* ALSO PLAYING — other games with friends in them right now (1-tap JOIN) */
.kgl-also { margin:2px 0 0; }
.kgl-also-list { display:flex; flex-direction:column; gap:7px; }
.kgl-also-row { display:flex; align-items:center; gap:10px; padding:6px 7px; border-radius:14px;
  background:rgba(22,163,74,.14); border:1px solid rgba(22,163,74,.4); text-align:left; }
.kgl-also-cover { width:46px; height:34px; border-radius:9px; object-fit:cover; flex:0 0 auto;
  background:rgba(0,0,0,.5); }
.kgl-also-mid { flex:1; min-width:0; }
.kgl-also-title { font-weight:900; font-size:13.5px; color:#fff;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kgl-also-n { font:800 10px/1.3 ui-monospace, Menlo, monospace; letter-spacing:1px;
  text-transform:uppercase; color:var(--lime,#8aff80); margin-top:2px; }
.kgl-also-go { flex:0 0 auto; text-decoration:none; padding:9px 14px; border-radius:999px;
  background:#16a34a; color:#fff; font:900 12px/1 ui-monospace, Menlo, monospace; letter-spacing:1px; }

/* START (loading-gated, pulses when live) + footer + Quit */
.kgl-play { margin-top:14px; width:100%; box-sizing:border-box; border:none; cursor:pointer;
  padding:15px; border-radius:16px; font-size:18px; font-weight:900; letter-spacing:1px; color:#fff;
  background:linear-gradient(110deg, var(--purple,#9d6bff), var(--pink,#ff4fa3) 55%, var(--cyan,#4fe3ff) 135%);
  text-shadow:0 1px 3px rgba(0,0,0,.45); box-shadow:0 10px 24px rgba(255,79,163,.35); }
.kgl-play:not(:disabled) { animation:kglPulse 1.6s ease-in-out infinite; }
.kgl-play:not(:disabled):active { transform:translateY(2px); animation:none; }
.kgl-play:disabled { opacity:.6; cursor:default; }
@keyframes kglPulse {
  0%,100% { box-shadow:0 10px 24px rgba(255,79,163,.35); transform:scale(1); }
  50%     { box-shadow:0 10px 30px rgba(255,90,200,.65); transform:scale(1.02); }
}
.kgl-foot { margin-top:11px; font:800 11px/1.4 ui-monospace, Menlo, monospace;
  letter-spacing:1.2px; text-transform:uppercase; color:var(--mut,#a8a8bd); }
.kgl-foot:empty { display:none; }
.kgl-quit { display:block; text-decoration:none; margin-top:10px; width:100%; box-sizing:border-box;
  cursor:pointer; padding:12px; border-radius:14px; text-align:center;
  font-size:15px; font-weight:900; color:var(--cyan,#4fe3ff);
  background:rgba(79,227,255,.08); border:1px solid rgba(79,227,255,.4); }
.kgl-spin { display:inline-block; vertical-align:middle; width:20px; height:20px; border-radius:50%;
  border:4px solid rgba(255,255,255,.18); border-top-color:var(--pink,#ff4fa3);
  animation:kglrot 1s linear infinite; margin-left:8px; }
@keyframes kglrot { to { transform:rotate(360deg) } }
