/* Live chain (Poké Radar, chain fishing, DexNav) in the Hunt Deck (js/features/hunt-deck/chain.js): the chain length, how often it
   broke, and the "Chain broke" button; also the button in the pop-out window. */
.dr-chain {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 8px 8px 8px 14px; text-align: left;
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2);
}
.dr-chain[hidden] { display: none; }
.dr-chain-val { display: flex; flex-direction: column; gap: 3px; flex: none; }
.dr-chain-val span { font: 700 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dr-chain-val b { font: 800 24px/1 var(--font); letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.dr-chain-note { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); }
.dr-chain-break {
  flex: none; min-height: 42px; padding: 0 14px; border-radius: 12px; cursor: pointer; font-weight: 750; font-size: 13px;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text); transition: color .2s, border-color .2s;
}
.dr-chain-break:disabled { opacity: .45; cursor: default; }
.dr-chain-reset {
  flex: none; min-height: 42px; padding: 0 6px; border: 0; background: none; cursor: pointer; font-size: 12.5px; font-weight: 650;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.dr-chain-reset:disabled { visibility: hidden; }
@media (hover: hover) { .dr-chain-reset:not(:disabled):hover { color: var(--text); } }
@media (hover: hover) { .dr-chain-break:not(:disabled):hover { color: #ff5f7a; border-color: #ff5f7a; } }
@media (max-height: 640px) and (min-width: 561px) { .dr-chain { flex-basis: 100%; } }

/* Pop-out: a small Chain broke button left of −1; +1 gets a little narrower to make room. */
.pip-break {
  width: 52px; max-height: 60px; padding: 0; border-radius: 14px; cursor: pointer; font-weight: 750; font-size: 10.5px; line-height: 1.15;
  border: 1px solid var(--border-2); background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--text);
}
.pip-break[hidden] { display: none; }
.pip-break:disabled { opacity: .45; cursor: default; }
.pip-break:not(:disabled):active { transform: scale(.96); border-color: #ff5f7a; color: #ff5f7a; }
.pip-body.has-chain .pip-plus { width: 84px; }
