* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f4f7fb;
  color: #102033;
  font-family: "Poppins", "Segoe UI", sans-serif;
}

.wall-page {
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 30px 0 46px;
}

.wall-head {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  text-align: center;
}

.wall-head h1 {
  margin: 0;
  color: #0d47a1;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.wall-head p {
  margin: 0 auto;
  max-width: 680px;
  color: #43566f;
  font-size: 1rem;
  line-height: 1.5;
}

.wall-board {
  display: grid;
  gap: 14px;
}

.wall-status {
  width: min(560px, 100%);
  margin: 28px auto;
  padding: 18px;
  border: 1px solid #c9d8ea;
  border-radius: 8px;
  background: #ffffff;
  color: #24445f;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(15, 37, 63, 0.08);
}

.wall-list {
  display: grid;
  gap: 14px;
}

.wall-player {
  display: grid;
  grid-template-columns: 74px minmax(250px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 142px;
  padding: 18px;
  border: 1px solid #c9d8ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.08);
}

.wall-player:nth-child(1) {
  border-color: #d8b451;
  box-shadow: 0 14px 34px rgba(176, 132, 28, 0.16);
}

.wall-player:nth-child(2) {
  border-color: #aeb9c7;
}

.wall-player:nth-child(3) {
  border-color: #bd8759;
}

.wall-rank {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0d47a1;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0;
}

.wall-player-main {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.wall-player-main:hover h2 {
  color: #1976d2;
}

.wall-player-photo {
  width: 82px;
  height: 82px;
  border: 3px solid #1976d2;
  border-radius: 50%;
  object-fit: cover;
  background: #dce8f5;
  box-shadow: 0 8px 18px rgba(25, 118, 210, 0.16);
}

.wall-player-text {
  min-width: 0;
}

.wall-player-text h2 {
  margin: 0;
  color: #102033;
  font-size: 1.22rem;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.wall-player-text p {
  margin: 7px 0 0;
  color: #58708d;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.wall-trophies {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.wall-trophy {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 88px;
  text-align: center;
  --plaque-x: 50%;
  --plaque-y: 52%;
  --plaque-size: 0.84rem;
  --plaque-wide-size: 0.74rem;
  --plaque-min-width: 24px;
}

.wall-trophy-image-wrap {
  position: relative;
  width: 78px;
  height: 78px;
}

.wall-trophy-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wall-trophy-plaque {
  position: absolute;
  left: var(--plaque-x);
  top: var(--plaque-y);
  transform: translate(-50%, -50%);
  min-width: var(--plaque-min-width);
  display: grid;
  place-items: center;
  color: #2b1607;
  font-size: var(--plaque-size);
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255,255,255,0.45);
}

.wall-trophy-plaque-wide {
  min-width: 30px;
  font-size: var(--plaque-wide-size);
}

.wall-trophy-liga {
  --plaque-x: 50%;
  --plaque-y: 54.5%;
  --plaque-size: 0.82rem;
  --plaque-wide-size: 0.70rem;
}

.wall-trophy-americano {
  --plaque-x: 50.5%;
  --plaque-y: 52%;
  --plaque-size: 0.78rem;
  --plaque-wide-size: 0.68rem;
}

.wall-trophy-kings {
  --plaque-x: 50%;
  --plaque-y: 72%;
  --plaque-size: 0.78rem;
  --plaque-wide-size: 0.74rem;
}

.wall-trophy-1v1 {
  --plaque-x: 50%;
  --plaque-y: 84%;
  --plaque-size: 0.66rem;
  --plaque-wide-size: 0.56rem;
}

.wall-trophy-meta {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.wall-trophy-meta strong {
  color: #102033;
  font-size: 0.72rem;
}

.wall-trophy-meta span {
  color: #64748b;
  font-size: 0.66rem;
}

@media (max-width: 820px) {
  .wall-page {
    width: min(100vw - 16px, 620px);
    padding-top: 18px;
  }

  .wall-player {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .wall-rank {
    width: 46px;
    height: 46px;
    font-size: 0.98rem;
  }

  .wall-player-main {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
  }

  .wall-player-photo {
    width: 70px;
    height: 70px;
  }

  .wall-player-text h2 {
    font-size: 1rem;
  }

  .wall-player-text p {
    font-size: 0.78rem;
  }

  .wall-trophies {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 58px;
  }
}

@media (max-width: 500px) {
  .wall-head h1 {
    font-size: 1.8rem;
  }

  .wall-head p {
    font-size: 0.9rem;
  }

  .wall-player {
    grid-template-columns: 1fr;
  }

  .wall-rank {
    justify-self: start;
  }

  .wall-player-main {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .wall-player-photo {
    width: 66px;
    height: 66px;
  }

  .wall-trophies {
    padding-left: 0;
  }

  .wall-trophy {
    --plaque-size: 0.76rem;
    --plaque-wide-size: 0.66rem;
    --plaque-min-width: 22px;
  }

  .wall-trophy-plaque-wide {
    min-width: 26px;
  }

  .wall-trophy-americano {
    --plaque-size: 0.72rem;
    --plaque-wide-size: 0.64rem;
  }

  .wall-trophy-kings {
    --plaque-size: 0.72rem;
    --plaque-wide-size: 0.68rem;
  }

  .wall-trophy-1v1 {
    --plaque-size: 0.60rem;
    --plaque-wide-size: 0.52rem;
  }
}
