/* Doomscrolling lesson. Everything scoped under .ds-*. */

.ds-sc { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ds-hero { width: min(92%, 340px); }
.ds-hero img { width: 100%; display: block; }
.ds-cap { font: 700 13px var(--sans); color: var(--dim); text-align: center; }

/* two headlines */
.ds-heads { width: min(100%, 340px); display: flex; flex-direction: column; gap: 8px; }
.ds-hc { font: 700 13px var(--sans); color: var(--dim); text-align: center; }
.ds-h { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ds-h i { font: 700 13px var(--mono); font-style: normal; color: var(--bg); background: var(--dim); border-radius: 6px; padding: 2px 7px; }
.ds-h span { font: 700 16px var(--serif); color: var(--text); line-height: 1.25; }
.ds-verdict { width: min(100%, 340px); display: none; flex-direction: column; gap: 6px; }
.ds-sc.shown .ds-verdict { display: flex; animation: cardIn .3s both; }
.ds-vr { display: flex; justify-content: space-between; align-items: center; font: 600 14px var(--sans); color: var(--dim); padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); }
.ds-vr b { font-weight: 700; }
.ds-vr.bad b { color: var(--mint); } .ds-vr.good b { color: var(--red); }

/* the headline machine */
.ds-mk { width: min(100%, 340px); font: 700 21px var(--serif); color: var(--text); line-height: 1.9; text-align: center; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ds-w { font: inherit; color: var(--text); min-height: 44px; padding: 0 10px; margin: 0 2px; border-radius: 10px; border: 2px dashed var(--line-strong); background: transparent; cursor: pointer; }
.ds-w[data-k="neg"] { border: 2px solid var(--red); color: #F07A7E; }
.ds-w[data-k="pos"] { border: 2px solid var(--mint); color: var(--mint); }
.ds-rule { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font: 600 13px var(--sans); color: var(--dim); }
.ds-rule .neg b { color: #F07A7E; } .ds-rule .pos b { color: var(--mint); }
.ds-meter { font: 600 14px var(--sans); color: var(--dim); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); opacity: 0; transition: opacity .25s; }
.ds-meter.on { opacity: 1; }
.ds-meter b { font: 700 17px var(--mono); color: var(--text); }

/* Boston */
.ds-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 340px); }
.ds-pair div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 6px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ds-pair img { width: 100%; max-width: 150px; display: block; margin-bottom: 4px; }
.ds-pair b { font: 700 14px var(--sans); color: var(--text); }
.ds-pair small { font: 500 12px var(--sans); color: var(--dim); }
.ds-bars { width: min(100%, 340px); display: none; flex-direction: column; gap: 8px; }
.ds-sc.shown .ds-bars { display: flex; animation: cardIn .3s both; }
.ds-sc.shown .ds-pair img { display: none; }
.ds-bt { font: 700 13px var(--sans); color: var(--dim); text-align: center; }
.ds-br { display: grid; grid-template-columns: 116px 1fr 44px; gap: 8px; align-items: center; font: 600 13px var(--sans); color: var(--dim); }
.ds-br u { display: block; height: 14px; border-radius: 7px; background: var(--surface); overflow: hidden; }
.ds-br u i { display: block; width: 0; height: 100%; border-radius: 7px; transition: width .7s cubic-bezier(.3,1,.4,1); }
.ds-br.there i { background: var(--violet-bright); } .ds-br.tv i { background: var(--red); }
.ds-br b { font: 700 15px var(--mono); color: var(--text); text-align: right; }

/* the loop */
.ds-loop { width: min(100%, 320px); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ds-loop > i { font-style: normal; color: var(--faint); font-size: 15px; line-height: 1; }
.ds-ls { width: 100%; text-align: center; font: 700 14px var(--sans); color: var(--faint); padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line); transition: color .3s, border-color .3s; }
.ds-ls.on { color: var(--text); border: 1px solid var(--violet-bright); }
.ds-ls.ds-last.on { border-color: var(--red); color: #F07A7E; }
.ds-loop .ds-slot { width: 100%; min-height: 44px; flex-direction: row; justify-content: space-between; padding: 4px 14px; box-sizing: border-box; }
.ds-loop .ds-slot .n { font-size: 12px; }
.ds-loop .ds-slot .v { font-size: 14.5px; }
.ds-loop .ds-ls.on { min-height: 44px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.ds-bank .word { padding: 8px 14px; font-size: 14px; }
.ds-loop em { font: 600 13px var(--sans); font-style: normal; color: var(--faint); opacity: 0; transition: color .3s, opacity .3s; }
.ds-loop.round em { color: #F07A7E; opacity: 1; }

/* three feeds */
.ds-feeds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(100%, 340px); }
.ds-fd { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ds-ph { width: 72px; height: 112px; border-radius: 14px; border: 2px solid var(--line-strong); background: var(--surface); display: flex; flex-direction: column; gap: 6px; padding: 10px 8px; box-sizing: border-box; }
.ds-ph i { display: block; height: 22px; border-radius: 5px; }
.ds-fd.bad .ds-ph i { background: rgba(216,85,85,.55); }
.ds-fd.kind .ds-ph i { background: rgba(63,214,154,.5); }
.ds-fd b { font: 700 13px var(--sans); color: var(--text); line-height: 1.2; }
.ds-fd em { font: 700 13px var(--sans); font-style: normal; min-height: 16px; }
.ds-fd.bad em { color: #F07A7E; } .ds-fd.kind em { color: var(--mint); }

@media (max-height: 700px) {
  .ds-hero { width: min(80%, 280px); }
  .ds-pair img { max-width: 110px; }
  .ds-ph { width: 60px; height: 90px; }
  .ds-ls { padding: 7px 10px; }
  .ds-h { padding: 9px 12px; }
}
.ds-note { font: 500 13px var(--sans); color: var(--dim); text-align: center; max-width: 300px; }
