/* [2026-11-21 새 기능] 훈장 아이콘 모양 (공용, 그리는 곳은 public/js/badge-icon.js). 시안 "훈장 아이콘 (부품)"과 같은 값
   클래스 이름이 qb-medal인 이유: ui.css에 이미 작은 이름표 .qb-badge가 있어서 (게임방 문제 수 표시 등) 겹치지 않게 */
@keyframes qbMedalTwinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }

.qb-medal { position: relative; display: inline-block; flex: none; }
.qb-medal__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(43, 31, 74, .25)); }
.qb-medal__glyph { position: absolute; left: 50%; transform: translate(-50%, -50%); display: flex; color: #fff; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.qb-medal__spark { position: absolute; right: 8%; top: 6%; width: 16%; height: 16%; animation: qbMedalTwinkle 1.8s ease-in-out infinite; }

/* [2026-11-21] 한정판 임시 분홍 꽃 모양(.qb-medal__flower) 삭제 — 사용자가 만든 한정판 메달 이미지(limited-*.webp)로 교체 */

/* 못 얻은 훈장: 등급 색은 남기고 연하게 · 흐리게 + 자물쇠 */
.qb-medal.is-locked .qb-medal__img { filter: saturate(.55) brightness(1.08) opacity(.5); }
.qb-medal.is-locked .qb-medal__glyph { color: rgba(255, 255, 255, .85); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)); }
.qb-medal__lock {
  position: absolute; right: 4%; top: 2%;
  width: 26%; height: 26%; min-width: 18px; min-height: 18px;
  border-radius: 50%; background: #4f3f78; border: 2px solid #fff; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(43, 31, 74, .35);
}
.qb-medal__lock svg { width: 55%; height: 55%; }

@media (prefers-reduced-motion: reduce) { .qb-medal__spark { animation: none !important; } }
