/* tooltip.css – Metin2-ish */

.itip{
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .08s ease, transform .08s ease;

  /* Metin2 vibe */
  max-width: 340px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.25;

  background: rgba(8, 8, 10, .94);
  border: 1px solid rgba(255, 214, 138, .28); /* warm gold */
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
  color: #f1f1f1;
}

.itip.show{
  opacity: 1;
  transform: translateY(0);
}

/* Title (gold) */
.itip .t{
  text-align: center;
  font-weight: 700;
  color: #ffd68a;
  text-shadow: 0 1px 0 rgba(0,0,0,.8);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 214, 138, .18);
}

/* Main area */
.itip .m{
  display: grid;
  gap: 3px;
  text-align: center;
  color: rgba(245,245,245,.92);
}

/* “sections” like ingame separators */
.itip .sec{
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 214, 138, .14);
}

/* Stat lines */
.itip .line{
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: baseline;
}

.itip .label{
  color: rgba(255,255,255,.70);
}

.itip .val{
  color: rgba(255,255,255,.95);
  font-weight: 600;
}

/* Bonuses: vertical, one per row */
.itip .bon{
  display: grid;
  gap: 3px;
  justify-content: center;
  text-align: center;
}

.itip .bon .b{
  white-space: nowrap;
  color: #b7ff8a; /* Metin2 bonus green */
  text-shadow: 0 1px 0 rgba(0,0,0,.7);
  font-weight: 600;
}

.itip .bon .b.rare{
  color: #7fd0ff; /* blue-ish */
}

.itip .bon .b.bad{
  color: #ff7b7b; /* red */
}

.itip .bon .b .n{
  color: inherit; /* same line color */
  font-weight: 600;
}

.itip .bon .b .v{
  color: inherit;
  font-weight: 700;
}

/* Sockets */
.itip .sockets{
  display: grid;
  gap: 4px;
  justify-content: center;
}

.itip .sock{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.85);
}

.itip .sock img{
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
  opacity: .95;
}

/* Optional warn */
.itip .warn{
  margin-top: 6px;
  text-align: center;
  color: #ffd38a;
  font-size: 12px;
  opacity: .95;
}
