/* Shared by the profile and leaderboard pages */

body {
  margin: 0;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 16px 16px 48px;
  background: #05050d;
  color: #ffffff;
  font: 16px/1.5 system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.back-link {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #ffff00;
  font: 12px "Press Start 2P", monospace;
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

h1 {
  margin: 8px 0 0;
  font: clamp(22px, 6vw, 30px) "Press Start 2P", monospace;
  color: #ffff00;
  text-shadow: 3px 3px 0 #2121de;
  text-align: center;
}

h2 {
  margin: 0 0 12px;
  font: 13px "Press Start 2P", monospace;
  color: #aab2ff;
}

.panel {
  width: min(100%, 760px);
  box-sizing: border-box;
  padding: 18px;
  border: 2px solid #2121de;
  border-radius: 14px;
  background: #0b0b1e;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

input, select, button, textarea {
  min-height: 44px;
  box-sizing: border-box;
  padding: 8px 14px;
  border: 2px solid #3b4290;
  border-radius: 10px;
  background: #0d1030;
  color: #ffffff;
  font: 600 15px system-ui, sans-serif;
}

button { cursor: pointer; }
button:hover { border-color: #ffff00; }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid #ffff00;
  outline-offset: 2px;
}

[role="tab"][aria-selected="true"] {
  border-color: #ffff00;
  background: #2a2a00;
  color: #ffff00;
}

.muted {
  color: #bbbbbb;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th, td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid #1b1e3d;
}

th {
  color: #aab2ff;
  font-size: 13px;
  font-weight: 700;
}

td.num, th.num {
  text-align: right;
}

tr.me td {
  color: #ffff00;
  font-weight: 700;
}
