.lookup-panel {
  background: linear-gradient(120deg, #201d19, #16191e);
  border: 1px solid #514031;
  border-radius: 20px;
  padding: 28px;
}
.lookup-panel label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.lookup-row {
  display: flex;
  gap: 12px;
}
.lookup-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid #42464e;
  border-radius: 10px;
  padding: 15px;
  font-size: 14px;
}
.lookup-row button {
  white-space: nowrap;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 13px;
}
.lookup-panel p {
  color: #aab1bc;
  font-size: 12px;
  line-height: 1.7;
  margin: 12px 0 0;
}
.lookup-panel .privacy-note {
  color: #8f98a6;
  font-size: 11px;
}
.lookup-status {
  font-size: 13px;
  color: #aab1bc;
  padding: 20px 4px;
  min-height: 58px;
  line-height: 1.6;
}
.lookup-status[data-state="error"] {
  color: #ffb783;
}
.lookup-status[data-state="success"] {
  color: #a5c6b5;
}
.performance-empty {
  text-align: center;
  border: 1px dashed #303641;
  border-radius: 20px;
  padding: 55px 20px;
  background: radial-gradient(ellipse at center, #28211b55, transparent 65%);
}
.performance-glyph {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: #29241e;
  border-radius: 18px;
  color: #ffa665;
  font-size: 32px;
}
.performance-empty h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  font-weight: 550;
}
.performance-empty p {
  color: #aab1bc;
  line-height: 1.8;
  font-size: 14px;
}
.empty-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.empty-tags span {
  font-size: 11px;
  padding: 8px 12px;
  border: 1px solid #353942;
  border-radius: 20px;
  color: #a5adba;
}
.player-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0 25px;
}
.player-heading h2 {
  font-size: 32px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.player-heading p {
  font-size: 12px;
  color: #98a2b0;
}
.source-link {
  text-decoration: none;
  font-size: 12px;
}
.performance-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.performance-metric {
  padding: 25px;
  background: #171b21;
  border: 1px solid #303640;
  border-radius: 16px;
  min-width: 0;
}
.performance-metric > span {
  display: block;
  font-size: 12px;
  color: #adb5c1;
}
.performance-metric > strong {
  display: block;
  margin: 14px 0;
  font-size: 34px;
  font-weight: 550;
  letter-spacing: -1px;
}
.performance-metric > small {
  font-size: 11px;
  color: #96a0af;
}
.performance-metrics .performance-metric:first-child {
  background: linear-gradient(135deg, #39271a, #1c1e23);
  border-color: #60422c;
}
.performance-metrics .performance-metric:first-child strong {
  color: #ffad6e;
}
.performance-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 32px 0 16px;
  gap: 15px;
}
.performance-section h2 {
  font-size: 19px;
  font-weight: 550;
  margin: 0;
}
.performance-section > span {
  font-size: 11px;
  color: #98a2b0;
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.skill-track {
  height: 4px;
  background: #303640;
  border-radius: 4px;
  margin-top: 22px;
  overflow: hidden;
}
.skill-track span {
  display: block;
  height: 100%;
  background: #f69047;
  border-radius: 4px;
}
.match-list {
  border: 1px solid #303640;
  border-radius: 16px;
  overflow: hidden;
}
.match-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: #15191e;
}
.match-row + .match-row {
  border-top: 1px solid #2c323b;
}
.match-outcome {
  width: 44px;
  text-align: center;
  padding: 6px 3px;
  border-radius: 5px;
  font-size: 10px;
  background: #282e37;
  color: #c6ced8;
}
.match-outcome.win {
  background: #23392f;
  color: #9bdab8;
}
.match-outcome.loss {
  background: #3a2528;
  color: #eea6ae;
}
.match-row > div {
  flex: 1;
}
.match-row > div strong {
  display: block;
  font-size: 14px;
  text-transform: capitalize;
}
.match-row small {
  display: block;
  color: #929eaf;
  font-size: 11px;
  margin-top: 6px;
}
.match-score {
  font-size: 17px;
  font-weight: 500;
}
.match-row a {
  color: #c6ced8;
  font-size: 11px;
  text-underline-offset: 3px;
}
.performance-footnote,
.no-matches {
  font-size: 12px;
  line-height: 1.7;
  color: #929eaf;
  padding: 12px 4px;
}
.no-matches {
  padding: 20px;
}
.performance-attribution {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 36px;
  padding: 24px 0;
}
.performance-attribution img {
  display: block;
  width: 160px;
  height: auto;
}
.performance-attribution p {
  font-size: 11px;
  color: #939daa;
  line-height: 1.8;
}
.performance-page .hub-status {
  font-size: 11px;
}
.performance-page [hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .performance-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lookup-row {
    flex-direction: column;
  }
  .performance-page .hub-status {
    display: none;
  }
}
@media (max-width: 600px) {
  .lookup-panel {
    padding: 20px;
  }
  .lookup-row input {
    font-size: 13px;
  }
  .skill-grid {
    grid-template-columns: 1fr;
  }
  .skill-grid .performance-metric {
    padding: 20px;
  }
  .performance-metric {
    padding: 18px;
  }
  .performance-metric > strong {
    font-size: 29px;
  }
  .match-row {
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px;
  }
  .match-row a {
    margin-left: auto;
  }
  .player-heading {
    flex-wrap: wrap;
  }
  .performance-attribution {
    flex-direction: column;
    align-items: flex-start;
  }
  .performance-empty {
    padding: 32px 18px;
  }
}
.friends-panel {
  border: 1px solid #4a3828;
  background: linear-gradient(120deg, #211b16, #14181e 65%);
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 30px;
}
.friends-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.friends-heading h2 {
  font-size: 27px;
  letter-spacing: -0.7px;
  margin: 12px 0;
}
.friends-heading p,
.steam-connection p {
  color: #aab2bf;
  font-size: 13px;
  line-height: 1.7;
  margin: 8px 0;
}
.friends-only-badge {
  font-size: 10px;
  white-space: nowrap;
  padding: 7px 10px;
  border: 1px solid #554331;
  border-radius: 20px;
  color: #d2b494;
}
.steam-connection {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  background: #101419;
  border: 1px solid #343b45;
  border-radius: 14px;
  padding: 22px;
  margin: 24px 0;
}
.steam-connection strong {
  font-size: 14px;
}
.steam-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.steam-button {
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
}
.steam-button img {
  display: block;
  max-width: 100%;
  height: auto;
}
.steam-connection #steam-service-note {
  font-size: 11px;
  color: #d0af8b;
}
.friends-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.friends-controls label {
  font-size: 12px;
  color: #a4aeba;
}
.friends-controls select {
  border: 1px solid #39424c;
  border-radius: 9px;
  padding: 10px;
  font-size: 12px;
}
.friends-controls .button {
  margin-left: auto;
}
.friends-panel button:disabled {
  cursor: not-allowed;
}
.friends-panel #friends-status {
  font-size: 12px;
  color: #d2b99c;
  line-height: 1.6;
  min-height: 20px;
  margin: 18px 0;
}
.friends-empty {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px dashed #3a424c;
  border-radius: 14px;
  padding: 25px;
}
.friends-empty > span {
  font-size: 32px;
  color: #a38a6f;
}
.friends-empty strong {
  font-size: 15px;
  font-weight: 500;
}
.friends-empty p {
  font-size: 12px;
  color: #949eac;
  line-height: 1.6;
  margin: 8px 0 0;
}
.friends-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 20px 0;
}
.friends-summary strong {
  font-size: 13px;
  font-weight: 500;
}
.friends-summary span,
.friends-privacy {
  font-size: 11px;
  color: #929dad;
  line-height: 1.8;
}
.friends-table-wrap {
  overflow-x: auto;
}
.friends-table {
  width: 100%;
  display: table;
  border-collapse: collapse;
  min-width: 480px;
}
.friends-table thead {
  display: table-header-group;
}
.friends-table tbody {
  display: table-row-group;
}
.friends-table tr,
.friends-table tr:hover {
  display: table-row;
  transform: none;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.friends-table th,
.friends-table td,
.friends-table td:first-child {
  display: table-cell;
  padding: 15px 10px;
  border-bottom: 1px solid #303741;
  text-align: left;
  white-space: normal;
  font-size: 12px;
}
.friends-table th {
  color: #a8b1be;
  font-size: 10px;
}
.friends-table td a {
  color: #bac5d4;
  font-size: 11px;
  text-underline-offset: 3px;
}
.friends-table .friend-self {
  background: #49301c66;
}
.you-badge {
  font-size: 9px;
  margin-left: 8px;
  padding: 3px 5px;
  border-radius: 4px;
  background: #63401f;
  color: #ffd0a4;
}
.friends-privacy {
  margin: 18px 0 0;
}
#friends-more {
  margin-top: 15px;
}
#steam-unlink-dialog p {
  font-size: 14px;
  color: #b7bfca;
  line-height: 1.7;
}
@media (max-width: 700px) {
  .friends-panel {
    padding: 20px;
  }
  .friends-heading {
    flex-direction: column;
    gap: 8px;
  }
  .friends-heading h2 {
    font-size: 23px;
  }
  .steam-connection {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
  .friends-controls .button {
    margin-left: 0;
    width: 100%;
  }
  .friends-empty {
    padding: 18px;
  }
  .friends-only-badge {
    display: none;
  }
}
