/**
 * Level / Ability Upgrade picker cards.
 * Shared by Dungeon Horde (#dh-layout-hud, #lus) and Xs Editor
 * (#game-runtime-viewport Shared sim + UI Editor HUD canvas).
 */

.grv-hud-level-up,
#lus {
  font-size: 16px;
  font-weight: 400;
  text-shadow: none;
  color: #ccc;
}

.grv-hud-level-up.active,
#lus.active {
  display: flex !important;
  pointer-events: auto !important;
}

.grv-hud-level-up,
#game-runtime-viewport .grv-hud-level-up {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  font-size: 16px;
  font-weight: 400;
  text-shadow: none;
}

.grv-lu-title,
#lus .lu-title,
#lus h2 {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--gold, #d4a843);
  margin-bottom: 2rem;
  text-shadow: 0 0 30px rgba(212, 168, 67, 0.5);
}

.grv-lu-options,
#lus .uo,
.uo {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 90vw;
}

.grv-lu-options .uc,
#lus .uo .uc,
.uc {
  width: 200px;
  padding: 1.5rem;
  background: var(--dark-card, rgba(15, 12, 20, 0.92));
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.grv-lu-options .uc:hover,
#lus .uo .uc:hover,
.uc:hover {
  border-color: var(--gold, #d4a843);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.15);
}

.uc .ui {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.uc .ui img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.uc .un {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--gold-light, #e8d4a8);
  margin-bottom: 0.4rem;
}

.uc .ud {
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.4;
}

.uc-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.92;
}

.uc-card-body-overlay {
  position: relative;
  z-index: 1;
  padding: 0.75rem 0.5rem 0.5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.72) 55%, rgba(0, 0, 0, 0.88) 100%);
}

.uc-card-visual {
  height: 120px;
  margin: -0.5rem -0.5rem 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}

.uc-card-glb-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.uc-card-texture {
  padding: 0;
  min-height: 220px;
}

.uc-card-glb {
  padding-top: 0.35rem;
}

.uc-card-rarity {
  font-family: 'MedievalSharp', cursive;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-transform: uppercase;
}

/* UI Editor HUD canvas: same cards, ignore widget chrome sizing. */
.hud-canvas-w.hud-canvas-level-up {
  font-size: 16px;
  font-weight: 400;
  color: #ccc;
  text-shadow: none;
  padding: 0;
  border-style: dashed;
}
