/* @file Shared centered countdown ribbon for solo and group combat, using the existing deadline and themes. */
.round-banner.battle-turn-ribbon {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    flex: 0 0 auto;
    min-height: 48px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--panel);
    isolation: isolate;
}
.battle-turn-ribbon .turn-time-track {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    background: transparent;
}
.battle-turn-ribbon .turn-time-track > i {
    content: '';
    display: block;
    width: 100%;
    position: absolute;
    inset: 0;
    height: 100%;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--muted) 8%, var(--panel)),
        color-mix(in srgb, var(--gold) 10%, var(--panel))
    );
}
.battle-turn-ribbon::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: color-mix(in srgb, var(--gold) 35%, var(--panel));
}
.battle-turn-spark {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: clamp(0px, calc(var(--battle-turn-remaining) * 100%), calc(100% - 2px));
    width: 2px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--gold) 55%, var(--panel));
    box-shadow: 0 0 9px color-mix(in srgb, var(--gold) 20%, transparent);
}
.battle-turn-spark::before,
.battle-turn-spark::after {
    content: '';
    position: absolute;
    left: -2px;
    width: 6px;
    height: 6px;
    transform: rotate(45deg);
    background: inherit;
}
.battle-turn-spark::before {
    top: 0;
}
.battle-turn-spark::after {
    bottom: 0;
}
.battle-turn-copy {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 5px 12px;
}
.battle-turn-number {
    white-space: nowrap;
    font:
        17px Georgia,
        serif;
}
.battle-turn-number > span {
    color: var(--gold);
    font-size: 13px;
}
.battle-turn-clock {
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
    flex-wrap: nowrap;
    min-width: max-content;
    white-space: nowrap;
    gap: 5px;
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}
.battle-hourglass {
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 28px;
    object-fit: contain;
}
.battle-turn-clock [data-turn-seconds] {
    flex: 0 0 auto;
    white-space: nowrap;
}
.battle-turn-choice {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
}
.battle-turn-choice > span {
    color: var(--muted);
    font-size: 11px;
}
.battle-turn-choice > strong {
    font-size: 14px;
    font-weight: 500;
}
.battle-turn-ribbon.is-urgent [data-turn-seconds] {
    color: #c74350;
}
@media (max-width: 480px) {
    .battle-turn-copy {
        gap: 5px;
        padding-inline: 8px;
    }
    .battle-turn-number {
        font-size: 15px;
    }
    .battle-turn-choice > strong {
        font-size: 13px;
    }
}

/* Current ranked properties in all shared action pickers. */
.battle-action-properties {
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.35;
}
