/* Mind wandering lesson. All rules scoped under .mwd-* */
.mwd-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* the ping */
.mwd-ping { width: 100%; max-width: 330px; padding: 12px 14px 14px; border-radius: 18px; background: rgba(234,227,215,.96); color: #0A0E1A; box-shadow: 0 0 14px rgba(169,155,255,.35); animation: mwdDrop .5s cubic-bezier(.2,.8,.2,1.2) both; box-sizing: border-box; }
@keyframes mwdDrop { from { opacity: 0; translate: 0 -30px; } }
.mwd-ph { display: flex; align-items: center; gap: 8px; }
.mwd-ph i { width: 22px; height: 22px; border-radius: 6px; background: var(--violet); }
.mwd-ph b { font: 800 13px var(--sans); }
.mwd-ph span { margin-left: auto; font: 600 12px var(--sans); color: #5A5550; }
.mwd-ping p { margin: 8px 0 0; font: 700 17px/1.3 var(--sans); }

/* the crowd: 100 people */
.mwd-crowd { display: grid; grid-template-columns: repeat(20, minmax(0, 14px)); gap: 4px 3px; justify-content: center; }
.mwd-p { display: block; }
.mwd-p svg { display: block; width: 100%; height: auto; fill: var(--line-strong); }
.mwd-thought { fill: var(--violet-bright); opacity: 0; transition: opacity .25s; }
.mwd-p.on svg { fill: var(--dim); }
.mwd-p.on .mwd-thought { opacity: 1; }
.mwd-tally { font: 700 14px var(--sans); color: var(--dim); text-align: center; }
.mwd-tally b { font: 800 22px var(--sans); color: var(--violet-bright); font-variant-numeric: tabular-nums; }

/* spot the wanderer */
.mwd-trio.choices { display: flex; flex-direction: row; align-items: stretch; gap: 8px; width: 100%; max-width: 370px; }
.mwd-trio .choice { flex: 1; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; min-height: 0; padding: 10px 6px 12px; }
.mwd-trio .choice svg { width: 34px; height: auto; fill: var(--dim); }
.mwd-do { font: 800 14px/1.2 var(--sans); color: var(--text); text-align: center; }
.mwd-bub { position: relative; padding: 8px 8px; border-radius: 16px; background: var(--raised); border: 2px solid var(--violet-bright); font: 600 13px/1.25 var(--sans); color: var(--text); text-align: center; min-height: 50px; display: flex; align-items: center; }

/* doing vs. thinking */
.mwd-pred { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 10px; }
.mwd-pred p { margin: 0; font: 700 13px var(--sans); color: var(--dim); text-align: center; }
.mwd-pr { display: flex; flex-direction: column; gap: 4px; }
.mwd-pr span { font: 700 14px var(--sans); color: var(--text); }
.mwd-track { height: 20px; border-radius: 10px; background: var(--raised); overflow: hidden; }
.mwd-track i { display: block; height: 100%; width: 0; border-radius: 10px; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.mwd-doing { background: var(--gold); }
.mwd-mind { background: var(--violet-bright); }
.mwd-x { min-height: 18px; font: 800 14px var(--sans); color: var(--violet-bright); text-align: center; }

/* activities */
.mwd-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 330px; }
.mwd-act { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.mwd-act span { font: 700 14px var(--sans); color: var(--text); }
.mwd-act b { font: 800 13px var(--sans); color: var(--faint); white-space: nowrap; }
.mwd-act.mwd-hi b { color: var(--gold); }
.mwd-act.mwd-low { border-color: var(--mint); background: rgba(63,214,154,.1); }
.mwd-act.mwd-low b { color: var(--mint); }

/* faces */
.mwd-faces { display: flex; gap: 10px; justify-content: center; width: 100%; max-width: 350px; }
.mwd-f { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mwd-f span { font: 700 13px/1.25 var(--sans); color: var(--dim); }
.mwd-fc { position: relative; width: 84px; height: 84px; }
.mwd-fc svg { display: block; width: 100%; height: 100%; }
.mwd-fc svg circle:first-child { fill: var(--gold); }
.mwd-eye { fill: #0A0E1A; }
.mwd-mouth { fill: none; stroke: #0A0E1A; stroke-width: 3.5; stroke-linecap: round; }
.mwd-nice svg { opacity: 0; transition: opacity .4s; }
.mwd-nice em { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px dashed var(--line-strong); font: 800 30px var(--sans); font-style: normal; color: var(--dim); transition: opacity .3s; }
.mwd-later { opacity: 0; transition: opacity .4s .3s; }
.mwd-shown .mwd-nice svg { opacity: 1; }
.mwd-shown .mwd-nice em { opacity: 0; }
.mwd-shown .mwd-later { opacity: 1; }
.mwd-note { margin: 0; font: 600 12px var(--sans); color: var(--faint); }

@media (max-height: 700px) {
  .mwd-crowd { grid-template-columns: repeat(20, minmax(0, 13px)); }
  .mwd-ping p { font-size: 16px; }
  .mwd-fc { width: 66px; height: 66px; }
  .mwd-bub { font-size: 12.5px; }
}
