/* KOTH „Bicie Bastiona” (paczka K2): wiersz w bazie i ekran #/koth. Terminal (.br), pasek akcji (.bab), mnożniki i grafika Bastiona (.boss-art)
   są w ../boss.css; wspólne klocki (.tabs, .tab-btn, .card, .notice) w ../gra.css. Kolory wyłącznie ze zmiennych :root, bez przewijania poziomego. */

/* ---- wiersz w bazie ---- */
.bs-row--koth { border-left: 3px solid var(--color-gold); }
.bs-row--koth[data-state="upcoming"], .bs-row--koth[data-state="finished"] { border-left-color: var(--color-line); }
.bs-row--koth .bs-row-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---- ekran ---- */
.kt, .kt > * { min-width: 0; max-width: 100%; }
.kt-clock { margin: 0; padding: 4px 8px; text-align: center; font-size: var(--fs-num-m); font-weight: 700; border: 1px solid var(--color-line); border-radius: var(--radius-s); background: var(--color-bg-2); }
.kt-clock[hidden] { display: none; }
.kt-target { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-3); align-items: center; }
.kt-art { display: block; width: 100%; max-width: 200px; aspect-ratio: 4 / 3; }
.kt-art svg { display: block; width: 100%; height: 100%; max-width: none; overflow: visible; }
.kt-score { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kt-label { font-size: var(--fs-label); letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-3); }
.kt-dmg { font-family: var(--font-display); font-size: var(--fs-title); line-height: 1.1; color: var(--color-text-1); overflow-wrap: anywhere; }
.kt-group { font-size: var(--fs-label); color: var(--color-gold); letter-spacing: .04em; text-transform: uppercase; }
.kt-place { font-size: var(--fs-small); color: var(--color-text-2); }
.kt-place:empty, .kt-group:empty { display: none; }
.kt .notice[hidden] { display: none; }
.kt .br-v { white-space: normal; overflow: visible; line-height: 1.15; overflow-wrap: anywhere; }
.kt-x2 { display: inline-block; padding: 0 5px; border-radius: var(--radius-pill); border: 1px solid var(--color-gold); color: var(--color-gold); font-size: var(--fs-label); line-height: 16px; vertical-align: middle; }
.bab-mb.is-extra { border-color: var(--color-gold); }
.bab-mb.is-extra[aria-pressed="true"] { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-bg-0); }
.kt .bab[hidden], .kt .br[hidden], .kt .br-msg[hidden] { display: none; }

/* ---- rankingi ---- */
.kt-rank[hidden], .kt-end[hidden] { display: none; }
.kt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kt-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; column-gap: 8px; min-height: 40px; padding: 4px 10px; border: 1px solid var(--color-line); border-radius: var(--radius-m); background: var(--color-bg-1); }
.kt-row.is-me { background: var(--color-bg-3); border-color: var(--color-text-2); }
.kt-place-n { text-align: center; font-family: var(--font-display); font-weight: 800; color: var(--color-text-2); }
.kt-row.is-podium .kt-place-n { color: var(--color-gold); }
.kt-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: isolate; font-weight: 700; }
.kt-you { padding: 0 6px; border-radius: var(--radius-pill); border: 1px solid var(--color-text-2); font-size: var(--fs-label); line-height: 16px; font-weight: 700; }
.kt-d { color: var(--color-text-1); font-weight: 700; }
.kt-row:not(:has(.kt-you)) { grid-template-columns: 28px minmax(0, 1fr) auto; }
.kt-gap, .kt-empty { text-align: center; color: var(--color-text-3); list-style: none; }
.kt-hint { margin: 0; color: var(--color-text-2); }
.kt-packs { display: flex; flex-direction: column; gap: 4px; }
.kt-packs p, .kt-packs h3 { margin: 0; }
.kt-badge { width: 24px; height: 24px; vertical-align: middle; margin-right: 6px; }
.kt-end-win { display: flex; align-items: center; color: var(--color-gold); font-weight: 700; }
.kt-pack-mine { margin-top: 4px !important; color: var(--color-gold); font-weight: 700; }

/* ---- wynik ---- */
.kt-end { display: flex; flex-direction: column; gap: 6px; }
.kt-end h3, .kt-end p { margin: 0; }
.kt-end-place { font-family: var(--font-display); font-size: var(--fs-heading); font-weight: 700; color: var(--color-gold); }
.kt-end .is-dim { color: var(--color-text-2); }
.kt-backpack { display: flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; }
