/* v0.15.241 (#599 — Alex, HANDOFF_combat_hud_finish §3 "Battle Conditions", locked 11-20): the conditions panel (right, across from the Combat Journal, the
   same width and header), its chips, the start card, the flying lines, the locks' reason line, the starting-affliction lines, and the map's NEXT COMBAT holder.
   Sizes are in vw like the Journal's (board.css: body.combat-page .combat-log). One sheet for the board, its replica and the map. */
.bc-panel { position: fixed; right: 1.6vw; top: 10.6vw; width: 16vw; min-width: 230px; z-index: 25; border-radius: 0.6vw; overflow: visible; border: 1px solid #8a6a3a; background: #120d09e6; box-shadow: 0 0.6vw 1.6vw #000c; font-family: var(--ui-serif, 'Cinzel', Georgia, serif); }
.bc-panel[hidden] { display: none; }
.bc-panel:has(.bc-chip.showtip) { z-index: 9000; } /* a chip answering a locked action shows its rule over the card preview that is open beside it */
.bc-panel .bc-h { display: flex; justify-content: space-between; align-items: center; padding: 0.45vw 0.8vw; background: linear-gradient(#6a4a26, #4a3218); border-radius: 0.6vw 0.6vw 0 0; }
.bc-panel .bc-h b { font-size: 0.85vw; font-weight: 700; letter-spacing: 0.04em; color: #f6e8c8; }
.bc-panel .bc-h span { font-size: 0.7vw; font-weight: 700; letter-spacing: 0.1em; color: #e8d4a8; }
.bc-panel .bc-ls { padding: 0.35vw; display: flex; flex-direction: column; gap: 0.3vw; }
.bc-chip { --c: #c8b98f; position: relative; display: flex; align-items: center; gap: 0.5vw; padding: 0.32vw 0.5vw 0.32vw 0.4vw; border-radius: 0.4vw; background: linear-gradient(90deg, #2a2016, #1a140e); border: 1px solid #4a3a26; border-left: 0.25vw solid var(--c); cursor: default; max-height: 5vw; transition: opacity 0.5s, transform 0.5s, max-height 0.5s, padding 0.5s, margin 0.5s; outline: none; }
.bc-chip .bc-ic { flex: none; width: 1.9vw; height: 1.9vw; min-width: 26px; min-height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 55%, #000), #0c0907 80%); border: 1px solid var(--c); box-shadow: 0 0 0.5vw color-mix(in srgb, var(--c) 40%, transparent); }
.bc-chip .bc-ic img { width: 62%; height: 62%; display: block; pointer-events: none; }
.bc-chip .bc-ic .bc-aff { font-size: 1vw; line-height: 1; }
.bc-chip .bc-ic .bc-aff svg { width: 1.1vw; height: 1.1vw; display: block; }
.bc-chip .bc-tx { min-width: 0; }
.bc-chip .bc-tx b { display: block; font-size: 0.74vw; font-weight: 700; letter-spacing: 0.04em; color: #f0e2c0; line-height: 1.15; }
.bc-chip .bc-tx span { display: block; font-size: 0.54vw; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 70%, #fff); }
.bc-chip .bc-cnt { margin-left: auto; flex: none; font-size: 0.62vw; font-weight: 700; color: #1e1404; background: var(--c); border-radius: 999px; padding: 0.05vw 0.45vw; white-space: nowrap; }
.bc-chip .bc-tip { position: absolute; right: calc(100% + 0.7vw); top: 50%; transform: translateY(-50%); width: 17vw; min-width: 240px; padding: 0.55vw 0.7vw; border-radius: 0.45vw; background: #efe2c0; color: #3a2a14; font-family: Georgia, 'Times New Roman', serif; font-size: 0.78vw; line-height: 1.35; box-shadow: 0 0.4vw 1.2vw #000c; opacity: 0; pointer-events: none; transition: opacity 0.15s; z-index: 9; text-align: left; }
.bc-chip .bc-tip b { font-weight: 700; }
.bc-chip .bc-tip i { display: block; margin-top: 0.3vw; font-size: 0.68vw; color: #7a5a2a; }
.bc-chip .bc-tip .bc-gl { display: inline-flex; vertical-align: middle; gap: 0.12vw; }
.bc-chip .bc-tip .bc-gl svg, .bc-intro .bc-gl svg { width: 1.05vw; height: 1.05vw; min-width: 14px; min-height: 14px; display: inline-block; vertical-align: middle; }
.bc-chip:hover .bc-tip, .bc-chip:focus .bc-tip, .bc-chip.showtip .bc-tip { opacity: 1; }
.bc-chip.pulse { animation: bc-pulse 0.9s ease-out 2; }
@keyframes bc-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 90%, transparent); } 100% { box-shadow: 0 0 0 0.9vw transparent; } }
.bc-chip.gone { opacity: 0; transform: translateX(2vw); max-height: 0; padding-top: 0; padding-bottom: 0; margin: -0.15vw 0; border-width: 0; }
.bc-chip.hid { opacity: 0; }
/* the start card */
.bc-shade { position: fixed; inset: 0; z-index: 9990; background: #000a; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.bc-shade.on { opacity: 1; pointer-events: auto; }
.bc-intro { position: fixed; left: 50%; top: 44%; transform: translate(-50%, -50%) scale(0.92); width: 30vw; min-width: 420px; max-width: 92vw; z-index: 9991; padding: 1.3vw 1.6vw 1.1vw; border-radius: 0.7vw; background: linear-gradient(#f3e7c8, #e4d2a6); border: 1px solid #8a6a3a; box-shadow: 0 0 0 0.3vw #2a1e10cc, 0 1.4vw 4vw #000e; opacity: 0; pointer-events: none; transition: opacity 0.35s, transform 0.35s; font-family: Georgia, 'Times New Roman', serif; }
.bc-intro.on { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; cursor: pointer; }
.bc-intro h3 { margin: 0; text-align: center; font-family: var(--ui-serif, 'Cinzel', Georgia, serif); font-size: 1.05vw; font-weight: 700; letter-spacing: 0.2em; color: #5a3a14; }
.bc-intro .bc-sub { text-align: center; font-style: italic; font-size: 0.8vw; color: #7a5a2a; margin: 0.2vw 0 0.7vw; }
.bc-intro .bc-ln { --c: #c8b98f; display: flex; align-items: center; gap: 0.6vw; padding: 0.38vw 0; border-top: 1px solid #c8b080; font-size: 0.92vw; line-height: 1.3; color: #2a1c0c; }
.bc-intro .bc-ln .bc-ic { flex: none; width: 1.7vw; height: 1.7vw; min-width: 24px; min-height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--c); }
.bc-intro .bc-ln .bc-ic img { width: 62%; height: 62%; display: block; filter: brightness(0) invert(1); }
.bc-intro .bc-ln .bc-ic .bc-aff { font-size: 0.95vw; line-height: 1; }
.bc-intro .bc-ft { text-align: center; font-family: var(--ui-serif, 'Cinzel', Georgia, serif); font-size: 0.6vw; font-weight: 700; letter-spacing: 0.2em; color: #9a7a4a; margin-top: 0.5vw; }
.bc-fly { --c: #c8b98f; position: fixed; z-index: 9992; pointer-events: none; display: flex; align-items: center; gap: 0.5vw; padding: 0.3vw 0.5vw; border-radius: 0.4vw; background: #2a2016; border: 1px solid var(--c); color: #f0e2c0; font-family: var(--ui-serif, 'Cinzel', Georgia, serif); font-size: 0.72vw; font-weight: 700; white-space: nowrap; transition: left 0.6s cubic-bezier(0.5, 0, 0.2, 1), top 0.6s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.6s; }
/* a blocked action: the lock, the shake, the reason line */
.bc-locked { filter: grayscale(0.85) brightness(0.72); position: relative; }
.bc-lock { position: absolute; right: -0.35vw; top: -0.35vw; width: 1vw; height: 1vw; min-width: 14px; min-height: 14px; border-radius: 50%; background: #1a140e; border: 1px solid #c8604a; display: flex; align-items: center; justify-content: center; z-index: 3; pointer-events: none; }
.bc-lock svg { width: 62%; height: 62%; fill: none; stroke: #e07a5a; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bc-shake { animation: bc-shk 0.4s; }
@keyframes bc-shk { 20%, 60% { transform: translateX(-0.25vw); } 40%, 80% { transform: translateX(0.25vw); } }
.bc-why { position: fixed; z-index: 9989; transform: translate(-50%, 0); font-family: Georgia, 'Times New Roman', serif; font-size: 0.78vw; color: #ffe0d0; background: #3a140ce8; border: 1px solid #c8604a; border-radius: 0.35vw; padding: 0.3vw 0.6vw; white-space: nowrap; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.bc-why.on { opacity: 1; }
/* the starting-affliction lines */
.bc-lines { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 9988; pointer-events: none; overflow: visible; }
.bc-lines path { fill: none; stroke: var(--c, #7ad05a); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--c, #7ad05a)); }
.bc-land { --c: #7ad05a; position: fixed; z-index: 9989; width: 2vw; height: 2vw; min-width: 28px; min-height: 28px; transform: translate(-50%, -50%) scale(0); border-radius: 50%; background: radial-gradient(color-mix(in srgb, var(--c) 55%, #000), #0c0907); border: 2px solid var(--c); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 1vw var(--c); transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.5s; font-size: 1.05vw; line-height: 1; pointer-events: none; }
.bc-land.on { transform: translate(-50%, -50%) scale(1); }
.bc-land.off { opacity: 0; }
/* the map's NEXT COMBAT holder (beside the party marker) */
.bc-hold { position: absolute; z-index: 30; display: inline-flex; flex-direction: column; gap: 4px; padding: 7px 9px; border-radius: 8px; background: #120d09ee; border: 1px solid #8a6a3a; box-shadow: 0 6px 16px #0008; font-family: var(--ui-serif, 'Cinzel', Georgia, serif); pointer-events: auto; }
.bc-hold > b { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; color: #e8d4a8; }
.bc-hold .bc-row { display: flex; gap: 5px; flex-wrap: wrap; max-width: 300px; }
.bc-hold .bc-mc { --c: #c8b98f; position: relative; display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; border-radius: 6px; background: #2a2016; border: 1px solid #4a3a26; border-left: 3px solid var(--c); font-size: 13px; font-weight: 700; color: #f0e2c0; white-space: nowrap; cursor: default; }
.bc-hold .bc-mc i { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--c); font-style: normal; font-size: 11px; line-height: 1; }
.bc-hold .bc-mc i img { width: 12px; height: 12px; display: block; filter: brightness(0) invert(1); }
.bc-hold .bc-mc .bc-tip { position: absolute; left: 0; top: calc(100% + 6px); width: 260px; padding: 8px 10px; border-radius: 6px; background: #efe2c0; color: #3a2a14; font-family: Georgia, 'Times New Roman', serif; font-size: 12px; font-weight: 400; line-height: 1.35; white-space: normal; box-shadow: 0 6px 16px #000c; opacity: 0; pointer-events: none; transition: opacity 0.15s; z-index: 40; }
.bc-hold .bc-mc .bc-tip i { display: block; width: auto; height: auto; background: none; border-radius: 0; margin-top: 4px; font-size: 11px; font-style: italic; color: #7a5a2a; }
.bc-hold .bc-mc .bc-tip .bc-gl svg { width: 14px; height: 14px; display: inline-block; vertical-align: middle; }
.bc-hold .bc-mc:hover .bc-tip, .bc-hold .bc-mc.showtip .bc-tip { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .bc-chip, .bc-fly, .bc-intro, .bc-shade, .bc-land { transition-duration: 0.01s; } .bc-chip.pulse, .bc-shake { animation: none; } }

/* v0.15.241: where the holder would cover another area of the map it folds to its title and count — it opens on hover, focus or a tap */
.bc-hold.min { cursor: pointer; }
.bc-hold.min > b::after { content: ' · ' attr(data-n); color: #f0c36a; font-family: Georgia, 'Times New Roman', serif; font-variant-numeric: lining-nums; font-size: 13px; letter-spacing: 0.04em; }
.bc-hold.min .bc-row { display: none; position: absolute; top: calc(100% - 1px); left: -1px; width: max-content; max-width: 318px; padding: 7px 9px; border-radius: 8px; background: #120d09f5; border: 1px solid #8a6a3a; box-shadow: 0 6px 16px #0008; }
.bc-hold.min.rtl .bc-row { left: auto; right: -1px; } /* the list hangs AWAY from the party marker: leftwards when the holder stands left of it… */
.bc-hold.min.up .bc-row { top: auto; bottom: calc(100% - 1px); } /* …and upwards when it stands above it */
.bc-hold.min:hover .bc-row, .bc-hold.min.open .bc-row { display: flex; }
/* v0.15.453 (#848 item 3): at a table, a board whose own card is closed waits for the others — it takes no input, and says who is still reading */
.bc-wait { position: fixed; inset: 0; z-index: 9989; cursor: progress; background: transparent; display: flex; justify-content: center; align-items: flex-start; }
.bc-wait .bcw-pill { margin-top: 16vh; padding: 0.7vw 1.3vw; border-radius: 0.6vw; background: linear-gradient(#2a2416, #14110a); border: 1px solid #c9a84c; color: #efe2c4; box-shadow: 0 10px 40px #000c; text-align: center; font-family: var(--ui-serif, 'Cinzel', Georgia, serif); font-size: max(13px, 0.85vw); letter-spacing: 0.04em; }
.bc-wait .bcw-btn { display: block; margin: 0.7vw auto 0; cursor: pointer; }
