/* Медали — соты, рамка окрашена по тиру (SVG-tint через mask) */

.pr__badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 14px 4px;
  background: url('/sprites/common/tile-diag.png') repeat;
  background-color: #061018;
  border: 0;
}

.pr__row {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: -6px;
}
.pr__row:first-child { margin-top: 0; }

.pr__row--odd {
  padding-left: 8.333%;
}

.pr__badge {
  position: relative;
  width: 16.666%;
  flex-shrink: 0;
  aspect-ratio: 257 / 257;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s;
}
.pr__badge:active { transform: scale(0.94); }

/* Гексагональная рамка, окрашенная через mask */
.pr__badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #b27332;
  -webkit-mask: url('/sprites/common/hex-button-up.png') center/100% 100% no-repeat;
          mask: url('/sprites/common/hex-button-up.png') center/100% 100% no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* Цвета рамок по тиру */
.pr__badge[data-tier="0"]::before { background-color: #3a4342; opacity: .45; }
.pr__badge[data-tier="1"]::before { background-color: #b27332; }
.pr__badge[data-tier="2"]::before { background-color: #c0c0c0; }
.pr__badge[data-tier="3"]::before { background-color: #e8b820; }
.pr__badge[data-tier="4"]::before { background-color: #d8e4e8; }
.pr__badge[data-tier="5"]::before { background-color: #7de0d0; }
.pr__badge[data-tier="6"]::before { background-color: #ff9d5c; }

.pr__badge-img {
  position: relative;
  z-index: 1;
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.6));
}
.pr__badge--locked .pr__badge-img {
  filter: grayscale(1) brightness(0.5) contrast(0.8);
  opacity: 0.5;
}

/* Прогресс-полоска внизу */
.pr__badge-progress {
  position: absolute;
  bottom: 10%;
  left: 24%;
  right: 24%;
  height: 3px;
  background: rgba(255,255,255,.15);
  overflow: hidden;
  border-radius: 1px;
}
.pr__badge-progress-fill {
  height: 100%;
  background: #ffd652;
  transition: width .3s ease-out;
  box-shadow: 0 0 4px #ffd652aa;
}

/* ---------- Модалка медали ---------- */
.pr-modal__overlay {
  position: fixed; inset: 0;
  background: #000a;
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 16px;
}
.pr-modal {
  background: #061018; color: #e4f1ee;
  border: 1px solid #ffac4f66;
  padding: 20px;
  max-width: 420px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  letter-spacing: .05em;
  position: relative;
}
.pr-modal__close {
  position: absolute; top: 6px; right: 8px;
  background: none; border: 0; color: #5d6b6b;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.pr-modal__close:active { color: #ffd652; }
.pr-modal__head {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding-bottom: 16px;
  border-bottom: 1px solid #00b6bf33;
  margin-bottom: 14px;
}
.pr-modal__icon {
  width: 96px; height: 110px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pr-modal__icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.8));
}
.pr-modal__title {
  font-family: 'Coda', 'Rajdhani', sans-serif;
  font-size: 20px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #ffac4f;
}
.pr-modal__sub { font-size: 13px; color: #5d6b6b; }
.pr-modal__tiers { display: flex; flex-direction: column; gap: 4px; }
.pr-modal__tier {
  display: grid;
  grid-template-columns: 16px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-left: 3px solid transparent;
  font-size: 13px;
}
.pr-modal__tier.current {
  background: #ffac4f11;
  border-left-color: #ffac4f;
}
.pr-modal__tier-dot {
  width: 12px; height: 14px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: #3a4342;
}
.pr-modal__tier-dot[data-tier="1"] { background: #b27332; }
.pr-modal__tier-dot[data-tier="2"] { background: #a8b0b8; }
.pr-modal__tier-dot[data-tier="3"] { background: #e8b820; }
.pr-modal__tier-dot[data-tier="4"] { background: #d8e4e8; }
.pr-modal__tier-dot[data-tier="5"] { background: #7de0d0; }
.pr-modal__tier-dot[data-tier="6"] { background: #ff9d5c; }
.pr-modal__tier-name { font-weight: 600; color: #e4f1ee; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.pr-modal__tier-need { color: #5d6b6b; font-weight: 600; font-size: 12px; }
.pr-modal__tier-cur { color: #ffac4f; font-weight: 700; font-size: 12px; min-width: 60px; text-align: right; }

/* ---------- Ордена (awards) ---------- */
.pr__badges--awards {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
}
.pr__award {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pr__award svg.pr__award-shape {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 4px rgba(0,0,0,.5));
}
.pr__award-glyph {
  position: relative;
  z-index: 1;
  font-size: 22px;
  line-height: 1;
  color: #0a1418;
  text-shadow: 0 0 1px #fffa;
  pointer-events: none;
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', sans-serif;
}
.pr-modal__award {
  position: relative;
  width: 90px; height: 90px;
  display: flex; align-items: center; justify-content: center;
}
.pr-modal__award svg.pr__award-shape {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
}
.pr-modal__award .pr__award-glyph {
  font-size: 40px;
  color: #0a1418;
}
.pr-modal__award-when {
  text-align: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #00b6bf33;
  font-size: 13px;
  color: #5d6b6b;
  letter-spacing: .08em;
}
