.ha-hd {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: linear-gradient(155deg, #14212b 0%, #0c151d 83%);
  border-radius: 7px;
  font-family: "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
.ha-hd text { fill: #f4f7fb; }
.ha-hd .ha-muted { fill: #c4d2df; }
.ha-hd .ha-blue { fill: #9bd5ff; }
.ha-hd .ha-amber { fill: #ffb96b; }
.ha-hd .ha-gold { fill: #ffdf6b; }
.ha-hd .ha-result { fill: #b5f59a; }
.ha-hd .ha-rule { stroke: #334651; stroke-width: 1; }
.ha-hd .ha-pill-neutral { fill: #344451; }
.ha-hd .ha-pill-blue { fill: #1c405e; }
.ha-hd .ha-pill-amber { fill: #503a24; }
.ha-hd .ha-pill-gold { fill: #514b23; }
.ha-hd .ha-pill-result { fill: #294b31; }

@media (max-width: 539px) {
  .real-cards:has(.ha-hd) { grid-template-columns: minmax(0, 1fr); }
}

