:root {
  --white: #f4f4f4;
  --orange: #e08a2a;
  --panel: rgba(8, 8, 10, 0.72);
  --line: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-ui: "Oswald", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  color: var(--white);
  font-family: var(--font-ui);
  background: #050505;
}

.nebula {
  background:
    radial-gradient(ellipse 70% 80% at 8% 50%, rgba(210, 92, 18, 0.5), transparent 58%),
    radial-gradient(ellipse 50% 70% at 92% 18%, rgba(90, 140, 200, 0.2), transparent 55%),
    #050505;
}

.label {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.frame {
  border: 2px solid var(--line);
  position: relative;
}

.frame > .tag {
  position: absolute;
  top: -28px;
  left: 0;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.18em;
}

.badge {
  --glow: rgba(224, 138, 42, 0.55);
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.62;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
  filter: grayscale(0.8) brightness(0.85);
  transition: opacity 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.badge img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  pointer-events: none;
}

.badge.on {
  opacity: 1;
  filter: none;
  border-color: #fff;
  box-shadow: 0 0 16px var(--glow);
  background: rgba(8, 8, 10, 0.35);
  animation: badge-idle 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.2s);
}

.badge.on::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -40%;
  width: 40%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: badge-shine 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.2s);
  pointer-events: none;
}

.badge.unlock {
  animation: badge-unlock 0.8s cubic-bezier(0.2, 1.35, 0.3, 1);
}

@keyframes badge-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes badge-shine {
  0% { transform: skewX(-20deg) translateX(-40%); }
  55%, 100% { transform: skewX(-20deg) translateX(420%); }
}

@keyframes badge-unlock {
  0% { transform: scale(0.45) rotate(-18deg); filter: brightness(2.4); }
  55% { transform: scale(1.2) rotate(8deg); filter: brightness(1.15); }
  100% { transform: scale(1) rotate(0deg); filter: none; }
}

.mon {
  width: 72px;
  height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}

.mon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.mon span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mon.empty { opacity: 0.35; }

.btn {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #e08a2a;
  color: #111;
  border: 0;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 14px;
}
.btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn:disabled { opacity: 0.45; cursor: default; }

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.topbar .who {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  font-size: 14px;
}
.topbar .actions { display: flex; flex-wrap: wrap; gap: 8px; }
