/* Ability Tooltip System */

ability-tip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  color: #7eb8f0;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  text-decoration-color: rgba(126,184,240,0.3);
  transition: color 0.15s, text-decoration-color 0.15s;
}
ability-tip:hover {
  color: #a8d4ff;
  text-decoration-color: rgba(126,184,240,0.6);
}
ability-tip strong, .article-body ability-tip strong { color: inherit !important; }
ability-tip .ability-tip-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid rgba(126,184,240,0.25);
  vertical-align: middle;
  flex-shrink: 0;
}

#ability-tooltip {
  position: absolute;
  z-index: 9999;
  width: 480px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%) translateY(6px);
  transition: opacity 0.15s, transform 0.15s;
}
#ability-tooltip.visible {
  opacity: 1;
  transform: translateY(-100%) translateY(-4px);
  pointer-events: auto;
}

.att-inner {
  background: #1a1625;
  border: 1px solid rgba(126,184,240,0.2);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.3);
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  max-height: 520px;
}

.att-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(126,184,240,0.1);
  flex-shrink: 0;
}
.att-title-block { flex: 1; }
.att-header-stats {
  text-align: right;
  flex-shrink: 0;
}
.att-header-cd {
  font-size: 12px;
  color: #7eb8f0;
  font-weight: 600;
  line-height: 1.3;
}
.att-header-cost {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  line-height: 1.3;
}

.att-scroll {
  overflow-y: auto;
  padding: 10px 14px 14px;
}

.att-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(126,184,240,0.25);
  flex-shrink: 0;
}

.att-name {
  font-size: 15px;
  font-weight: 700;
  color: #7eb8f0;
  line-height: 1.2;
}

.att-meta {
  display: flex;
  gap: 6px;
  margin-top: 3px;
}

.att-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  color: #7eb8f0;
  background: rgba(126,184,240,0.1);
  border: 1px solid rgba(126,184,240,0.2);
  border-radius: 3px;
}

.att-type, .att-dmgtype {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  line-height: 18px;
}

.att-info-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.att-cd, .att-cost {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.att-body {
  font-size: 12.5px;
  color: #b0a8c0;
  line-height: 1.6;
}

.att-desc-block {
  margin-bottom: 6px;
}

.att-desc-block .att-header {
  color: #7eb8f0;
  font-weight: 600;
}

.att-leveling {
  margin-top: 4px;
  padding: 6px 10px;
  background: rgba(126,184,240,0.05);
  border-radius: 4px;
  border-left: 2px solid rgba(126,184,240,0.2);
}

.att-stat {
  margin: 2px 0;
}

.att-stat-label {
  color: #7eb8f0;
  font-weight: 600;
  margin-right: 4px;
}

.att-scaling {
  color: #4ade80;
  font-weight: 500;
}

.att-sep { height: 8px; }

@media (max-width: 768px) {
  #ability-tooltip { width: 340px; }
  .att-inner { padding: 10px; max-height: 420px; }
  .att-body { font-size: 12px; }
}
