/* ============================================================================
   awards.css — витрина «Элита коллегии: высшие награды».

   Десять наград, повторяющих официальный макет: тёмные панели с золотой
   окантовкой, лавровый венок вокруг символа, название капителью, описание и
   цветовая метка сложности. Легендарная награда выделена фиолетовым свечением.
   ========================================================================== */

.elite-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 22px 22px 24px;
  border: 1px solid var(--gold-line-soft);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(620px 240px at 12% 0%, rgba(230, 182, 76, .1), transparent 62%),
    radial-gradient(560px 260px at 92% 100%, rgba(179, 157, 240, .1), transparent 64%),
    linear-gradient(168deg, #0e1e33 0%, #0a1727 55%, #081320 100%);
  box-shadow: var(--shadow-card);
}

/* Лёгкая сетка как на макете */
.elite-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(125, 163, 208, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 163, 208, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 120% at 50% 0%, #000, transparent 82%);
}

.elite-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.elite-heading {
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-shadow: 0 0 26px rgba(230, 182, 76, .35);
}

.elite-subheading {
  margin: 6px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 11.5px;
}

.elite-score {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: rgba(230, 182, 76, .08);
  white-space: nowrap;
}

.elite-score strong {
  color: var(--gold-bright);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.elite-score span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.elite-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.elite-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 16px 12px 14px;
  border: 1px solid rgba(120, 160, 205, .2);
  border-radius: 14px;
  background: linear-gradient(172deg, rgba(23, 41, 64, .92) 0%, rgba(11, 21, 34, .96) 60%, rgba(8, 16, 27, .98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 14px 30px -24px #000;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.elite-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 182, 76, .4), transparent);
  opacity: .5;
}

.elite-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 22px 44px -26px rgba(230, 182, 76, .55);
}

/* Полученная награда */
.elite-card.is-earned {
  border-color: var(--gold-line);
  background: linear-gradient(172deg, rgba(46, 44, 26, .95) 0%, rgba(18, 25, 32, .97) 55%, rgba(9, 16, 26, .98) 100%);
}
.elite-card.is-earned::after {
  content: "ПОЛУЧЕНО";
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  border: 1px solid rgba(247, 210, 131, .55);
  border-radius: 999px;
  color: #140f04;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.5;
  box-shadow: 0 4px 12px -6px rgba(230, 182, 76, .9);
}

/* Легендарная награда */
.elite-card.is-legendary {
  border-color: rgba(179, 157, 240, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 34px -16px rgba(179, 157, 240, .75);
}
.elite-card.is-legendary::before {
  background: linear-gradient(90deg, transparent, rgba(179, 157, 240, .6), transparent);
  opacity: 1;
}

.elite-medallion {
  position: relative;
  width: 82px;
  height: 82px;
  margin: 2px 0 10px;
  flex: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55));
}

.elite-laurel,
.elite-glyph {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* Лавровый венок: золотой градиент */
.elite-laurel {
  color: #d6a43f;
  stroke-width: 1.4;
}

.elite-glyph {
  display: grid;
  place-items: center;
  color: var(--gold-bright);
}

.elite-glyph .svg-icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px rgba(230, 182, 76, .35));
}

.elite-glyph-text {
  color: var(--gold-bright);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 12px rgba(230, 182, 76, .4);
}

.elite-card.is-legendary .elite-laurel { color: #b39df0; }
.elite-card.is-legendary .elite-glyph { color: #d8c9ff; }
.elite-card.is-legendary .elite-glyph .svg-icon { filter: drop-shadow(0 0 8px rgba(179, 157, 240, .5)); }

.elite-title {
  margin: 0;
  color: var(--text);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.elite-desc {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  min-height: 45px;
}

.elite-tier {
  margin-top: 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

.elite-tier.is-easy { color: var(--green); }
.elite-tier.is-medium { color: var(--gold); }
.elite-tier.is-hard { color: var(--orange); }
.elite-tier.is-very-hard { color: var(--red); }
.elite-tier.is-legendary { color: var(--violet); }

.elite-note {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  color: var(--muted-dim);
  font-size: 10.5px;
}

@media (max-width: 1180px) {
  .elite-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .elite-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .elite-panel { padding: 16px 14px 18px; }
  .elite-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .elite-medallion { width: 66px; height: 66px; }
  .elite-desc { min-height: 0; }
}
@media (max-width: 420px) {
  .elite-grid { grid-template-columns: 1fr; }
}
