/**
 * WDHC Achievement Badges v4 · Shield medals
 * Premium metallic badges with tier ribbons and glow
 */

.ach-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  position: relative;
}

.ach-badge-shield {
  position: relative;
  width: 96px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ach-badge-face {
  width: 88px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  clip-path: polygon(50% 0%, 94% 14%, 100% 48%, 82% 92%, 50% 100%, 18% 92%, 0% 48%, 6% 14%);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.55),
    0 0 28px var(--ach-glow, rgba(212, 175, 55, 0.2));
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease;
}

.ach-badge-face::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: inherit;
  background: linear-gradient(155deg, rgba(255,255,255,0.42) 0%, transparent 38%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  z-index: 2;
}

.ach-badge-face::after {
  content: '';
  position: absolute;
  inset: 4px;
  clip-path: polygon(50% 2%, 90% 16%, 95% 48%, 80% 88%, 50% 96%, 20% 88%, 5% 48%, 10% 16%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
  z-index: 3;
}

.ach-badge-shine {
  position: absolute;
  inset: 0;
  z-index: 4;
  clip-path: polygon(50% 0%, 94% 14%, 100% 48%, 82% 92%, 50% 100%, 18% 92%, 0% 48%, 6% 14%);
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 48%,
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.ach-badge-icon {
  width: 2.1rem;
  height: 2.1rem;
  position: relative;
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.ach-badge-tier {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ach-tier-text, #ccc);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tier metallics */
.ach-badge--bronze { --ach-glow: rgba(205, 127, 50, 0.35); --ach-tier-text: #e8c4a0; }
.ach-badge--bronze .ach-badge-face {
  background: radial-gradient(ellipse 80% 60% at 30% 20%, #f0c090, #cd7f32 42%, #6b3a12 78%, #3d1f08);
}
.ach-badge--bronze .ach-badge-icon { color: #fff4e8; }
.ach-badge--bronze .ach-badge-tier { background: rgba(205, 127, 50, 0.18); border-color: rgba(205, 127, 50, 0.4); }

.ach-badge--silver { --ach-glow: rgba(200, 210, 230, 0.3); --ach-tier-text: #e8ecf4; }
.ach-badge--silver .ach-badge-face {
  background: radial-gradient(ellipse 80% 60% at 30% 20%, #f4f6fa, #b8c0cc 42%, #6a7280 78%, #3a4048);
}
.ach-badge--silver .ach-badge-icon { color: #fff; }
.ach-badge--silver .ach-badge-tier { background: rgba(180, 190, 210, 0.15); border-color: rgba(180, 190, 210, 0.35); }

.ach-badge--gold { --ach-glow: rgba(212, 175, 55, 0.45); --ach-tier-text: #f5e6a8; }
.ach-badge--gold .ach-badge-face {
  background: radial-gradient(ellipse 80% 60% at 30% 20%, #fff0b0, #D4AF37 40%, #9a7b20 75%, #5c4510);
}
.ach-badge--gold .ach-badge-icon { color: #1a1400; }
.ach-badge--gold .ach-badge-tier { background: rgba(212, 175, 55, 0.2); border-color: rgba(212, 175, 55, 0.45); }

.ach-badge--platinum { --ach-glow: rgba(180, 200, 255, 0.35); --ach-tier-text: #d8e4ff; }
.ach-badge--platinum .ach-badge-face {
  background: radial-gradient(ellipse 80% 60% at 30% 20%, #f8faff, #c0cce8 40%, #7080b8 75%, #3a4870);
}
.ach-badge--platinum .ach-badge-icon { color: #1a2040; }
.ach-badge--platinum .ach-badge-tier { background: rgba(160, 180, 230, 0.18); border-color: rgba(160, 180, 230, 0.4); }

.ach-badge--freak { --ach-glow: rgba(160, 80, 255, 0.4); --ach-tier-text: #e8d0ff; }
.ach-badge--freak .ach-badge-face {
  background: radial-gradient(ellipse 80% 60% at 30% 20%, #e0b8ff, #7b2cbf 42%, #4a1580 78%, #2a0848);
}
.ach-badge--freak .ach-badge-icon { color: #f8f0ff; }
.ach-badge--freak .ach-badge-tier { background: rgba(123, 44, 191, 0.22); border-color: rgba(160, 80, 255, 0.45); }

.ach-badge--legend { --ach-glow: rgba(212, 175, 55, 0.5); --ach-tier-text: #ffe8a0; }
.ach-badge--legend .ach-badge-face {
  background: radial-gradient(ellipse 80% 60% at 30% 20%, #ffe890, #D4AF37 38%, #8a702a 72%, #4a3810);
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.35), 0 0 40px rgba(212, 175, 55, 0.2);
}
.ach-badge--legend .ach-badge-icon { color: #1a1400; }

.ach-badge--elite { --ach-glow: rgba(220, 220, 230, 0.3); --ach-tier-text: #f0f0f5; }
.ach-badge--elite .ach-badge-face {
  background: radial-gradient(ellipse 80% 60% at 30% 20%, #f8f8fc, #c0c0c8 42%, #707078 78%, #383840);
}
.ach-badge--elite .ach-badge-icon { color: #111; }

.ach-badge--expert { --ach-glow: rgba(220, 60, 60, 0.35); --ach-tier-text: #ffc8c8; }
.ach-badge--expert .ach-badge-face {
  background: radial-gradient(ellipse 80% 60% at 30% 20%, #ffb8b8, #c03030 42%, #801818 78%, #480808);
}
.ach-badge--expert .ach-badge-icon { color: #fff; }

.ach-badge--contender { --ach-glow: rgba(60, 180, 120, 0.35); --ach-tier-text: #b8f0d0; }
.ach-badge--contender .ach-badge-face {
  background: radial-gradient(ellipse 80% 60% at 30% 20%, #90e8b8, #2d8659 42%, #1a5038 78%, #0c2818);
}
.ach-badge--contender .ach-badge-icon { color: #e8fff0; }

.ach-badge--verified { --ach-glow: rgba(34, 197, 94, 0.4); --ach-tier-text: #b8f8d0; }
.ach-badge--verified .ach-badge-face {
  background: radial-gradient(ellipse 80% 60% at 30% 20%, #a0f0c0, #22c55e 42%, #15803d 78%, #0a4020);
}
.ach-badge--verified .ach-badge-icon { color: #ecfdf5; }

.ach-badge--champion { --ach-glow: rgba(205, 127, 50, 0.45); }
.ach-badge--champion .ach-badge-face {
  background: radial-gradient(ellipse 80% 60% at 30% 20%, #ffd89a, #cd7f32 40%, #8b4513 75%, #4a2408);
  box-shadow: 0 12px 36px rgba(205, 127, 50, 0.35);
}

/* Locked state */
.ach-badge.locked .ach-badge-face {
  filter: grayscale(0.75) brightness(0.5) contrast(0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.ach-badge.locked .ach-badge-tier {
  opacity: 0.5;
}
.ach-badge.locked::after {
  content: '';
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  z-index: 6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hover — unlocked only */
.achievement-card.unlocked:hover .ach-badge-face,
.ach-badge:not(.locked):hover .ach-badge-face {
  transform: translateY(-4px) scale(1.05);
}
.achievement-card.unlocked:hover .ach-badge-shine,
.ach-badge:not(.locked):hover .ach-badge-shine {
  opacity: 1;
  animation: achShineSweep 0.8s ease;
}

@keyframes achShineSweep {
  0% { transform: translateX(-120%); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* Champion medal cards */
.achievement-card--medal .ach-badge-face {
  width: auto;
  height: auto;
  clip-path: none;
  background: transparent;
  box-shadow: none;
}
.achievement-card--medal .ach-badge-face::before,
.achievement-card--medal .ach-badge-face::after { display: none; }
.achievement-card--medal .ach-badge-shield { width: auto; height: auto; }
.achievement-card--medal .ach-badge-shine { display: none; }

/* Counter + filters */
.achievement-counter-ring {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: #b8b8b8;
  letter-spacing: 0.3px;
  margin-top: 6px;
}

.achievement-counter-ring strong {
  color: #D4AF37;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.05rem;
}

.achievement-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.achievement-filter-btn {
  padding: 9px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #b0b0b0;
  font-family: 'Oswald', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.achievement-filter-btn:hover {
  border-color: rgba(212, 175, 55, 0.4);
  color: #e0e0e0;
}

.achievement-filter-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.5);
  color: #D4AF37;
}

.achievement-card[data-hidden="true"] {
  display: none;
}

/* === Imagine-generated art badges v5 === */
.ach-art-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  position: relative;
}

.ach-art-frame {
  position: relative;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.6),
    0 0 40px var(--ach-glow, rgba(212, 175, 55, 0.22));
  border: 3px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease;
}

.ach-art-ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.35);
  pointer-events: none;
  z-index: 3;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08);
}

.ach-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0a0a0a;
}

.ach-art-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 40%, rgba(255,255,255,0.22) 50%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ach-art-badge--bronze { --ach-glow: rgba(205, 127, 50, 0.35); }
.ach-art-badge--bronze .ach-art-frame { border-color: rgba(205, 127, 50, 0.45); }

.ach-art-badge--silver { --ach-glow: rgba(200, 210, 230, 0.3); }
.ach-art-badge--silver .ach-art-frame { border-color: rgba(190, 200, 220, 0.4); }

.ach-art-badge--gold { --ach-glow: rgba(212, 175, 55, 0.45); }
.ach-art-badge--gold .ach-art-frame { border-color: rgba(212, 175, 55, 0.5); }

.ach-art-badge--legend { --ach-glow: rgba(212, 175, 55, 0.5); }
.ach-art-badge--legend .ach-art-frame {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 14px 40px rgba(212, 175, 55, 0.25);
}

.ach-art-badge--expert { --ach-glow: rgba(220, 60, 60, 0.35); }
.ach-art-badge--expert .ach-art-frame { border-color: rgba(220, 60, 60, 0.45); }

.ach-art-badge--contender { --ach-glow: rgba(60, 180, 120, 0.35); }
.ach-art-badge--contender .ach-art-frame { border-color: rgba(60, 180, 120, 0.45); }

.ach-art-badge--verified { --ach-glow: rgba(34, 197, 94, 0.4); }
.ach-art-badge--verified .ach-art-frame { border-color: rgba(34, 197, 94, 0.5); }

.ach-art-badge--bronze .ach-badge-tier { background: rgba(205, 127, 50, 0.18); border-color: rgba(205, 127, 50, 0.4); }
.ach-art-badge--silver .ach-badge-tier { background: rgba(180, 190, 210, 0.15); border-color: rgba(180, 190, 210, 0.35); }
.ach-art-badge--gold .ach-badge-tier { background: rgba(212, 175, 55, 0.2); border-color: rgba(212, 175, 55, 0.45); }
.ach-art-badge--legend .ach-badge-tier { background: rgba(212, 175, 55, 0.22); border-color: rgba(212, 175, 55, 0.5); }
.ach-art-badge--expert .ach-badge-tier { background: rgba(220, 60, 60, 0.18); border-color: rgba(220, 60, 60, 0.4); }
.ach-art-badge--contender .ach-badge-tier { background: rgba(60, 180, 120, 0.18); border-color: rgba(60, 180, 120, 0.4); }
.ach-art-badge--verified .ach-badge-tier { background: rgba(34, 197, 94, 0.18); border-color: rgba(34, 197, 94, 0.45); }

.ach-art-badge.locked .ach-badge-tier {
  opacity: 0.5;
}

.ach-art-badge.locked .ach-art-frame {
  filter: grayscale(0.7) brightness(0.45) contrast(0.9);
  opacity: 0.65;
}

.ach-art-badge.locked::after {
  content: '';
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  z-index: 6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0110 0v4'/%3E%3C/svg%3E");
  background-size: 16px;
  background-position: center;
  background-repeat: no-repeat;
}

.achievement-card.unlocked:hover .ach-art-frame {
  transform: translateY(-5px) scale(1.04);
}

.achievement-card.unlocked:hover .ach-art-shine {
  opacity: 1;
  animation: achShineSweep 0.8s ease;
}

.achievement-icon .ach-art-badge {
  margin: 0 auto;
}

.achievement-icon:has(.ach-art-badge) {
  min-height: 180px;
}

.ach-art-badge--earned .ach-art-frame {
  animation: achArtReveal 0.75s cubic-bezier(0.34, 1.4, 0.64, 1) var(--ach-stagger, 0s) both;
}

@keyframes achArtReveal {
  0% { transform: scale(0.8); opacity: 0.5; }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.achievement-card.unlocked:hover .ach-art-frame {
  transform: translateY(-6px) scale(1.05);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.55),
    0 0 48px var(--ach-glow, rgba(212, 175, 55, 0.35));
}

/* === SVG Medallion badges v6 (designer-grade) === */
.ach-medallion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
}

.ach-medallion-body {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.55));
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), filter 0.3s ease;
}

.ach-medallion-svg {
  display: block;
}

.ach-medallion-shine {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: linear-gradient(125deg, transparent 42%, rgba(255,255,255,0.35) 50%, transparent 58%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ach-medallion-ribbon {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ach-tier-text, #ccc);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.ach-medallion--bronze .ach-medallion-ribbon { --ach-tier-text: #e8c4a0; background: rgba(205,127,50,0.18); border-color: rgba(205,127,50,0.4); }
.ach-medallion--silver .ach-medallion-ribbon { --ach-tier-text: #e8ecf4; background: rgba(180,190,210,0.15); border-color: rgba(180,190,210,0.35); }
.ach-medallion--gold .ach-medallion-ribbon { --ach-tier-text: #f5e6a8; background: rgba(212,175,55,0.2); border-color: rgba(212,175,55,0.45); }
.ach-medallion--platinum .ach-medallion-ribbon { --ach-tier-text: #d8e4ff; background: rgba(160,180,230,0.18); border-color: rgba(160,180,230,0.4); }
.ach-medallion--legend .ach-medallion-ribbon { --ach-tier-text: #ffe8a0; background: rgba(212,175,55,0.22); border-color: rgba(212,175,55,0.5); }
.ach-medallion--expert .ach-medallion-ribbon { --ach-tier-text: #ffc8c8; background: rgba(220,60,60,0.18); border-color: rgba(220,60,60,0.4); }
.ach-medallion--contender .ach-medallion-ribbon { --ach-tier-text: #b8f0d0; background: rgba(60,180,120,0.18); border-color: rgba(60,180,120,0.4); }
.ach-medallion--verified .ach-medallion-ribbon { --ach-tier-text: #b8f8d0; background: rgba(34,197,94,0.18); border-color: rgba(34,197,94,0.45); }

.ach-medallion.locked .ach-medallion-body {
  filter: grayscale(0.65) brightness(0.55) drop-shadow(0 8px 20px rgba(0,0,0,0.4));
}

.ach-medallion.locked .ach-medallion-ribbon {
  opacity: 0.5;
}

.achievement-card.unlocked:hover .ach-medallion:not(.locked) .ach-medallion-body {
  transform: translateY(-6px) scale(1.06);
  filter: drop-shadow(0 20px 40px var(--ach-glow, rgba(212,175,55,0.35)));
}

.achievement-card.unlocked:hover .ach-medallion-shine {
  opacity: 1;
  animation: achShineSweep 0.85s ease;
}

.achievement-icon:has(.ach-medallion) {
  min-height: 168px;
}

.achievement-filters-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.achievement-card .achievement-category-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.achievement-card.unlocked .achievement-category-tag {
  color: #a8a8a8;
  border-color: rgba(212,175,55,0.2);
}

.ach-medallion-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ach-glow, rgba(212,175,55,0.35)) 0%, transparent 68%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.ach-medallion--earned .ach-medallion-glow {
  animation: achUnlockGlow 1.2s ease var(--ach-stagger, 0s) both;
}

.ach-medallion--earned .ach-medallion-body {
  animation: achUnlockPop 0.7s cubic-bezier(0.34, 1.5, 0.64, 1) var(--ach-stagger, 0s) both;
}

.ach-medallion--earned .ach-medallion-svg {
  animation: achUnlockSpin 0.9s ease var(--ach-stagger, 0s) both;
}

@keyframes achUnlockPop {
  0% { transform: scale(0.72); opacity: 0.4; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes achUnlockGlow {
  0% { opacity: 0; transform: scale(0.8); }
  40% { opacity: 1; }
  100% { opacity: 0.35; transform: scale(1.15); }
}

@keyframes achUnlockSpin {
  0% { transform: rotate(-12deg); }
  100% { transform: rotate(0deg); }
}

.ach-medallion-body {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ach-medallion--earned .ach-medallion-body,
  .ach-medallion--earned .ach-medallion-glow,
  .ach-medallion--earned .ach-medallion-svg {
    animation: none;
  }
}

/* === v7 Premium medallion + achievement cards === */
.achievement-review-banner {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: #e8d9a8;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 520px;
}

.achievement-review-banner a {
  color: #D4AF37;
  font-weight: 600;
  text-decoration: none;
}

.achievement-review-banner a:hover {
  text-decoration: underline;
}

.achievements-grid .achievement-card {
  background: linear-gradient(165deg, rgba(255,255,255,0.04) 0%, rgba(8,8,10,0.92) 55%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 18px 22px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
}

.achievements-grid .achievement-card.unlocked {
  border-color: rgba(212, 175, 55, 0.38);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 32px rgba(212, 175, 55, 0.08);
}

.achievements-grid .achievement-card.unlocked::before {
  background: radial-gradient(circle at 50% 0%, rgba(212,175,55,0.14) 0%, transparent 62%);
}

.achievements-grid .achievement-card.locked {
  opacity: 0.55;
}

.achievements-grid .achievement-icon {
  min-height: 188px;
  margin-bottom: 14px;
}

.ach-medallion {
  gap: 16px;
}

.ach-medallion-pedestal {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.55) 0%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.ach-medallion-body {
  position: relative;
  width: 168px;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ach-medallion-svg {
  display: block;
  position: relative;
  z-index: 2;
}

.ach-medallion-ribbon {
  padding: 6px 18px;
  border-radius: 6px;
  font-size: 0.74rem;
  letter-spacing: 1.8px;
  color: var(--ach-tier-text, #ccc);
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 6px 16px rgba(0,0,0,0.28);
}

.achievement-card .achievement-name {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.achievement-card .achievement-desc {
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}

.achievement-counter-ring strong {
  font-family: 'Oswald', sans-serif;
}