@font-face {
  font-family: "OETZTYP";
  src: url("../images/OETZTYP_.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "OETZTYP", "Space Grotesk", sans-serif !important;
  background-color: #19003f;
  color: #eee;
}

a {
  color: #ffffff;
}

.player-container {
  max-width: 720px;
}

.player-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.player-form label {
  font-size: 0.92rem;
  color: #ddb6e6;
}

.form-row {
  display: flex;
  gap: 0.7rem;
}

.form-row input {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(18, 8, 48, 0.85);
  color: #f3e9ff;
  padding: 0.72rem 0.84rem;
  font-family: "OETZTYP", "Space Grotesk", sans-serif;
}

.form-row input:focus {
  outline: 2px solid rgba(206, 127, 255, 0.55);
  outline-offset: 1px;
}

.profile-card {
  margin-top: 1rem;
  background: rgba(25, 0, 63, 0.95);
  border: 1px solid rgba(221, 182, 230, 0.25);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4f0087;
  color: #f4deff;
  font-size: 2rem;
  font-weight: 700;
  user-select: none;
  flex-shrink: 0;
}

.avatar--with-image {
  background-image: url("../images/extra/profile.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: transparent;
}

.avatar--with-clan-image {
  background-image: url("../images/extra/clans.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: transparent;
}

.avatar--clan-composite {
  background: transparent;
  border: 1px solid rgba(221, 182, 230, 0.35);
  padding: 2px;
}

.avatar-clan-image {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.user-info h2 {
  margin: 0;
  color: #ddb6e6;
}

.user-info p {
  margin: 0.2rem 0;
}

.stats {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
}

.stats h2 {
  margin-top: 0;
  color: #ce7fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.6rem;
}

th,
td {
  padding: 0.55rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-align: left;
  vertical-align: top;
}

th {
  color: #ffffff;
  width: 42%;
}

.badges {
  margin-top: 1rem;
}

.badges h3 {
  margin: 0 0 0.45rem;
  color: #e8c7f7;
}

.badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 64px;
  background: #4f0087;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
}

.badge-image {
  width: 53px;
  height: 53px;
  object-fit: contain;
}

.country-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.country-badge-image {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 3px;
}

@media (max-width: 720px) {
  .form-row {
    flex-direction: column;
  }

  .profile-header {
    align-items: flex-start;
  }
}
