/* Page-specific styling layered on top of ../style.css */
body{
  min-height: 100vh;
}
.dbdActions{
  margin-top: 12px;
}
.container{
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
}

.footer{
  margin-top: auto;
}

.dbdHeader{
  margin-top: 8px;
  padding: 10px 2px 2px;
}

.dbdTitle{
  margin: 0 0 6px;
  font-size: 30px;
  letter-spacing: .4px;
}

.dbdSub{
  margin: 0;
  color: rgba(255,255,255,.70);
  font-size: 14px;
}

.dbdGrid{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.charCard{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12, 14, 22, .45);
  box-shadow: 0 16px 50px rgba(0,0,0,.25);
  transition: transform .14s ease, border-color .14s ease, filter .14s ease;
  position: relative;
  cursor: default;
}
.prestigeCrest{
  position: absolute;
  top: 12px;
  left: 12px;
  width: 64px;
  height: 64px;
  z-index: 2;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.55));
  pointer-events: none;
}
.charCard:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.18);
  filter: brightness(1.03);
}

.charImgWrap{
  width: 100%;
  height: 420px;
  background: rgba(0,0,0,.28);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
  position: relative;
}

.charImg{
  width: 100%;
  height: 100%;
  object-fit: contain;     
  object-position: center;
  display: block;
}

.loadout{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items:center;
}
.loadouts{
  margin-top: 12px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.loadoutBlock{
  display:flex;
  flex-direction: column;
  gap: 8px;
}

.loadoutTitle{
  font-size: 12px;
  color: rgba(255,255,255,.72);
  font-weight: 750;
  letter-spacing: .2px;
}
/* loadout name next to title */
.loadoutName{
  margin-left: 8px;
  color: rgba(255,255,255,.60);
  font-weight: 650;
  font-size: 12px;
}
.loadoutName:empty{ display:none; }

/* perk tooltip */
.slot{
  position: relative; /* needed for tooltip */
}

.slot[data-tip]:hover::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;

  padding: 7px 9px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,10,14,.92);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .2px;
  box-shadow: 0 16px 44px rgba(0,0,0,.55);
  z-index: 50;
}

.slot[data-tip]:hover::before{
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: rgba(10,10,14,.92);
  border-left: 1px solid rgba(255,255,255,.14);
  border-top: 1px solid rgba(255,255,255,.14);
  transform: translateX(-50%) rotate(45deg);
  z-index: 49;
}

/* don't show tooltip on empty slots */
.slot.is-empty:hover::after,
.slot.is-empty:hover::before{
  display:none;
}

.pillText{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  line-height: 1;
}

.pillText:empty{
  display:none;
}
.slot{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  display:grid;
  place-items:center;
  overflow:hidden;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.slot img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.slot:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}


@media (max-width: 980px){
  .charImgWrap{ height: 55vh; }
}
/* ===== Prestige badge (same idea as sic4rio page, but simplified) ===== */
.prestigeBadge{
  position:absolute;
  bottom: 14px;
  left: 14px;
  width: 68px;
  height: 68px;
  z-index: 5;
  pointer-events: none;
}

.prestigeFill,
.prestigeBorder{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}

.prestigeNum{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .3px;
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
}

/* hide perk/item slots if empty */
.slot.is-empty{
  display:none;
}
.charMeta{
  padding: 12px 14px 14px;
}

.charName{
  font-weight: 850;
  letter-spacing: .3px;
  margin-bottom: 6px;
}

.charTag{
  font-size: 12px;
  color: rgba(255,255,255,.70);
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.footerLink{
  color: rgba(255,255,255,.70);
}
.footerLink:hover{
  color: rgba(255,255,255,.92);
}

@media (max-width: 980px){
  .dbdGrid{
    grid-template-columns: 1fr;
  }
}
.loadoutBlock.is-empty{
  display: none;
}
.topbarChallengeBtn{
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 980px){
  .topbar{
    gap: 10px;
    flex-wrap: wrap;
  }

  .topbarChallengeBtn{
    margin-left: 0;
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}