/* Libertarianism (metaphysics) lesson. All rules scoped under .lib-* */
.lib-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lib-note { font-size: 13px; color: var(--dim); text-align: center; max-width: 320px; min-height: 17px; }

/* ---------- two ideas ---------- */
.lib-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 340px; }
.lib-col { display: flex; flex-direction: column; gap: 8px; padding: 18px 12px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line-strong); text-align: center; }
.lib-col b { font-size: 18px; }
.lib-col span { font-size: 16px; line-height: 1.35; }
.lib-col em { font-style: normal; font-size: 13px; font-weight: 700; }
.lib-col.lib-dim { opacity: .55; }
.lib-col.lib-dim em { color: var(--dim); }
.lib-col.lib-gold { border-color: var(--gold); }
.lib-col.lib-gold b, .lib-col.lib-gold em { color: var(--gold); }

/* ---------- the replay ---------- */
.lib-replay { width: 100%; max-width: 330px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lib-stagebox { display: flex; align-items: center; justify-content: center; gap: 18px; }
.lib-clock { position: relative; width: 70px; height: 70px; border-radius: 50%; background: var(--surface); border: 3px solid var(--violet-bright); }
.lib-clock i { position: absolute; left: 50%; top: 10px; width: 4px; height: 25px; margin-left: -2px; border-radius: 2px; background: var(--gold); transform-origin: 50% 25px; }
.lib-alice { position: relative; width: 130px; }
.lib-alice img { display: block; width: 130px; height: 110px; object-fit: contain; }
.lib-res { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); padding: 3px 12px; border-radius: 999px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.lib-res:empty { display: none; }
.lib-res.lib-rt { background: var(--gold); color: #1A1300; }
.lib-res.lib-rl { background: var(--violet-bright); color: #fff; }
.lib-count { display: flex; gap: 18px; font-size: 16px; font-weight: 700; }
.lib-ct { color: var(--gold); }
.lib-cl { color: var(--violet-bright); }
.lib-grid { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; width: 100%; }
.lib-grid i { aspect-ratio: 1; border-radius: 3px; background: rgba(234, 227, 215, .08); }
.lib-grid i.lib-ft { background: var(--gold); }
.lib-grid i.lib-fl { background: var(--violet-bright); }

/* ---------- answers ---------- */
.lib-tug { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; gap: 8px; width: 100%; max-width: 340px; }
.lib-side { padding: 14px 8px; border-radius: 14px; background: var(--surface); border: 2px solid; text-align: center; font-size: 15px; font-weight: 700; line-height: 1.3; }
.lib-sl { border-color: var(--mint); color: var(--mint); }
.lib-sr { border-color: var(--gold); color: var(--gold); }
.lib-rope { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--mint), var(--gold)); }
.lib-rope i { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--violet-bright); animation: lib-pull 1.6s ease-in-out 3; }
@keyframes lib-pull { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-16px); } 75% { transform: translateX(16px); } }

@media (max-height: 700px) {
  .lib-alice img { height: 86px; }
  .lib-clock { width: 58px; height: 58px; }
  .lib-clock i { top: 8px; height: 20px; transform-origin: 50% 20px; }
  .lib-col { padding: 14px 10px; }
}
