:root {
  --bg: #000000;
  --card-bg: #0D0D0D;
  --card-border: #262626;

  --accent: #ECE81A;
  /* number rings */
  --shift: #F9A262;
  /* orange */
  --ctrl: #EF466C;
  /* red / pink */
  --alt: #5ECAEB;
  /* blue */

  --text: #ffffff;
  --text-dim: #C1C6C8;
  --text-legend: #C1C6C8;

  --radius: 6px;
  --gap: 12px;
  --pad: clamp(20px, 2vw, 30px);

}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wow-map {
  margin-top: 60px;
}

.layout {
  position: relative;
  max-width: 1760px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 48px);
}


.mapping {
  width: 65%;
  padding-top: 33px;
}

/* ---------- Card grid ----------------------------------- */

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.card {
  position: relative;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--card-border);
  min-height: 190px;
}

.card__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.85rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.card__title {
  margin: 22px 0 0;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.15vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-family: Saira, sans-serif !important;
  font-weight: 600 !important;
  color: var(--text)
}

/* ---------- Bind rows ----------------------------------- */

.binds {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bind {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--text-dim);
  font-size: clamp(0.85rem, 0.72vw, 0.98rem);
  font-weight: 400;
  line-height: 1.3;
}

.mod {
  flex: 0 0 auto;
  width: 16px;
  text-align: center;
  line-height: 1;
}

.mod--shift {
  color: var(--shift);
  font-size: 16px;
  font-family: Inter, sans-serif !important;
  font-weight: 400;
}

.mod--ctrl {
  color: var(--ctrl);
  font-size: 1.15em;
  font-weight: 500;
  transform: translateY(0.14em);
}

.mod--alt {
  color: var(--alt);
  font-size: 1em;
}

/* ---------- Legend -------------------------------------- */

.legend {
  list-style: none;
  margin-top: 16px;
  padding: 0 0 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.legend__item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-legend);
  font-size: 12px;
  text-transform: uppercase;
}

.legend__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.legend__dot--shift {
  background: var(--shift);
}

.legend__dot--ctrl {
  background: var(--ctrl);
}

.legend__dot--alt {
  background: var(--alt);
}

/* ---------- Player panel -------------------------------- */

.player {
  position: absolute;
  top: 42%;
  right: -3%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  width: 40%;
  bottom: 0;
}

.player picture {
  display: block;
}

.player__img {
  display: block;
  width: 100%;
  height: auto;
}

.player__id {
  position: absolute;
  right: 4%;
  top: 46%;
  text-align: right;
}

.player__name {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.02em;
}

.player__role {
  margin: 6px 0 0;
  color: var(--alt);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.2vw, 1.3rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

/* ---------- Responsive ---------------------------------- */

/* Tablet: art stops overlapping and moves above the grid */
@media (max-width: 1180px) {
  .layout {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 40px);
  }

  .mapping {
    width: 100%;
  }

  .player {
    position: static;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    transform: none;
  }
}

/* ---------- Mobile -------------------------------------- */

@media (max-width: 780px) {
  :root {
    --gap: 8px;
    --pad: 22px 18px;
  }

  .layout {
    gap: 0;
    padding: 0;
  }

  .player {
    max-width: none;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
    background: var(--card-bg);
    min-height: 82px;
  }

  .card__num {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .card__title {
    margin-top: 18px;
    font-size: 14px;
  }

  .binds {
    margin-top: 12px;
    gap: 7px;
  }

  .bind {
    font-size: 12px;
  }

  .legend {
    justify-content: center;
    margin-top: 4px;
  }

  .legend__item {
    font-size: 12px;
  }

  .legend__dot {
    width: 9px;
    height: 9px;
  }

  .wow-map {
    margin-top: 24px;
  }
}