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

/* the drive */
.dst-drive { position: relative; flex: 1; width: 100%; min-height: 360px; overflow: hidden; background: #070A12; }
.dst-road { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .35s; }
.dst-drive.blind .dst-road { opacity: 0; }
.dst-speed { position: absolute; left: 16px; top: 12px; display: flex; align-items: baseline; gap: 4px; padding: 4px 10px; border-radius: 10px; background: rgba(10,14,26,.7); border: 1px solid var(--line); transition: opacity .3s; }
.dst-speed b { font: 800 22px var(--sans); color: var(--text); font-variant-numeric: tabular-nums; }
.dst-speed span { font: 700 12px var(--sans); color: var(--dim); }
.dst-drive.blind .dst-speed { opacity: 0; }
.dst-phone { position: absolute; left: 50%; bottom: 7%; translate: -50% 0; width: 250px; min-height: 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border-radius: 16px; background: rgba(234,227,215,.95); border: 0; color: #0A0E1A; text-align: left; box-shadow: 0 0 30px rgba(169,155,255,.45); cursor: pointer; }
.dst-phone:disabled { cursor: default; opacity: 0; transition: opacity .2s; }
.dst-from { font: 800 13px var(--sans); }
.dst-msg { font: 600 15px var(--sans); }
.dst-phone.buzz { animation: dstBuzz .5s ease-in-out 4; }
@keyframes dstBuzz { 10%, 50% { rotate: -3deg; } 30%, 70% { rotate: 3deg; } 90% { rotate: 0deg; } }
.dst-thread { position: absolute; inset: 14px 16px 16px; display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; padding: 18px 14px; border-radius: 24px; background: var(--surface); border: 2px solid var(--line-strong); animation: dstOpen .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes dstOpen { from { opacity: 0; scale: .9; } }
.dst-thread p { margin: 0; align-self: flex-start; max-width: 85%; padding: 9px 13px; border-radius: 18px 18px 18px 6px; background: var(--raised); font: 600 16px/1.3 var(--sans); color: var(--text); }

/* the distance */
.dst-readout { display: flex; gap: 14px; justify-content: center; }
.dst-readout div { display: flex; flex-direction: column; align-items: center; min-width: 120px; padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.dst-readout b { font: 800 28px var(--sans); color: var(--violet-bright); font-variant-numeric: tabular-nums; line-height: 1.1; }
.dst-readout span { font: 600 12.5px var(--sans); color: var(--dim); }
.dst-field { display: block; width: 100%; max-width: 380px; height: auto; overflow: visible; }
.dst-grass { fill: #1F5A3A; }
.dst-end { fill: #17462D; }
.dst-yd line { stroke: rgba(234,227,215,.45); stroke-width: 1; }
.dst-fl { font: 600 13px var(--sans); fill: var(--dim); }
.dst-you line { stroke: var(--violet-bright); stroke-width: 3; }
.dst-you circle { fill: var(--violet-bright); }
.dst-you text { font: 800 13px var(--sans); fill: var(--violet-bright); }
.dst-five { transition: opacity .4s; }
.dst-five line { stroke: var(--gold); stroke-width: 3; stroke-dasharray: 5 4; }
.dst-five circle { fill: var(--gold); }
.dst-five text { font: 800 13px var(--sans); fill: var(--gold); }

/* the call */
.dst-chart { width: 100%; max-width: 330px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dst-chart p { margin: 0; font: 700 13px var(--sans); color: var(--dim); }
.dst-bars { display: flex; gap: 10px; width: 100%; height: 160px; align-items: flex-end; }
.dst-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.dst-bar em { font: 800 16px var(--sans); font-style: normal; color: var(--text); min-height: 20px; }
.dst-bar i { display: block; width: 100%; height: 0; border-radius: 8px 8px 3px 3px; background: var(--mint); transition: height .5s cubic-bezier(.2,.8,.2,1); }
.dst-bar.dst-call i { background: var(--gold); }
.dst-bar span { font: 600 12px/1.2 var(--sans); color: var(--dim); text-align: center; min-height: 30px; }

/* eyes, mind, hands */
.dst-three.choices { display: flex; flex-direction: row; gap: 10px; width: 100%; max-width: 360px; }
.dst-three .choice { flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 120px; padding: 12px 6px; }
.dst-three .choice svg { width: 52px; height: 52px; fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linejoin: round; }
.dst-three .choice span { font: 700 14px var(--sans); }

/* the burn unit */
.dst-pic { display: block; width: 100%; max-width: 380px; height: auto; max-height: 280px; object-fit: contain; border-radius: 14px; }
.dst-thumb { max-height: 150px; }
.dst-pain { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 8px; }
.dst-pain p { margin: 0; font: 700 13px var(--sans); color: var(--dim); text-align: center; }
.dst-pr { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 8px; }
.dst-pr span { font: 700 13px var(--sans); color: var(--text); }
.dst-track { height: 18px; border-radius: 9px; background: var(--raised); overflow: hidden; }
.dst-track i { display: block; height: 100%; border-radius: 9px; background: #FB9679; }
.dst-full { width: 100%; }
.dst-game { width: 0; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.dst-hide { visibility: hidden; }

@media (max-height: 700px) {
  .dst-drive { min-height: 300px; }
  .dst-thread p { font-size: 15px; }
  .dst-readout b { font-size: 24px; }
  .dst-bars { height: 120px; }
  .dst-three .choice { min-height: 100px; }
  .dst-pic { max-height: 220px; }
  .dst-thumb { max-height: 110px; }
}
