/* Volatility badges + tooltip (UI-only). Uses existing theme tokens in main.css. */

.apsVolWrap{
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 10px 0 0;
}

.apsVolBadge{
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.90);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  letter-spacing: 0.25px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: transform 160ms ease, box-shadow 200ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.apsVolBadge:hover{
  transform: translateY(-1px);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.48),
    0 0 22px rgba(255, 122, 24, 0.16);
}

@media (prefers-reduced-motion: reduce){
  .apsVolBadge{ transition: none; }
  .apsVolBadge:hover{ transform: none; }
}

.apsVolBadge--sm{
  font-size: 11px;
  padding: 5px 9px;
}

/* Tier tints (keep within existing palette tokens) */
.apsVolBadge--LOW{
  border-color: rgba(0, 200, 255, 0.30);
  background: rgba(0, 200, 255, 0.10);
}

.apsVolBadge--MEDIUM{
  border-color: rgba(255, 216, 74, 0.28);
  background: rgba(255, 216, 74, 0.10);
}

.apsVolBadge--HIGH{
  border-color: rgba(255, 122, 24, 0.26);
  background: rgba(255, 122, 24, 0.12);
}

.apsVolBadge--VERYHIGH{
  border-color: rgba(255, 122, 24, 0.34);
  background: rgba(255, 122, 24, 0.16);
  box-shadow: 0 0 22px rgba(255, 122, 24, 0.18);
}

.apsVolTip{
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 20;
  min-width: 220px;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(11,11,18,0.92);
  color: rgba(255,255,255,0.82);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.45;
  box-shadow:
    0 22px 70px rgba(0,0,0,0.65),
    0 0 22px rgba(255, 122, 24, 0.10);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.apsVolWrap:hover .apsVolTip,
.apsVolWrap:focus-within .apsVolTip,
.apsVolWrap.is-open .apsVolTip{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Play wrapper detail panel helpers */
.apsPlayVol{
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.apsPlayVolRow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.apsPlayVolTier{
  font-size: 12px;
  color: rgba(255,255,255,0.74);
  font-weight: 900;
  letter-spacing: 0.15px;
}

.apsPlayVolDesc{
  font-size: 12px;
  color: rgba(255,255,255,0.62);
  font-weight: 800;
  line-height: 1.5;
}
