/* ========================================================================== */
/* HEROES GRID / HERO CARD — SINGLE CLEAN STANDARD                            */
/* ========================================================================== */

.heroes-grid{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;

  box-sizing: border-box;
  align-items: stretch;
  justify-content: center;
}

.hero-card{
  min-height: 300px;
  padding: 16px 14px 14px;

  display: grid;
  grid-template-rows: 88px minmax(44px, auto) 28px 28px 42px;
  row-gap: 10px;

  justify-items: center;
  align-items: start;
  text-align: center;

  background:
    radial-gradient(120% 120% at 50% 0%, rgba(0,255,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(0,75,80,.96), rgba(0,32,36,.96));

  border-radius: 16px;
  border: 1px solid rgba(0,255,255,.38);

  box-shadow:
    inset 0 0 18px rgba(0,255,255,.15),
    0 10px 26px rgba(0,0,0,.6);

  transition: transform .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
}

.hero-card:hover{
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 22px rgba(0,255,255,.22),
    0 14px 34px rgba(0,0,0,.75);
}

.hero-card .hero-avatar{
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  align-self: start;
  margin: 0 auto;

  box-shadow:
    0 0 0 2px rgba(0,255,255,.35),
    0 0 16px rgba(0,255,255,.28);
}

.hero-card .hero-name{
  width: 100%;
  margin: 0;
  padding: 0 4px;

  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.15;
  color: #eaffff;
  text-shadow: 0 0 6px rgba(0,255,255,.45);

  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-card .hero-stat{
  width: 100%;
  margin: 0;

  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  color: #e8faff;
}

.hero-card .hero-stat b{
  color: #ffffff;
  font-weight: 800;
}

.hero-card .hero-stat.winrate{
  color: #00ffbf;
  font-weight: 900;
}

.hero-card .card-details-btn{
  width: 100%;
  min-height: 42px;
  align-self: end;

  display: inline-flex;
  justify-content: center;
  align-items: center;

  padding: 0 12px;
  text-decoration: none;
  text-align: center;

  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.1;

  color: #eaffff;

  background: linear-gradient(180deg, #005f66, #00393f);
  border: 1px solid rgba(0,255,255,.45);
  border-radius: 12px;

  box-shadow:
    inset 0 0 12px rgba(0,255,255,.22),
    0 0 12px rgba(0,0,0,.5);

  cursor: pointer;
  transition: filter .15s ease, box-shadow .15s ease, transform .12s ease;
  box-sizing: border-box;
}

.hero-card .card-details-btn:hover{
  filter: brightness(1.08);
  box-shadow:
    inset 0 0 16px rgba(0,255,255,.4),
    0 0 18px rgba(0,255,255,.30);
  transform: translateY(-1px);
}

@media (max-width: 900px){
  .heroes-grid{
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 14px;
  }

  .hero-card{
    min-height: 286px;
    padding: 14px 12px 12px;
    grid-template-rows: 80px minmax(42px, auto) 26px 26px 40px;
    row-gap: 8px;
  }

  .hero-card .hero-avatar{
    width: 76px;
    height: 76px;
  }
}

@media (max-width: 520px){
  .heroes-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 10px;
  }

  .hero-card{
    min-height: 272px;
  }

  .hero-card .hero-avatar{
    width: 72px;
    height: 72px;
  }

  .hero-card .hero-name{
    font-size: 0.94rem;
  }

  .hero-card .hero-stat{
    font-size: 0.88rem;
  }

  .hero-card .card-details-btn{
    min-height: 40px;
    font-size: 0.88rem;
  }
}

/* ========================================================================== */
/* [17] ACHIEVEMENTS — SINGLE CLEAN VERSION                                   */
/* ========================================================================== */

.achievements,
.achievements-layout,
.achievements-content,
.achievements-row,
.achievements-grid,
.achievement-card,
.achievement-card .ach-figure,
.achievement-card .ach-meta,
.achievement-card .ach-ring{
  box-sizing: border-box;
  overflow: visible;
}

.achievements{
  width: 100%;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0b3136, #071f23);
  box-shadow:
    inset 0 0 26px rgba(0,255,255,.12),
    0 18px 44px rgba(0,0,0,.65);
}

.achievements-header{
  text-align: center;
  margin: 0 0 10px;
  padding-bottom: 6px;
  position: relative;
}

.achievements-header h3{
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .8px;
  color: #bffcff;
  text-shadow:
    0 0 6px rgba(0,255,255,.65),
    0 1px 2px rgba(0,0,0,.6);
}

.achievements-header::after{
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin: 6px auto 0;
  background: linear-gradient(90deg, transparent, rgba(0,255,255,.55), transparent);
}

.achievements-layout{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
  position: relative;
  z-index: var(--z-content, 5);
}

.achievements-content{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.achievements-row{
  display: grid;
  grid-template-columns:
    var(--track-left, 360px)
    var(--sep, 28px)
    minmax(0, 1fr)
    var(--sep, 28px)
    var(--track-right, 360px);
  width: 100%;
  max-width: calc(
    var(--track-left, 360px) +
    var(--track-mid, 420px) +
    var(--track-right, 360px) +
    2 * var(--sep, 28px)
  );
  margin: 8px auto 0;
  padding: 8px 0;
  align-items: start;
  background:
    linear-gradient(var(--sep-color, transparent), var(--sep-color, transparent))
      left var(--track-left, 360px) / var(--sep, 28px) 100% no-repeat,
    linear-gradient(var(--sep-color, transparent), var(--sep-color, transparent))
      left calc(100% - var(--track-right, 360px) - var(--sep, 28px))
      / var(--sep, 28px) 100% no-repeat;
  position: relative;
  z-index: var(--z-content, 5);
}

.achievements-list,
.achievements-section,
.achievement-card-wrap{
  overflow: visible;
}

.achievements-grid{
  display: grid;
  grid-template-columns: repeat(4, 82px);
  grid-auto-rows: 98px;
  justify-content: center;
  align-items: start;
  gap: 16px 14px;
  width: min(100%, 398px);
  max-width: 398px;
  margin: 0 auto;
  padding: 18px 12px 46px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(0,255,255,.12), transparent 55%),
    linear-gradient(180deg, #0e3f45, #082a2f);
  box-shadow:
    inset 0 0 22px rgba(0,255,255,.16),
    inset 0 0 48px rgba(0,0,0,.45);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.achievements-grid::-webkit-scrollbar,
.achievements-panel::-webkit-scrollbar,
.achievements-container::-webkit-scrollbar{
  width: 0;
  height: 0;
  display: none;
}

.achievement-card{
  position: relative;
  width: 82px;
  height: 82px;
  min-width: 82px;
  min-height: 82px;
  max-width: 82px;
  max-height: 82px;
  margin: 0 auto;
  padding: 0;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  isolation: isolate;
  z-index: 1;
  transition: transform .22s ease, box-shadow .22s ease;
}

.achievement-card::before{
  display: none;
}

.achievement-card .ach-figure{
  position: absolute;
  inset: 0;
  width: 82px;
  height: 82px;
  min-width: 82px;
  min-height: 82px;
  max-width: 82px;
  max-height: 82px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 26%, rgba(255,255,255,.07), rgba(255,255,255,0) 44%),
    radial-gradient(circle at 50% 78%, rgba(0,0,0,.26), rgba(0,0,0,0) 52%),
    linear-gradient(180deg, rgba(39,57,64,.96), rgba(22,35,40,.98));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    inset 0 7px 14px rgba(255,255,255,.04),
    inset 0 -10px 18px rgba(0,0,0,.28);
}

.achievement-card.unlocked .ach-figure{
  background:
    radial-gradient(circle at 50% 26%, rgba(255,255,255,.09), rgba(255,255,255,0) 44%),
    radial-gradient(circle at 50% 78%, rgba(0,0,0,.18), rgba(0,0,0,0) 52%),
    linear-gradient(180deg, rgba(49,71,78,.98), rgba(25,40,46,.99));
}

.achievement-card.is-locked .ach-figure,
.achievement-card.locked .ach-figure{
  background:
    radial-gradient(circle at 50% 26%, rgba(255,255,255,.05), rgba(255,255,255,0) 44%),
    radial-gradient(circle at 50% 78%, rgba(0,0,0,.30), rgba(0,0,0,0) 52%),
    linear-gradient(180deg, rgba(34,48,54,.98), rgba(19,29,34,.99));
}


.achievement-card.is-locked .ach-figure > img,
.achievement-card.is-locked .ach-figure > .ach-fallback,
.achievement-card.locked .ach-figure > img,
.achievement-card.locked .ach-figure > .ach-fallback{
  filter: grayscale(1) brightness(.58) drop-shadow(0 1px 2px rgba(0,0,0,.42));
  opacity: .98;
}

.achievement-card .ach-ring{
  position: absolute;
  inset: 1px;
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  max-width: 80px;
  max-height: 80px;
  margin: 0;
  padding: 0;
  transform: rotate(-90deg);
  pointer-events: none;
  z-index: 4;
}

.achievement-card .ring-bg{
  fill: none;
  stroke: rgba(255,255,255,.14);
  stroke-width: 5.5;
}

.achievement-card .ring-fg{
  fill: none;
  stroke: #74e9ff;
  stroke-width: 5.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(116,233,255,.22));
}

.achievement-card .ach-center{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  color: #f3fcff;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
  z-index: 5;
  pointer-events: none;
}

.achievement-card .ach-meta{
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.achievement-card .ach-desc-text,
.achievement-card .ach-time-row,
.achievement-card .ach-time-label,
.achievement-card .ach-time-value{
  display: none;
}

/* единственная точка управления вертикальной позицией badge */
.achievement-card .ach-bottom-badge,
.achievement-card .ach-bottom-badge.is-unique{
  position: absolute;
  left: 50%;
  bottom: 10px ;
  transform: translateX(-50%);
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  height: auto;
  min-height: 0;
  max-height: none;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
  z-index: 8;

}

.achievements-grid .ach-bottom-badge,
.achievements-grid .ach-bottom-badge.is-unique{
  pointer-events: none;
}

.achievement-card.rarity-common,
.achievement-card.rarity-uncommon,
.achievement-card.rarity-rare,
.achievement-card.rarity-epic,
.achievement-card.rarity-legendary{
  border: none;
}

.achievement-card:hover{
  z-index: 50;
  transform: translateY(-1px) scale(1.02);
  cursor: pointer;
}

.achievement-card:hover .ach-figure > img,
.achievement-card:hover .ach-figure > .ach-fallback{
  filter: brightness(1.05) drop-shadow(0 2px 6px rgba(0,0,0,.28));
}

.achievement-card:hover .ach-bottom-badge{
  transform: translateX(-50%);
}

.achievement-card::after{
  content: attr(data-ach-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6,22,26,.96);
  color: #eaffff;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,255,255,.24);
  box-shadow:
    0 0 10px rgba(0,255,255,.18),
    0 10px 24px rgba(0,0,0,.42);
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  min-width: 160px;
  max-width: min(260px, 78vw);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 10020;
}

.achievement-card:hover::after{
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.achievement-toast{
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: linear-gradient(180deg, #00383f, #002a30);
  border: 1px solid rgba(0,255,255,.45);
  border-radius: 12px;
  padding: 12px 16px;
  color: #dffcff;
  box-shadow:
    0 0 20px rgba(0,255,255,.35),
    inset 0 0 8px rgba(0,255,255,.25);
  opacity: 0;
  transform: translateY(20px);
  transition: .35s ease;
  z-index: var(--z-toast, 1020);
}

.achievement-toast.show{
  opacity: 1;
  transform: translateY(0);
}

.achievement-toast img{
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.achievement-toast .t-title{
  font-weight: 700;
  color: #00ffff;
}

.achievement-toast .t-name{
  font-size: .9rem;
  opacity: .9;
}

@media (min-width: 1441px){
  .achievements-grid{
    grid-template-columns: repeat(4, 84px);
    grid-auto-rows: 102px;
    width: min(100%, 430px);
    max-width: 430px;
    gap: 16px 14px;
    padding: 20px 18px 40px;
  }

  .achievement-card{
    width: 84px;
    height: 84px;
    min-width: 84px;
    min-height: 84px;
    max-width: 84px;
    max-height: 84px;
  }

  .achievement-card .ach-figure{
    width: 84px;
    height: 84px;
    min-width: 84px;
    min-height: 84px;
    max-width: 84px;
    max-height: 84px;
  }

  .achievement-card .ach-ring{
    inset: 1px;
    width: 82px;
    height: 82px;
  }

  .achievement-card .ach-bottom-badge,
  .achievement-card .ach-bottom-badge.is-unique{
    width: 54px;
    min-width: 54px;
    max-width: 54px;
  }
}

@media (max-width: 1280px){
  .achievements-row{
    max-width: 100%;
  }
}

@media (max-width: 992px){
  .achievements-row{
    grid-template-columns: 1fr;
    gap: 14px;
    background: none;
  }
}

@media (max-width: 900px){
  .achievements{
    padding: 12px;
    border-radius: 16px;
  }

  .achievements-grid{
    grid-template-columns: repeat(4, 78px);
    grid-auto-rows: 94px;
    width: min(100%, 378px);
    max-width: 378px;
    gap: 14px 12px;
    padding: 14px 10px 34px;
  }

  .achievement-card{
    width: 78px;
    height: 78px;
    min-width: 78px;
    min-height: 78px;
    max-width: 78px;
    max-height: 78px;
  }

  .achievement-card .ach-figure{
    width: 78px;
    height: 78px;
    min-width: 78px;
    min-height: 78px;
    max-width: 78px;
    max-height: 78px;
  }

  .achievement-card .ach-ring{
    width: 76px;
    height: 76px;
    min-width: 76px;
    min-height: 76px;
    max-width: 76px;
    max-height: 76px;
  }

  .achievement-card .ach-bottom-badge,
  .achievement-card .ach-bottom-badge.is-unique{
    width: 48px;
    min-width: 48px;
    max-width: 48px;
  }
}

@media (max-width: 640px){
  .achievements{
    padding: 10px;
    border-radius: 14px;
  }

  .achievements-header{
    margin-bottom: 8px;
    padding-bottom: 4px;
  }

  .achievements-header h3{
    font-size: .96rem;
    letter-spacing: .5px;
  }

  .achievements-grid{
    grid-template-columns: repeat(3, 74px);
    grid-auto-rows: 90px;
    width: min(100%, 244px);
    max-width: 244px;
    gap: 12px 10px;
    padding: 12px 8px 30px;
    border-radius: 16px;
  }

  .achievement-card{
    width: 74px;
    height: 74px;
    min-width: 74px;
    min-height: 74px;
    max-width: 74px;
    max-height: 74px;
  }

  .achievement-card .ach-figure{
    width: 74px;
    height: 74px;
    min-width: 74px;
    min-height: 74px;
    max-width: 74px;
    max-height: 74px;
  }

  .achievement-card .ach-ring{
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    max-width: 72px;
    max-height: 72px;
  }

  .achievement-card .ring-bg,
  .achievement-card .ring-fg{
    stroke-width: 5;
  }

  .achievement-card .ach-center{
    font-size: 11px;
  }

  .achievement-card .ach-bottom-badge,
  .achievement-card .ach-bottom-badge.is-unique{
    width: 46px;
    min-width: 46px;
    max-width: 46px;
  }

  .achievement-card::after{
    position: fixed;
    left: 50%;
    top: 74px;
    bottom: auto;
    transform: translateX(-50%);
    min-width: 0;
    width: min(240px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    padding: 8px 10px;
    font-size: 10px;
    line-height: 1.35;
    border-radius: 10px;
    text-align: center;
    z-index: 999;
  }

  .achievement-card:hover::after,
  .achievement-card:active::after,
  .achievement-card:focus-visible::after{
    opacity: 1;
    transform: translateX(-50%);
  }
}

@media (max-width: 420px){
  .achievements{
    padding: 8px;
    border-radius: 12px;
  }

  .achievements-grid{
    grid-template-columns: repeat(3, 68px);
    grid-auto-rows: 84px;
    width: min(100%, 224px);
    max-width: 224px;
    gap: 12px 8px;
    padding: 12px 6px 28px;
    border-radius: 14px;
  }

  .achievement-card{
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    max-width: 68px;
    max-height: 68px;
  }

  .achievement-card .ach-figure{
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    max-width: 68px;
    max-height: 68px;
  }

  .achievement-card .ach-ring{
    width: 66px;
    height: 66px;
  }

  .achievement-card .ach-center{
    font-size: 10px;
  }

  .achievement-card .ach-bottom-badge,
  .achievement-card .ach-bottom-badge.is-unique{
    width: 42px;
    min-width: 42px;
    max-width: 42px;
  }

  .achievement-card::after{
    top: 64px;
    width: min(220px, calc(100vw - 22px));
    max-width: calc(100vw - 22px);
    font-size: 10px;
    padding: 7px 9px;
  }
}

@media (max-width: 360px){
  .achievements-grid{
    grid-template-columns: repeat(3, 62px);
    grid-auto-rows: 78px;
    width: min(100%, 204px);
    max-width: 204px;
    gap: 10px 8px;
    padding: 10px 5px 24px;
  }

  .achievement-card{
    width: 62px;
    height: 62px;
    min-width: 62px;
    min-height: 62px;
    max-width: 62px;
    max-height: 62px;
  }

  .achievement-card .ach-figure{
    width: 62px;
    height: 62px;
    min-width: 62px;
    min-height: 62px;
    max-width: 62px;
    max-height: 62px;
  }

  .achievement-card .ach-ring{
    width: 60px;
    height: 60px;
  }

  .achievement-card .ach-center{
    font-size: 10px;
  }

  .achievement-card .ach-bottom-badge,
  .achievement-card .ach-bottom-badge.is-unique{
    width: 38px;
    min-width: 38px;
    max-width: 38px;
  }
}

/* ========================================================================== */
/* [18] CHARTS / STATS SUMMARY                                                 */
/* ========================================================================== */

.charts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    justify-items: center;
}

.chart {
    width: 120px;
    height: 120px;
    position: relative;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.chart canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

.chart .total {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #fff;
    z-index: 1;
}

.chart .legend {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #cceeff;
}

.heroes-grid{
  max-width:min(1280px, 100%);
  padding:14px;
  grid-template-columns:repeat(auto-fill, minmax(170px, 1fr));
}

.hero-card{
  min-width:0;
  overflow:hidden;
}

.hero-card .hero-name,
.hero-card .hero-stat,
.hero-card .card-details-btn{
  min-width:0;
}

.hero-card .card-details-btn{
  padding:10px 12px;
}

@media (max-width: 900px){
  .heroes-grid{
    grid-template-columns:repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 640px){
  .heroes-grid{
    gap:12px;
    padding:10px;
  }

  .hero-card{
    min-height:260px;
    padding:12px 10px 10px;
  }

  .hero-card .hero-name{
    font-size:.92rem;
    min-height:40px;
  }

  .hero-card .hero-stat{
    font-size:.86rem;
  }

  .hero-card .card-details-btn{
    font-size:.84rem;
    min-height:38px;
    border-radius:10px;
  }
}

@media (max-width: 420px){
  .heroes-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .hero-card{
    min-height:248px;
    grid-template-rows:72px minmax(38px, auto) 24px 24px 38px;
    row-gap:8px;
  }

  .hero-card .hero-avatar{
    width:68px;
    height:68px;
  }

  .hero-card .hero-name{
    font-size:.88rem;
  }

  .hero-card .hero-stat{
    font-size:.82rem;
  }
}

/* ========================================================================== */
/* FINAL HEROES TAB PATCH — 12 CARDS / COMPACT LAYOUT / FIXED WR DISPLAY      */
/* ========================================================================== */

.heroes-grid{
  width:min(100%, 1140px);
  max-width:1140px;
  margin:0 auto;
  padding:10px;
  display:grid;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:12px;
  align-items:stretch;
  justify-content:center;
  box-sizing:border-box;
}

.hero-card{
  min-height:238px;
  padding:12px 10px 10px;
  display:grid;
  grid-template-rows:70px minmax(42px, auto) 24px 24px 38px;
  row-gap:8px;
  justify-items:center;
  align-items:start;
  text-align:center;
  border-radius:14px;
  overflow:hidden;
}

.hero-card:hover{
  transform:translateY(-2px);
}

.hero-card .hero-avatar{
  width:68px;
  height:68px;
  max-width:68px;
  max-height:68px;
}

.hero-card .hero-name{
  min-height:42px;
  padding:0 2px;
  font-size:.88rem;
  line-height:1.1;
}

.hero-card .hero-stat{
  font-size:.84rem;
  line-height:1.15;
}

.hero-card .hero-stat.winrate{
  color:#20ffd0;
  text-shadow:0 0 8px rgba(0,255,200,.16);
}

.hero-card .card-details-btn{
  width:100%;
  min-height:38px;
  padding:0 10px;
  font-size:.84rem;
  border-radius:10px;
}

.pagination{
  width:min(100%, 1140px);
  margin:12px auto 0;
}

@media (max-width: 1180px){
  .heroes-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    max-width:920px;
  }
}

@media (max-width: 760px){
  .heroes-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    max-width:680px;
    gap:10px;
    padding:8px;
  }

  .hero-card{
    min-height:220px;
    grid-template-rows:64px minmax(38px, auto) 22px 22px 36px;
    padding:10px 8px 8px;
  }

  .hero-card .hero-avatar{
    width:60px;
    height:60px;
    max-width:60px;
    max-height:60px;
  }

  .hero-card .hero-name{
    font-size:.83rem;
    min-height:38px;
  }

  .hero-card .hero-stat{
    font-size:.78rem;
  }

  .hero-card .card-details-btn{
    min-height:34px;
    font-size:.78rem;
  }
}

@media (max-width: 520px){
  .heroes-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    max-width:360px;
    gap:10px;
  }
}
