/* esc-gaming.css - ESC Gaming panel, Phase 1: Watch + Submit, plus
   Coming Soon placeholders for Clans, Challenges, and Live (2026-10-25).
   Follows the left-panel geometry: the panel holds its space right
   of the ui4 rail on desktop (rail is ~86px wide, panel starts at
   92px) and becomes a bottom sheet on phone sizes, like Roster.
   Background at 80% opacity only; text and controls stay full
   opacity (no opacity property on the panel itself). No blur, so no
   fixed descendant is re-anchored. No floating edge tab. */
#escGamingPanel {
  display: none;
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: min(68dvh, 560px);
  z-index: 22;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel, #0b0b0b);
  background: color-mix(in srgb, var(--panel, #0b0b0b) 80%, transparent);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  border-radius: 16px 16px 0 0;
  color: var(--text, #eee);
  font-family: Oswald, sans-serif;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
#escGamingPanel.open { display: flex; }
@media (min-width: 821px) and (min-height: 501px) {
  #escGamingPanel {
    left: 92px;
    right: auto;
    bottom: 8px;
    top: var(--esc-chrome-top, 72px);
    height: auto;
    width: 380px;
    max-width: calc(100vw - 108px);
    z-index: 96;
    border-radius: 12px;
    box-shadow: none;
    padding-bottom: 0;
  }
}
#escGamingPanel .eg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.15));
}
#escGamingPanel .eg-head h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold, #d4af37);
}
#escGamingPanel .eg-x {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  background: transparent;
  color: var(--text, #eee);
  font-size: 18px;
  cursor: pointer;
}
#escGamingPanel .eg-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; }
#escGamingPanel .eg-tabs button {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  background: transparent;
  color: var(--muted, #aaa);
  font: 500 13px Oswald, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
#escGamingPanel .eg-tabs button[aria-selected="true"] {
  color: var(--gold, #d4af37);
  border-color: var(--gold, #d4af37);
}
#escGamingPanel .eg-body {
  overflow-y: auto;
  padding: 12px;
  font-size: 15px;
  line-height: 1.5;
}
#escGamingPanel .eg-body p { margin: 0 0 10px; }
#escGamingPanel .eg-body ul { margin: 0 0 10px; padding-left: 20px; }
#escGamingPanel .eg-empty { color: var(--muted, #aaa); }
#escGamingPanel .eg-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--gold, #d4af37);
  background: transparent;
  color: var(--gold, #d4af37);
  font: 500 14px Oswald, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
#escGamingPanel .eg-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  border-radius: 10px;
}
#escGamingPanel .eg-row small { color: var(--muted, #aaa); }
#escGamingPanel .eg-watch { color: var(--gold, #d4af37); }
