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

/* ---------- the track ---------- */
.sef-track { position: relative; width: calc(100% - 28px); height: 64px; border-radius: 32px; background: var(--raised); box-shadow: inset 0 0 0 2px var(--line-strong); margin-top: 18px; }
.sef-zone { position: absolute; top: 0; bottom: 0; background: rgba(252,192,80,.28); box-shadow: inset 0 0 0 2px var(--gold); border-radius: 6px; transition: left .4s cubic-bezier(.3,.7,.3,1), width .4s cubic-bezier(.3,.7,.3,1); }
.sef-dot { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--violet-bright); box-shadow: 0 0 0 3px var(--bg), 0 0 14px rgba(169,155,255,.7); }
.sef-track.sef-hit { animation: sefHit .5s ease-out; }
.sef-track.sef-hit .sef-zone { background: rgba(92,225,160,.35); box-shadow: inset 0 0 0 2px var(--mint); }
.sef-track.sef-miss { animation: sefMiss .4s ease-out; }
@keyframes sefHit { 40% { transform: scale(1.03); } }
@keyframes sefMiss { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.sef-lvl { display: flex; gap: 10px; padding-top: 6px; }
.sef-lvl i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 14px var(--mono); font-style: normal; color: var(--dim); background: var(--raised); box-shadow: inset 0 0 0 2px var(--line-strong); transition: background .2s, color .2s; }
.sef-lvl i.on { color: var(--text); box-shadow: inset 0 0 0 2px var(--violet-bright); }
.sef-lvl i.done { background: var(--gold); color: #2A1B00; box-shadow: none; }
.sef-msg { min-height: 22px; font-size: 15px; font-weight: 800; color: var(--dim); }
.sef-msg.ok { color: var(--mint); }
.sef-msg.no { color: var(--red); }

/* ---------- before / after ---------- */
.sef-bars { width: 100%; display: flex; flex-direction: column; gap: 16px; padding-top: 18px; }
.sef-bar { display: grid; grid-template-columns: 1fr 44px; gap: 6px 10px; align-items: center; }
.sef-bar span { grid-column: 1 / 3; font-size: 13px; font-weight: 700; color: var(--dim); }
.sef-bar div { height: 16px; border-radius: 8px; background: var(--raised); overflow: hidden; }
.sef-bar i { display: block; height: 100%; background: var(--violet-bright); }
.sef-bar.sef-b1 i { background: var(--gold); }
.sef-bar b { font: 600 18px var(--mono); text-align: right; }

/* ---------- cards ---------- */
.sef-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; padding-top: 10px; }
.sef-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; border-radius: 14px; background: var(--raised); }
.sef-card b { font-size: 16px; }
.sef-card span { font-size: 13px; color: var(--dim); line-height: 1.35; }
.sef-card em { font-size: 14px; font-style: normal; font-weight: 700; color: var(--violet-bright); }
.sef-card.sef-gold { box-shadow: inset 0 0 0 2px var(--gold); }
.sef-card.sef-gold b, .sef-card.sef-gold em { color: var(--gold); }

/* ---------- contest ---------- */
.sef-duo { width: 100%; display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.sef-grp { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; padding: 12px; border-radius: 12px; background: var(--raised); }
.sef-grp b { font-size: 14px; }
.sef-grp span { font-size: 12.5px; font-weight: 700; color: var(--dim); }
.sef-hold { grid-column: 1 / 3; height: 12px; border-radius: 6px; background: var(--surface); overflow: hidden; }
.sef-hold i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .9s cubic-bezier(.3,.7,.3,1); }
.sef-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; padding-top: 14px; }
.sef-list div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 6px; border-radius: 12px; background: var(--raised); text-align: center; }
.sef-list b { font-size: 15px; color: var(--gold); }
.sef-list span { font-size: 13px; color: var(--dim); }

/* ---------- sources ---------- */
.sef-srcs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.sef-src { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: var(--raised); transition: box-shadow .25s, background .25s; }
.sef-src b { font-size: 14px; }
.sef-src span { font-size: 13px; color: var(--dim); line-height: 1.3; }
.sef-src.sef-s0 { box-shadow: inset 0 0 0 2px var(--gold); }
.sef-src.sef-s0 b { color: var(--gold); }
.sef-src.on { background: rgba(252,192,80,.16); }

@media (max-height: 700px) {
  .sef-hero img { max-height: 30vh; }
  .sef-src { padding: 9px 10px; }
  .sef-track { margin-top: 10px; }
}
