/* Boss timers (/bosses, pages/bosses.html, static/bosses.js): a card per boss (its map, the boss walking, a square per
   channel) and "Coming back" under them. Colours: green up, yellow can be back (a bar fills through the window), red
   killed, grey nobody knows; your channel outlined in blue. */
:root { --bt-soft: #f1f7fb; --bt-soft-hi: #e4f0f8; --bt-chip: #fff; --bt-input: #eef6fc; --bt-mine-row: #eaf4ff;
  --bt-ask: #fff6d6; --bt-ask-line: #f0d27a; }
/* inside the app (its own colours, dark or light): the same, from the app's */
html.app-ui { --bt-soft: var(--u-card-2); --bt-soft-hi: var(--u-card-3); --bt-chip: var(--u-card-2); --bt-input: var(--u-card-3);
  --bt-mine-row: rgba(76, 160, 255, .14); --bt-ask: rgba(255, 205, 46, .12); --bt-ask-line: rgba(255, 205, 46, .4); }
.bt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 10px; }
.bt-head .page-sub { max-width: 66ch; }
.bt-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bt-worlds { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--f-panel, #fff); border: 1px solid var(--f-line); }
.bt-world { padding: 5px 14px; border: 0; border-radius: 999px; background: none; color: var(--f-text-2); font-weight: 700; font-size: var(--fs-14, 14px); }
.bt-world[aria-selected="true"] { background: var(--f-yellow); color: var(--f-yellow-ink); }
.bt-world:not([aria-selected="true"]):hover { background: var(--bt-soft-hi); }
.bt-mych { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--f-panel, #fff);
  border: 1px solid var(--f-line); color: var(--f-head); font-weight: 700; font-size: var(--fs-14, 14px); }
.bt-mych .bi { color: #1f78c8; }
.bt-mych select { border: 0; border-radius: 999px; padding: 3px 8px; background: var(--bt-input); color: var(--f-head); font-weight: 700; }
.bt-mych-note { margin: 0 0 12px; color: var(--f-text-2); font-size: var(--fs-14, 14px); }

/* kills the player's tracker saw, waiting for a channel */
.bt-pending { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.bt-wait-kill { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px;
  background: var(--bt-ask); border: 1px solid var(--bt-ask-line); color: var(--f-text); }
.bt-wait-kill img { height: 38px; width: auto; }
.bt-wait-kill > span { flex: 1 1 260px; }
.bt-wait-kill select { border: 1px solid var(--f-line); border-radius: 10px; padding: 5px 8px; background: var(--bt-chip); color: var(--f-head); font-weight: 700; }

.bt-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; color: var(--f-text-2); font-size: var(--fs-13, 13px); font-weight: 600; }
.bt-legend span, .bt-counts span { display: inline-flex; align-items: center; gap: 6px; }
.bt-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.bt-dot.up { background: #22a447; } .bt-dot.back { background: #e8a400; } .bt-dot.dead { background: #c94a3d; } .bt-dot.unknown { background: #b9c6d2; }
.bt-dot.mine { background: #fff; box-shadow: inset 0 0 0 2px #1f78c8; border-radius: 3px; }

/* the cards */
.bt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; margin-bottom: 18px; }
.bt-wait { margin: 0; padding: 30px; color: var(--f-text-2); }
.bt-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: var(--f-panel, #fff); border: 1px solid var(--f-line);
  box-shadow: 0 6px 18px rgba(16, 50, 90, .07); }
.bt-hero { position: relative; height: 140px; background: #1d2d4a center 62% / cover no-repeat; }
.bt-hero.plain { background: linear-gradient(180deg, #3a5a8a, #172a48); }
.bt-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 40, 0) 30%, rgba(10, 20, 40, .86)); pointer-events: none; }
.bt-mob { position: absolute; z-index: 1; right: 18px; bottom: 6px; max-height: 112px; max-width: 36%; width: auto; height: auto;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .5)); }
.bt-pill { position: absolute; z-index: 2; top: 12px; left: 14px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px;
  background: rgba(10, 20, 40, .72); color: #fff; font-weight: 700; font-size: var(--fs-12, 12px); }
.bt-title { position: absolute; z-index: 2; left: 16px; right: 32%; bottom: 12px; display: flex; flex-direction: column; color: #fff; }
.bt-title small { color: #d3e2f3; font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.bt-name { color: #fff; font: 800 24px/1.1 var(--font-display, inherit); text-shadow: 0 2px 8px rgba(0, 0, 0, .55); }
.bt-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; }
.bt-top { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; }
.bt-next { color: var(--f-head); font: 800 17px/1.2 var(--font-display, inherit); }
.bt-next.up { color: #1b8a3a; } .bt-next.back { color: #8a6100; } .bt-next.quiet { color: var(--f-text-2); font-weight: 700; }
.bt-soon { color: var(--f-text-2); font-size: var(--fs-13, 13px); font-weight: 600; }

/* a square per channel: 10 a row, as the game's channel window */
.bt-chs { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.bt-ch { position: relative; height: 30px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; font: 700 12px/1 var(--font-body, inherit);
  font-variant-numeric: tabular-nums; cursor: pointer; transition: transform .12s ease-out, box-shadow .12s ease-out; }
.bt-ch:hover { transform: translateY(-1px); box-shadow: 0 3px 6px rgba(16, 50, 90, .18); }
.bt-ch.unknown { background: #e8eef4; color: #6c7f91; }
.bt-ch.dead { background: #f5d9d4; color: #8e2f25; }
.bt-ch.back { background: #fff0c4; color: #6e4d00; }
.bt-ch.back i { position: absolute; left: 0; bottom: 0; height: 4px; background: #e8a400; }
.bt-ch.due { background: #d6f1dd; color: #17652e; }
.bt-ch.up { background: #22a447; color: #fff; }
.bt-ch.mine { box-shadow: inset 0 0 0 2px #1f78c8; }
.bt-ch[aria-pressed="true"] { outline: 3px solid #1f78c8; outline-offset: 1px; z-index: 1; }
.bt-counts { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--f-text-2); font-size: var(--fs-13, 13px); font-weight: 700; }
.bt-picked { margin: 0; color: var(--f-text); font-size: var(--fs-14, 14px); font-weight: 600; }
.bt-hint { margin: 0; color: var(--f-text-2); font-size: var(--fs-14, 14px); }
.bt-said { margin: 0; color: #1b8a3a; font-size: var(--fs-13, 13px); font-weight: 700; }
.bt-said:empty { display: none; }
.bt-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.bt-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 10px; border: 1px solid var(--f-line); background: var(--bt-soft);
  color: var(--f-head); font-weight: 700; font-size: var(--fs-14, 14px); }
.bt-btn:hover { background: var(--bt-soft-hi); }
.bt-btn.main { background: var(--f-yellow); border-color: var(--f-yellow-line); color: var(--f-yellow-ink); }
.bt-btn.main:hover { background: var(--f-yellow-hi, #ffd84f); }
.bt-btn:disabled { opacity: .6; }

/* Coming back */
.bt-list-body { padding: 14px 16px 16px; }
.bt-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--f-line); background: var(--bt-chip);
  color: var(--f-head); font-weight: 700; font-size: var(--fs-13, 13px); }
.bt-chip img { height: 22px; width: auto; }
.bt-chip.on { background: var(--f-yellow); border-color: var(--f-yellow-line); color: var(--f-yellow-ink); }
.bt-ups { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 12px; }
.bt-ups:empty { display: none; }
.bt-ups-k { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; color: var(--f-head); font-weight: 800; font-size: var(--fs-14, 14px); }
.bt-up { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 4px; border-radius: 12px; background: #e3f6e8; border: 1px solid #b6e2c2;
  color: #145c2a; font-weight: 700; font-size: var(--fs-13, 13px); }
.bt-up img { height: 26px; width: 30px; object-fit: contain; }
.bt-up small { color: #3d7a50; font-weight: 600; }
.bt-up.mine { border-color: #1f78c8; box-shadow: inset 0 0 0 1px #1f78c8; }
.bt-up.more { padding: 3px 11px; background: var(--bt-chip); border-color: var(--f-line); color: var(--f-head); }
.bt-table-wrap { overflow-x: auto; }
.bt-table { width: 100%; border-collapse: collapse; }
.bt-table th { padding: 0 8px 8px; color: var(--f-text-2); font-size: var(--fs-12, 12px); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; text-align: left; white-space: nowrap; }
.bt-table td { padding: 8px; border-top: 1px solid var(--f-line); vertical-align: middle; }
.bt-table tr.mine td { background: var(--bt-mine-row); }
.bt-who { display: flex; align-items: center; gap: 10px; }
.bt-who img { height: 34px; width: 44px; object-fit: contain; }
.bt-wn { display: block; color: var(--f-head); font-weight: 700; }
.bt-who small { color: var(--f-text-2); }
.bt-chn { color: var(--f-head); font: 800 16px var(--font-display, inherit); white-space: nowrap; }
.bt-left { color: var(--f-head); font: 800 17px var(--font-display, inherit); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bt-tag { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-weight: 800; font-size: var(--fs-12, 12px); white-space: nowrap; }
.bt-tag.up { background: #d6f1dd; color: #17652e; } .bt-tag.back { background: #fff0c4; color: #6e4d00; }
.bt-bar { position: relative; display: block; width: 140px; height: 8px; border-radius: 99px; background: var(--bt-soft-hi); overflow: hidden; }
.bt-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ffd24a, #e8a400); }
.bt-bar.dead i { background: #e3a59c; } .bt-bar.up i { background: #22a447; } .bt-bar.due i { background: #7ccf92; }
.bt-killed { white-space: nowrap; color: var(--f-text); }
.bt-by { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 1px 7px; border-radius: 6px; font-weight: 700; font-size: 11.5px; }
.bt-by.auto { background: #e3f1ff; color: #1b5e9a; } .bt-by.hand { background: #f1ece2; color: #6b5432; }
.bt-empty { padding: 18px 8px !important; color: var(--f-text-2); text-align: center; }
.bt-more { margin-top: 10px; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--f-line); background: var(--bt-soft); color: var(--f-head); font-weight: 700; }
.bt-note { margin: 12px 0 0; color: var(--f-text-2); font-size: var(--fs-13, 13px); }

.bt-killed { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bt-when, .bt-when-at { border: 1px solid var(--f-line); border-radius: 10px; padding: 6px 8px; background: var(--bt-chip);
  color: var(--f-head); font-weight: 700; font-size: var(--fs-13, 13px); }
.bt-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 16px; padding: 14px 16px; border-radius: 14px;
  background: var(--bt-ask); border: 1px solid var(--bt-ask-line); color: var(--f-text); }
.bt-lock > .bi { font-size: 26px; color: #b07a00; }
.bt-lock div { flex: 1 1 320px; min-width: 0; }
.bt-lock strong { color: var(--f-head); font-size: var(--fs-16, 16px); }
.bt-lock p { margin: 2px 0 0; }
.bt-lock a.bt-btn { text-decoration: none; }
.bt-locked .bt-grid, .bt-locked .bt-list { filter: saturate(.75); opacity: .85; }
.bt-watch { margin-bottom: 16px; }
.bt-watch .window-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bt-watch-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-13, 13px); color: var(--f-text-2); }
.bt-watch-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa9b7; }
.bt-watch-dot.on { color: #2f8a4a; }
.bt-watch-dot.on::before { background: #22a447; box-shadow: 0 0 0 3px rgba(34, 164, 71, .25); }
.bt-watch-body { padding: 14px 16px 16px; display: grid; gap: 12px; }
.bt-watch-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.bt-watch-top > div, .bt-watch-top > p { flex: 1 1 260px; min-width: 0; margin: 0; }
.bt-watch-top b { display: block; color: var(--f-head); font-size: var(--fs-20, 20px); font-weight: 800; }
.bt-watch-top small { color: var(--f-text-2); }
.bt-camp { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--f-head); font-size: var(--fs-13, 13px); }
.bt-camp select { border: 1px solid var(--f-line); border-radius: 10px; padding: 5px 8px; background: var(--bt-chip); color: var(--f-head); font-weight: 700; }
.bt-watch-err { margin: 0; color: #b3261e; font-weight: 600; }
.bt-watch-seen { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 700; color: #2f8a4a; }
.bt-watch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 14px; }
.bt-watch-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: var(--bt-soft); }
.bt-watch-row.camp { box-shadow: inset 0 0 0 2px #e0a800; }
.bt-watch-row img { width: 36px; height: 32px; object-fit: contain; }
.bt-watch-row b { display: block; color: var(--f-head); font-size: var(--fs-13, 13px); }
.bt-watch-row small { display: block; color: var(--f-text-2); font-size: var(--fs-12, 12px); line-height: 1.3; }
.bt-watch-acts { display: inline-flex; gap: 4px; }
.bt-btn.small { padding: 4px 8px; font-size: var(--fs-12, 12px); border-radius: 8px; }
.bt-mine { margin-bottom: 18px; }
.bt-mine .window-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bt-mine-total { color: var(--f-head); font-weight: 800; font-size: var(--fs-14, 14px); }
.bt-mine-body { padding: 14px 16px 16px; }
.bt-back { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 12px; }
.bt-back:empty { display: none; }
.bt-back .bt-up.soon { background: #fff4d6; border-color: #f0d27a; color: #7a5300; }
.bt-back .bt-up.soon small { color: #8a6a1f; }
.bt-remind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; color: var(--f-text); font-size: var(--fs-13, 13px); }
.bt-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--f-head); cursor: pointer; }
.bt-remind select { border: 1px solid var(--f-line); border-radius: 10px; padding: 5px 8px; background: var(--bt-chip); color: var(--f-head); font-weight: 700; }
.bt-remind-ok { color: #2f8a4a; font-weight: 700; }
.bt-remind-no { color: var(--f-text-2); }
.bt-mine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.bt-kc { display: grid; justify-items: center; gap: 2px; padding: 10px 8px; border-radius: 14px; background: var(--bt-soft);
  border: 1px solid var(--f-line); text-align: center; }
.bt-kc img { height: 64px; width: 100%; object-fit: contain; }
.bt-kc-name { color: var(--f-head); font-weight: 700; font-size: var(--fs-13, 13px); line-height: 1.2; }
.bt-kc-name small { display: block; color: var(--f-text-2); font-weight: 600; }
.bt-kc-n { color: var(--f-head); font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bt-kc-last { color: var(--f-text-2); font-size: var(--fs-12, 12px); }
.bt-kc.none img { filter: grayscale(1); opacity: .45; }
.bt-kc.none .bt-kc-n { color: var(--f-text-2); }
@media (max-width: 640px) {
  .bt-col-bar { display: none; }
  .bt-ch { height: 28px; font-size: 11px; }
  .bt-chs { gap: 3px; }
  .bt-hero { height: 124px; }
  .bt-name { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .bt-ch { transition: none; } .bt-ch:hover { transform: none; } }
html.app-ui .bt-next.up, html.app-ui .bt-said { color: var(--u-good); }
html.app-ui .bt-next.back { color: var(--u-act); }
html.app-ui .bt-mych .bi { color: var(--u-link); }
