/* Card demos (demos.js): the goal bar on the duel screen, hint rings, and the result tip. */
.dm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 2px 6px;
  border: 6px solid transparent; border-image: var(--win-dark) 3 fill / 6px / 0 stretch; }
.dm-goal { flex: 1 1 190px; min-width: 0; display: grid; gap: 1px; }
.dm-goal small { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-goal b { font-weight: 400; font-size: 15px; line-height: 1.3; color: var(--gold); }
.dm-bar.watch .dm-goal b, .dm-bar.hinting .dm-goal b { color: var(--teal); }
.dm-btns { flex: 0 0 auto; margin-left: auto; display: flex; gap: 4px; }
.dm-btns .icon-btn { height: 30px; min-width: 30px; padding: 0 7px; font-size: 12px; white-space: nowrap; }
#duel:has(.dm-bar) [data-act="menu"] { display: none; }

.dm-ring { z-index: 13; border: 3px solid var(--gold); animation: dm-blink .8s steps(2) infinite; }
.dm-ring.tgt { border-color: var(--red, #ff5a6a); }
@keyframes dm-blink { 50% { opacity: .35; } }

.lore + .dm-open { font-size: 20px; padding: 10px 14px; }
.dm-result .dm-tip { text-align: left; font-size: 14px; line-height: 1.6; color: var(--paper); background: var(--ink-3); padding: 10px 12px; }
.dm-result .dm-tip b { display: block; font-weight: 400; color: var(--gold); margin-bottom: 2px; }

@media (orientation: landscape) and (max-height: 560px) {
  #duel > .dm-bar { grid-area: 1 / 1; align-self: end; }
}
