/* Progression: profile card, level badges, awards, podium ceremony, toasts. */

.lvl-badge {
  display: inline-block;
  min-width: 20px;
  padding: 0 5px;
  margin-left: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffcf5a, #ff8a3d);
  color: #2a1408;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  vertical-align: 1px;
}

/* ---------- Profile card (main menu) ---------- */
.profile-card {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(157, 123, 255, 0.12);
  border: 1px solid rgba(190, 160, 255, 0.22);
  text-align: left;
}
.pc-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pc-lvl {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: #2a1408;
  background: radial-gradient(circle at 35% 30%, #fff1a8, #ffb347 60%, #e0702a);
  box-shadow: 0 0 16px rgba(255, 179, 71, 0.45);
}
.pc-main {
  flex: 1;
  min-width: 0;
}
.pc-title {
  font-weight: 600;
  font-size: 15px;
}
.pc-bar {
  height: 6px;
  margin: 4px 0 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.pc-bar div {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #9d7bff, #ffb347);
  transition: width 0.6s ease;
}
.pc-sub {
  font-size: 11px;
  color: var(--muted);
}
.pc-ach {
  flex: none;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  border-radius: 99px;
  padding: 5px 9px;
  cursor: pointer;
}
.pc-list {
  display: none;
  margin-top: 10px;
  max-height: 210px;
  overflow-y: auto;
  gap: 4px;
}
.profile-card.open .pc-list {
  display: grid;
}
.ach {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 6px;
  align-items: center;
  font-size: 12px;
  opacity: 0.45;
}
.ach.got {
  opacity: 1;
}
.ach span {
  grid-row: span 2;
  font-size: 18px;
  text-align: center;
}
.ach i {
  font-style: normal;
  color: var(--muted);
  font-size: 11px;
}
.pc-life {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Lobby match config + HUD round label ---------- */
.match-cfg {
  display: flex;
  align-items: center;
  gap: 6px;
}
.match-cfg select {
  font: inherit;
  font-size: 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 4px 6px;
}
#matchRoundLabel {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--accent-2);
}
#matchRoundLabel:empty {
  display: none;
}

/* ---------- Awards on the scores screen ---------- */
.match-progress {
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2px 0 8px;
}
.awards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.award {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 179, 71, 0.1);
  border: 1px solid rgba(255, 179, 71, 0.25);
  animation: award-in 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.award.mine {
  background: rgba(157, 123, 255, 0.25);
  border-color: rgba(190, 160, 255, 0.6);
}
.a-emoji {
  font-size: 24px;
  flex: none;
}
.a-body {
  min-width: 0;
}
.a-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-2);
}
.a-name {
  font-size: 13px;
  font-weight: 600;
}
.a-desc {
  font-size: 11px;
  color: var(--muted);
}
@keyframes award-in {
  from {
    opacity: 0;
    transform: scale(0.6) rotate(-4deg);
  }
}
#xpLine {
  text-align: center;
  margin: 8px 0 0;
}
#xpLine:empty {
  display: none;
}
.xp-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, #9d7bff, #ff8ad8);
  font-weight: 700;
  font-size: 13px;
  animation: award-in 0.5s 0.4s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}

/* ---------- Podium ceremony ---------- */
#podiumUi {
  position: fixed;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 70px 16px 16px;
  z-index: 15;
}
.podium-head {
  text-align: center;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  animation: award-in 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.podium-kicker {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
}
.podium-mvp {
  font-family: 'Creepster', 'Fredoka', cursive;
  font-size: clamp(34px, 7vw, 64px);
  color: #ffd25a;
  line-height: 1.05;
}
.podium-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.podium-card {
  pointer-events: auto;
  width: min(560px, 100%);
  padding: 12px 14px;
  max-height: 40vh;
  overflow-y: auto;
}
.podium-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.podium-table th {
  color: var(--muted);
  font-weight: 500;
  text-align: left;
  padding: 2px 4px;
}
.podium-table td {
  padding: 3px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.podium-table .num {
  text-align: right;
}
.podium-table tr.me td {
  background: rgba(157, 123, 255, 0.2);
}
#podiumXp {
  margin-top: 8px;
}

/* ---------- Toasts ---------- */
#gpToasts {
  position: fixed;
  top: 76px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 60;
  pointer-events: none;
}
.gp-toast {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 220px;
  max-width: 300px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(24, 14, 38, 0.92);
  border: 1px solid rgba(255, 210, 90, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 210, 90, 0.25);
  animation: toast-in 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) both;
  transition: opacity 0.5s, transform 0.5s;
}
.gp-toast.lvl {
  border-color: rgba(157, 123, 255, 0.8);
}
.gp-toast.out {
  opacity: 0;
  transform: translateX(40px);
}
.t-emoji {
  font-size: 28px;
}
.t-title {
  font-weight: 700;
  font-size: 14px;
}
.t-sub {
  font-size: 12px;
  color: var(--muted);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(60px) scale(0.8);
  }
}

@media (max-width: 640px) {
  .awards {
    grid-template-columns: 1fr 1fr;
  }
  #gpToasts {
    top: auto;
    bottom: 80px;
    right: 8px;
  }
}
