/* Killer T Cells lesson. All rules scoped under .ktc-* */

.ktc-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ktc-sc > svg { display: block; width: 100%; height: auto; overflow: visible; }
.ktc-note { font-size: 12.5px; color: var(--faint); text-align: center; line-height: 1.35; max-width: 320px; }
.ktc-hero { width: min(80%, 320px); }
.ktc-hero img { width: 100%; display: block; }
.ktc-t { fill: var(--text); font: 600 14px var(--sans); text-anchor: middle; transition: opacity .3s; }
.ktc-t.dim { fill: var(--dim); font-size: 13px; }
.ktc-t.gold { fill: var(--gold); }
.ktc-t.sm { font-size: 13px; fill: var(--dim); }
.ktc-t.end { text-anchor: end; }
.ktc-t.off { opacity: 0; }

/* cells */
.ktc-cell { fill: rgba(123,92,253,.12); stroke: var(--violet-bright); stroke-width: 2.5; }
.ktc-cell.sick { fill: rgba(251,150,121,.12); stroke: #FB9679; }
.ktc-cell.can { fill: rgba(216,85,95,.16); stroke: #E0626D; stroke-width: 3; }
.ktc-nu { fill: rgba(169,155,255,.28); }
.ktc-vir { fill: rgba(251,150,121,.45); stroke: #FB9679; stroke-width: 1.5; }
.ktc-kc { fill: rgba(252,192,80,.18); stroke: var(--gold); stroke-width: 2.5; }
.ktc-gr { fill: var(--gold); transition: opacity .4s; }
.ktc-gr.spent { opacity: .25; }
.ktc-seal { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; opacity: 0; transition: opacity .4s; }
.ktc-docked .ktc-seal, .ktc-seal.on { opacity: 1; }

/* the kill, up close */
.ktc-kill { cursor: pointer; }
.ktc-ask .ktc-kill .ktc-kc { animation: ktc-pulse 1.1s ease-in-out 3; }
.ktc-ask .ktc-can { animation: ktc-pulse 1.1s ease-in-out 3; cursor: pointer; }
@keyframes ktc-pulse { 50% { stroke-width: 5; } }
.ktc-pores path { stroke: #0A0E1A; stroke-width: 5; stroke-linecap: round; opacity: 0; transition: opacity .3s; }
.ktc-holes .ktc-pores path { opacity: 1; }
.ktc-zy { fill: var(--violet-bright); stroke: #fff; stroke-width: 1; }
.ktc-tg.off { opacity: 0; }
.ktc-bit { fill: rgba(251,150,121,.18); stroke: #FB9679; stroke-width: 2; }
.ktc-free .ktc-seal, .ktc-free .ktc-pores, .ktc-free .ktc-gz, .ktc-free .ktc-sl { opacity: 0; transition: opacity .4s; }

/* kills per day */
.ktc-day { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 12px; padding-top: 10px; }
.ktc-dl { font: 600 14px var(--sans); color: var(--dim); text-align: center; }
.ktc-drow { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; justify-items: center; }
.ktc-drow i { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed #FB9679; }
.ktc-drow i.lo { background: rgba(251,150,121,.4); border-style: solid; }
.ktc-dk { display: flex; justify-content: center; gap: 18px; font: 600 13px var(--sans); color: var(--dim); }
.ktc-dk span { display: inline-flex; align-items: center; gap: 6px; }
.ktc-dk b { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px dashed #FB9679; }
.ktc-dk b.lo { background: rgba(251,150,121,.4); border-style: solid; }

/* the tough target */
.ktc-kx { transition: opacity .4s; }
.ktc-one .ktc-kx.k1, .ktc-one .ktc-kx.k2 { opacity: 0; }
.ktc-team .ktc-kx { opacity: 1 !important; }
.ktc-kx.fire .ktc-kc { fill: var(--gold); }
.ktc-bar { fill: rgba(234,227,215,.1); stroke: var(--line); stroke-width: 1.5; }
.ktc-fill { fill: #E0626D; }
.ktc-line { stroke: var(--text); stroke-width: 2; stroke-dasharray: 4 3; }
.ktc-can { transition: opacity .5s; }
.ktc-dead .ktc-can { opacity: .25; }

/* the liver */
.ktc-lr { fill: rgba(123,92,253,.1); stroke: var(--violet-bright); stroke-width: 2; transition: opacity .4s, fill .4s; }
.ktc-lc.inf .ktc-lr { stroke: #FB9679; fill: rgba(251,150,121,.1); }
.ktc-kd { fill: rgba(252,192,80,.3); stroke: var(--gold); stroke-width: 2; opacity: 0; transition: opacity .4s; }
.ktc-hit .ktc-kd { opacity: 1; }
.ktc-lc { transition: opacity .5s; }
.ktc-gone .ktc-lc.inf { opacity: .3; }
.ktc-keys { display: flex; gap: 16px; justify-content: center; font: 600 13px var(--sans); color: var(--dim); }
.ktc-keys span { display: inline-flex; align-items: center; gap: 6px; }
.ktc-keys b { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.ktc-keys b.v { background: rgba(251,150,121,.6); }
.ktc-keys b.k { background: rgba(252,192,80,.5); border: 2px solid var(--gold); }

@media (max-height: 700px) {
  .ktc-hero { width: min(62%, 240px); }
  .ktc-tis { max-height: 250px; }
  .ktc-close, .ktc-tough { max-height: 240px; }
  .ktc-drow i { width: 22px; height: 22px; }
}
