.banner {
  background-image: url("vista-desktop.1hfdlvv5pswxi.webp");
}

.boards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.boards a {
  padding: 8px 16px;
  border: 1px solid rgba(198, 161, 91, 0.75);
  border-radius: 4px;
  background: rgba(5, 16, 28, 0.55);
  color: #f7f4ee;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.boards a.here,
.boards a:hover {
  color: #1a1208;
  background: linear-gradient(#f3d7a0, #c49245);
  border-color: #e8c48a;
}

.board-name {
  margin: 0 0 6px;
  color: #e7c98a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.notice a { color: #e7c98a; }

.profile h2 {
  margin: 0;
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 26px);
  color: #f7f4ee;
}

.tools {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 14px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-row {
  display: flex;
  width: min(340px, 100%);
  height: 48px;
  overflow: hidden;
  border: 1px solid #c6a15b;
  border-radius: 4px;
  background: rgba(5, 16, 28, 0.92);
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
}

.search input::placeholder { color: rgba(255, 255, 255, 0.5); }

.search button {
  width: 52px;
  border: 0;
  background: linear-gradient(#f3d7a0, #c49245);
  cursor: pointer;
}

.search button:hover { filter: brightness(1.06); }

.picker { text-align: right; }

.field {
  position: relative;
  width: min(280px, 100%);
  height: 52px;
  border: 1px solid #c6a15b;
  border-radius: 4px;
  background: rgba(5, 16, 28, 0.92);
}

.field label {
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 0 6px;
  background: #061520;
  color: #e6d3b0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field select {
  width: 100%;
  height: 100%;
  padding: 14px 42px 0 14px;
  border: 0;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23e6c98a' d='M1 1.2 L6 6.5 L11 1.2'/></svg>") right 14px center / 12px 8px no-repeat;
  color: #fff;
  font: 18px/1 "Segoe UI", system-ui, sans-serif;
  appearance: none;
}

.compare {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #e7c98a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.compare:hover { text-decoration: underline; }

.table-frame {
  border: 1px solid rgba(198, 161, 91, 0.7);
  background: rgba(8, 24, 40, 0.92);
  overflow-x: auto;
}

table { width: 100%; border-collapse: collapse; }

th {
  padding: 12px 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid #c6a15b;
}

th + th, td + td { border-left: 1px solid rgba(198, 161, 91, 0.55); }

td {
  padding: 8px 10px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.skillboard { border: 0; background: transparent; }

.skillboard th {
  padding: 4px 12px 12px;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.skillboard th + th,
.skillboard td + td { border-left: 0; }

.skillboard td {
  padding: 10px 16px;
  border-bottom: 0;
}

.skillboard tbody tr:nth-child(odd) { background: rgba(7, 24, 40, 0.35); }
.skillboard tbody tr:nth-child(even) { background: rgba(18, 46, 70, 0.72); }
.skillboard tbody tr:hover { background: rgba(232, 196, 138, 0.1); }

.skillboard .medal,
.skillboard .medal.place-1,
.skillboard .medal svg,
.skillboard .medal.place-1 svg { width: 36px; height: 36px; }
.skillboard .medal b,
.skillboard .medal.place-1 b { font-size: 13px; }

.skillboard td.skill { width: 38%; padding-left: 18px; }
.skillboard td:nth-child(2),
.skillboard th:nth-child(2) { width: 18%; }

tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.035); }
tbody tr:hover { background: rgba(232, 196, 138, 0.08); }
tr.lead td { padding-top: 12px; padding-bottom: 12px; }

.medal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  vertical-align: middle;
}

.medal svg { position: absolute; inset: 0; width: 52px; height: 52px; }

.medal b {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.medal.place-1 { width: 58px; height: 58px; }
.medal.place-1 svg { width: 58px; height: 58px; }
.medal.place-1 b { font-size: 18px; }

.who { text-align: center; }

.name-row,
.champ {
  color: #f7f4ee;
  font-weight: 600;
  text-decoration: none;
}

.name-row:hover .name,
.champ:hover .nameplate { text-decoration: underline; }

.nameplate {
  display: inline-block;
  min-width: 92px;
  padding: 4px 14px 5px;
  border: 1px solid #e8c48a;
  border-radius: 3px;
  background: linear-gradient(#6a4a22, #2a1c0e 60%, #140e08);
  color: #f8e7c0;
  font-size: 14px;
  font-weight: 700;
}

.skill-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f7f4ee;
  font-weight: 600;
  text-decoration: none;
}

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

td.skill { text-align: left; padding-left: 18px; }

.skill-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
}

.profile-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.back {
  color: #f7f4ee;
  font-weight: 600;
  text-decoration: none;
}

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

.profile { padding: 0 0 16px; }

.empty, .notice {
  padding: 28px 16px;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.pager {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 16px;
}

.pager a, .pager .here {
  min-width: 36px;
  padding: 7px 10px;
  border-radius: 4px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background: rgba(7, 18, 30, 0.8);
  border: 1px solid rgba(201, 163, 106, 0.45);
}

.pager .here, .pager a:hover {
  color: #1a1208;
  background: linear-gradient(#f0d092, #c49245);
}

.footnote {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 800px) {
  .tools, .profile-nav { display: block; }
  .search-row, .field { width: 100%; }
  .picker { margin-top: 18px; text-align: left; }
  .profile-nav .compare { margin-top: 10px; }
}
