/* Testing effect. Everything scoped under .te-*. */

.te-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.te-note { font-size: 13px; color: var(--dim); text-align: center; max-width: 300px; }
.te-hero img { display: block; width: 300px; max-width: 100%; max-height: 34vh; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(123, 92, 253, .3)); }
.te-hero.wide img { width: 340px; }

/* the two kinds of block */
.te-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 330px; }
.te-bk { display: flex; flex-direction: column; gap: 6px; padding: 16px 12px; border-radius: 14px; text-align: center; }
.te-bk b { font: 700 20px var(--sans); }
.te-bk span { font-size: 14px; line-height: 1.35; color: var(--dim); }
.te-bk.r { background: rgba(169, 155, 255, .14); border: 1.5px solid rgba(169, 155, 255, .45); } .te-bk.r b { color: var(--violet-bright); }
.te-bk.w { background: rgba(63, 214, 154, .12); border: 1.5px solid rgba(63, 214, 154, .45); } .te-bk.w b { color: var(--mint); }

/* plans */
.te-plans { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.te-plan { display: flex; flex-direction: column; gap: 5px; }
.te-plan > b { font: 700 14px var(--sans); color: var(--text); }
.te-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; width: 100%; }
.te-cell { height: 32px; border-radius: 9px; display: grid; place-items: center; font: 700 13px var(--sans); border: 1.5px dashed var(--line-strong); }
.te-cell.r { background: rgba(169, 155, 255, .18); color: var(--violet-bright); border: 1.5px solid rgba(169, 155, 255, .4); }
.te-cell.w { background: rgba(63, 214, 154, .16); color: var(--mint); border: 1.5px solid rgba(63, 214, 154, .45); }

/* the lab */
.te-lab { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 10px; }
.te-now { display: flex; flex-direction: column; gap: 5px; }
.te-pn { font: 700 13px var(--sans); color: var(--dim); }
.te-res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.te-grp { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px; border-radius: 14px; background: var(--raised); border: 1.5px solid var(--line); }
.te-gt { font-size: 12px; font-weight: 700; color: var(--dim); letter-spacing: .04em; text-transform: uppercase; }
.te-trio { display: flex; gap: 8px; align-items: flex-end; height: 130px; border-bottom: 2px solid var(--line-strong); }
.te-col { width: 38px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.te-col i { display: block; width: 30px; height: 0; border-radius: 6px 6px 2px 2px; opacity: .55; transition: height .6s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.te-col b { font: 700 12px var(--mono); color: var(--dim); min-height: 15px; }
.te-col.cur i { opacity: 1; }
.te-col.cur b { color: var(--text); }
.te-col.k0 i { background: var(--violet-bright); }
.te-col.k1 i { background: var(--gold); }
.te-col.k2 i { background: var(--mint); }
.te-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.te-kk { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.te-kk::before { content: ''; width: 10px; height: 10px; border-radius: 3px; }
.te-kk.k0 { color: var(--violet-bright); } .te-kk.k0::before { background: var(--violet-bright); }
.te-kk.k1 { color: var(--gold); } .te-kk.k1::before { background: var(--gold); }
.te-kk.k2 { color: var(--mint); } .te-kk.k2::before { background: var(--mint); }
.te-run.done { border-color: var(--line); color: var(--dim); }

/* how sure */
.te-sure { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 14px; }
.te-srow { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 5px 10px; align-items: center; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.te-srow.in { opacity: 1; transform: none; }
.te-srow .te-kk { font-size: 13px; }
.te-sbar { grid-column: 1; position: relative; height: 22px; border-radius: 11px; background: rgba(234, 227, 215, .08); overflow: hidden; }
.te-sbar i { display: block; height: 100%; border-radius: 11px; background: var(--violet); }
.te-sbar b { position: absolute; left: 10px; top: 2px; font: 700 13px var(--mono); color: #fff; }
.te-srow em { grid-column: 2; grid-row: 2; font-style: normal; font: 700 14px var(--mono); color: var(--text); }

/* Swahili */
.te-card { display: flex; align-items: center; gap: 10px; }
.te-card > i { font-style: normal; color: var(--faint); font-size: 20px; }
.te-fc { min-width: 116px; padding: 10px 16px; border-radius: 14px; background: #F4EEE2; color: #1B1A22; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.te-fc span { font-size: 12px; font-weight: 700; color: #6B6558; letter-spacing: .06em; text-transform: uppercase; }
.te-fc b { font: 700 24px var(--serif); }
.te-panel { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 8px; }
.te-after { font-size: 13px; font-weight: 700; color: var(--dim); }
.te-sw { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 2px solid var(--line-strong); border-bottom-width: 4px; background: var(--raised); color: var(--text); font: 700 16px var(--sans); }
.te-tg { position: relative; width: 48px; height: 28px; border-radius: 14px; background: rgba(234, 227, 215, .18); transition: background .2s; }
.te-tg i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform .2s; }
.te-sw.on .te-tg { background: var(--mint); }
.te-sw.on .te-tg i { transform: translateX(20px); }
.te-out { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 14px; background: rgba(234, 227, 215, .06); }
.te-out span { font-size: 13px; font-weight: 700; color: var(--dim); }
.te-out b { font: 700 22px var(--mono); color: var(--red); transition: color .2s; }
.te-out b.hi { color: var(--mint); }

.te-deck { display: grid; grid-template-columns: 1fr; gap: 8px; }
.te-deck .te-fc { min-width: 104px; padding: 6px 12px; }
.te-deck .te-fc b { font-size: 19px; }
.te-fc.q b { color: #6B6558; }

/* why */
.te-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 340px; }
.te-way { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 10px; border-radius: 14px; background: var(--raised); border: 1.5px solid var(--line); text-align: center; }
.te-way.on { border-color: var(--mint); }
.te-way b { font: 700 15px var(--sans); color: var(--text); }
.te-way span { font-size: 14px; line-height: 1.35; color: var(--dim); }
.te-pg { width: 60px; height: 72px; overflow: visible; }
.te-pg rect { fill: #F4EEE2; }
.te-pg path { stroke: #6B6558; stroke-width: 3.5; stroke-linecap: round; fill: none; }
.te-pg .pen { fill: var(--gold); stroke: none; }

/* two people */
.te-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 340px; }
.te-pp { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: var(--raised); border: 1.5px solid var(--line); }
.te-pp b { font: 700 17px var(--sans); color: var(--text); }
.te-pp span { font-size: 14px; line-height: 1.35; color: var(--dim); }

@media (max-height: 700px) {
  .te-hero img { max-height: 28vh; }
  .te-trio { height: 100px; }
  .te-cell { height: 28px; }
  .te-deck { gap: 5px; }
  .te-deck .te-fc { padding: 3px 12px; }
  .te-deck .te-card + .te-card .te-fc span { display: none; }
  .te-plans { gap: 8px; }
}
