/* Compatibilism lesson. All rules scoped under .cpt-* */
.cpt-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cpt-note { font-size: 13px; color: var(--dim); text-align: center; max-width: 300px; }
.cpt-hero img { display: block; width: 260px; max-width: 100%; max-height: 34vh; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(123, 92, 253, .35)); }

/* ---------- a case card ---------- */
.cpt-case { width: 100%; max-width: 320px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line-strong); display: flex; flex-direction: column; gap: 6px; text-align: center; }
.cpt-case b { font-size: 22px; color: var(--gold); }
.cpt-case span { font-size: 18px; line-height: 1.35; }
.cpt-case.cpt-in { animation: cpt-in .3s ease-out; }
@keyframes cpt-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cpt-dots { display: flex; gap: 8px; }
.cpt-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px dashed var(--line-strong); }
.cpt-dots i.cpt-f { background: var(--mint); border: 2px solid var(--mint); }
.cpt-dots i.cpt-n { background: var(--red); border: 2px solid var(--red); }
.cpt-row { display: flex; gap: 10px; width: 100%; }
.cpt-b { flex: 1; min-height: 52px; }

/* ---------- the reader's calls ---------- */
.cpt-list { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 6px; }
.cpt-li { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 2px solid var(--line); font-size: 13px; line-height: 1.3; }
.cpt-li b { font-size: 14px; }
.cpt-li i { font-style: normal; font-weight: 700; font-size: 12px; white-space: nowrap; }
.cpt-lf i { color: var(--mint); }
.cpt-ln i { color: var(--red); }

/* ---------- two columns ---------- */
.cpt-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 340px; }
.cpt-col { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line-strong); text-align: center; }
.cpt-col b { font-size: 17px; }
.cpt-col span { font-size: 14px; line-height: 1.3; }
.cpt-col em { font-style: normal; font-size: 13px; color: var(--dim); }
.cpt-cf { border-color: var(--mint); }
.cpt-cf b { color: var(--mint); }
.cpt-cn { border-color: var(--red); }
.cpt-cn b { color: var(--red); }

/* ---------- Locke's room ---------- */
.cpt-room { width: 100%; display: flex; justify-content: center; }
.cpt-room svg { width: 320px; max-width: 100%; max-height: 40vh; height: auto; overflow: visible; }
.cpt-wall { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; }
.cpt-floor { fill: var(--raised); }
.cpt-door rect { fill: #8A5A34; stroke: #C08A5A; stroke-width: 2; }
.cpt-door circle { fill: var(--gold); }
.cpt-lk path { fill: none; stroke: var(--gold); stroke-width: 3.5; }
.cpt-lk rect { fill: var(--gold); }
.cpt-lk.cpt-shake { animation: cpt-shake .3s; }
@keyframes cpt-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-3px) rotate(-8deg); } 75% { transform: translateX(3px) rotate(8deg); } }
.cpt-pal { fill: var(--violet-bright); }
.cpt-man { fill: var(--gold); }
.cpt-lbl { fill: var(--text); font-size: 13px; font-weight: 700; text-anchor: middle; }
.cpt-bub { opacity: 0; transition: opacity .2s; }
.cpt-bub.cpt-on { opacity: 1; }
.cpt-bub rect { fill: var(--raised); stroke: var(--gold); stroke-width: 2; }
.cpt-bub text { fill: var(--text); font-size: 15px; font-weight: 700; text-anchor: middle; }

/* ---------- the chain of causes ---------- */
.cpt-chain { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; max-width: 300px; }
.cpt-link { width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 2px solid var(--line-strong); text-align: center; font-size: 15px; font-weight: 700; transition: opacity .3s; }
.cpt-link:last-child { border-color: var(--gold); color: var(--gold); }
.cpt-link.cpt-off { opacity: .15; }
.cpt-ar { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 10px solid var(--dim); }

/* ---------- the survey ---------- */
.cpt-bar { position: relative; width: 100%; max-width: 320px; height: 44px; border-radius: 14px; background: var(--surface); border: 2px solid var(--line-strong); overflow: hidden; }
.cpt-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--violet); }
.cpt-bar span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 15px; }

@media (max-height: 700px) {
  .cpt-hero img { width: 200px; max-height: 28vh; }
  .cpt-case { padding: 14px 16px; }
  .cpt-case b { font-size: 19px; }
  .cpt-case span { font-size: 16px; }
  .cpt-li { padding: 6px 8px; }
  .cpt-room svg { max-height: 34vh; }
  .cpt-link { padding: 9px 12px; font-size: 14px; }
}
