/* v0.9.78 · leaderboard height locked to the visible game-selection panel */

@media (min-width: 821px) {
  /* Keep both home panels aligned at the same top edge. */
  body.home-screen #homeApp.home-app:not(.hidden) {
    align-items: start !important;
  }

  body.home-screen #homeApp > .home-panel {
    align-self: start !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  /* The outer leaderboard panel ends exactly at the game panel's lower edge. */
  body.home-screen #homeApp > #leaderboardPanel.leaderboard-panel {
    display: flex !important;
    flex-direction: column !important;
    align-self: start !important;
    min-height: 0 !important;
    height: var(--v080-home-panel-height, auto) !important;
    max-height: var(--v080-home-panel-height, none) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Player entries scroll inside the now shorter leaderboard surface. */
  body.home-screen #leaderboardPanel .leaderboard-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
}

@media (max-width: 820px) {
  body.home-screen #homeApp {
    --v080-home-panel-height: auto;
  }

  body.home-screen #homeApp > #leaderboardPanel.leaderboard-panel {
    height: auto !important;
    max-height: none !important;
  }
}


/* v0.9.79 · hide the complete leaderboard surface when disabled */
body.home-screen #homeApp > #leaderboardPanel.leaderboard-panel.hidden {
  display: none !important;
}

@media (min-width: 821px) {
  body.home-screen #homeApp.home-app.leaderboard-disabled:not(.hidden) {
    width: min(484px, calc(100vw - 36px)) !important;
    grid-template-columns: minmax(0, 484px) !important;
    justify-content: center !important;
  }
}


/* v0.9.80 · editable player reports inside the Developer Center */
.support-ticket-card.player-report {
  border-color: var(--wf-coral, #ff7f66) !important;
}
.support-ticket-card.player-report.active,
.support-ticket-card.player-report:hover {
  border-color: var(--wf-lime, #c8ff3d) !important;
}
.player-report-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.player-report-meta > div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  color: #071116;
  background: var(--wf-coral, #ff7f66);
  border: 2px solid var(--wf-ink, #121212);
  border-radius: 11px;
  box-shadow: 3px 3px 0 var(--wf-ink, #121212);
}
.player-report-meta span { font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.player-report-meta strong { overflow-wrap: anywhere; }
.support-case-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.support-ticket-reply input,
.support-ticket-reply textarea,
.support-ticket-reply select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 2px solid #50617a;
  border-radius: 10px;
  color: #fff;
  background: #08111e;
  font: inherit;
}
.support-ticket-reply label { display: grid; gap: 6px; }
.support-ticket-reply label > span { color: #e8eef7; font-weight: 850; }
@media (max-width: 720px) {
  .player-report-meta, .support-case-edit-grid { grid-template-columns: 1fr; }
}
