/* ── Bike Anatomy widget ──────────────────────────────────────────────── */
:root {
  --ba-ink:      #0B0C0E;
  --ba-ink-2:    #16191F;
  --ba-ink-3:    #20242C;
  --ba-line:     rgba(255,255,255,.09);
  --ba-line-2:   rgba(255,255,255,.16);
  --ba-fg:       #F4F5F2;
  --ba-fg-2:     #A7ADB5;
  --ba-volt:     #CCFF02;
  --ba-volt-dim: rgba(204,255,2,.18);
}

/* layout */
.anatomy {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 1024px) {
  .anatomy { grid-template-columns: 1fr; }
}

/* stage */
.an-stage {
  position: relative;
  padding: 24px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--ba-line, rgba(255,255,255,.09));
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(204,255,2,.07), transparent 60%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    var(--ba-ink-2, #16191F);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}
.an-img-wrap {
  position: relative;
  display: block;
  line-height: 0;
}
.an-img {
  display: block;
  width: 100%;
  height: auto;
}


/* hotspot buttons */
.hot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--ba-volt, #CCFF02);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease;
  z-index: 2;
}
.hot:hover,
.hot.is-active {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 0 6px var(--ba-volt-dim, rgba(204,255,2,.18));
}

/* pulse ring */
.pulse {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--ba-volt, #CCFF02);
  animation: vba-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes vba-pulse {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* right panel */
.an-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* detail card */
.an-detail {
  background: var(--ba-ink-2, #16191F);
  border: 1px solid var(--ba-line, rgba(255,255,255,.09));
  border-radius: 12px;
  padding: 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity .2s;
}
.an-detail.is-empty {
  opacity: .35;
}
.an-detail-n {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ba-volt, #CCFF02);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.an-detail-title {
  font-family: var(--ff-display, 'Archivo', sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ba-fg, #F4F5F2);
  margin-bottom: 6px;
}
.an-detail-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}
.an-detail-val {
  font-size: 32px;
  font-weight: 700;
  color: var(--ba-volt, #CCFF02);
  line-height: 1;
}
.an-detail-unit {
  font-size: 13px;
  color: var(--ba-fg-2, #A7ADB5);
}
.an-detail-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ba-fg-2, #A7ADB5);
}

/* list */
.an-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.an-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid var(--ba-line, rgba(255,255,255,.09));
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background .15s, border-color .15s;
  width: 100%;
  color: var(--ba-fg, #F4F5F2);
}
.an-row:hover,
.an-row.is-active {
  background: var(--ba-ink-3, #20242C);
  border-color: var(--ba-line-2, rgba(255,255,255,.16));
}
.an-n {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ba-volt, #CCFF02);
  min-width: 24px;
}
.an-t {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
}
.an-v {
  font-size: 13px;
  color: var(--ba-fg-2, #A7ADB5);
}
