/* Friendship lesson. All rules scoped under .frd-* */
.frd-sc { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 0 auto; }

/* the path: you on the left, Maya walking in */
.frd-path { position: relative; width: 100%; height: 270px; }
.frd-count { position: absolute; left: 0; top: 0; display: flex; align-items: baseline; gap: 6px; }
.frd-count b { font: 800 30px var(--sans); color: var(--gold); font-variant-numeric: tabular-nums; }
.frd-count span { font: 700 13px var(--sans); color: var(--dim); }
.frd-ground { position: absolute; left: 0; right: 0; bottom: 66px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--violet) 60%, var(--line-strong)); opacity: .8; }
.frd-mk { position: absolute; top: -6px; width: 2px; height: 16px; background: var(--text); opacity: 0; transition: opacity .5s; font-style: normal; }
.frd-on .frd-mk { opacity: 1; }
.frd-mk b, .frd-mk span { position: absolute; left: 50%; translate: -50% 0; white-space: nowrap; }
.frd-mk b { top: 20px; font: 800 13px var(--sans); color: var(--text); }
.frd-mk span { top: 36px; font: 700 12px var(--sans); color: var(--dim); }
.frd-mk:nth-child(2) b { top: -46px; }
.frd-mk:nth-child(2) span { top: -30px; }
.frd-mk:last-child b, .frd-mk:last-child span { color: var(--gold); }
.frd-you { position: absolute; left: 0; bottom: 70px; height: 128px; width: auto; filter: drop-shadow(0 10px 18px rgba(123, 92, 253, .3)); }
.frd-ylab { position: absolute; left: 20px; bottom: 50px; font: 800 12.5px var(--sans); color: var(--violet-bright); display: none; }
.frd-maya { position: absolute; bottom: 70px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; transition: left .15s linear; }
.frd-maya img { height: 128px; width: auto; filter: drop-shadow(0 10px 18px rgba(252, 192, 80, .25)); }
.frd-maya span { position: absolute; top: -20px; white-space: nowrap; font: 800 12.5px var(--sans); color: var(--gold); background: rgba(10, 8, 20, .7); padding: 1px 8px; border-radius: 999px; }
.frd-walking img { animation: frd-bob .32s ease-in-out infinite alternate; }
@keyframes frd-bob { to { translate: 0 -5px; } }
.frd-close .frd-maya img { filter: drop-shadow(0 0 18px rgba(252, 192, 80, .55)); }
.frd-desk { position: absolute; left: 0; top: 42px; font: 700 13px var(--sans); color: var(--dim); padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); opacity: .5; }
.frd-desk.frd-live { opacity: 1; }
.frd-desk b { color: var(--text); font-variant-numeric: tabular-nums; }
.frd-note { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: 600 12.5px var(--sans); color: var(--faint); }

/* Ana or Ben */
.frd-two { display: flex; flex-direction: column; gap: 8px; }
.frd-pal { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; border-radius: 16px; background: var(--surface); border: 2px solid var(--line-strong); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .3s, opacity .3s; }
.frd-pal:disabled { cursor: default; }
.frd-pal img { width: 60px; height: 60px; flex: none; object-fit: cover; object-position: top; border-radius: 50%; background: #2A2140; }
.frd-pal div { display: flex; flex-direction: column; gap: 1px; }
.frd-pal b { font: 700 19px var(--serif); }
.frd-pal span { font: 600 14.5px var(--sans); color: var(--dim); }
.frd-pal em { font-style: normal; font: 800 13px var(--sans); color: var(--faint); }
.frd-pal em:empty { display: none; }
.frd-same { padding: 10px 14px; }
.frd-same b { font: 700 16px var(--sans); }
.frd-pal.frd-yes { border-color: var(--gold); }
.frd-pal.frd-yes em { color: var(--gold); }
.frd-pal.frd-no { opacity: .75; }
.frd-pal.frd-miss { border-color: var(--red); }

@media (max-height: 700px) {
  .frd-path { height: 236px; }
  .frd-you, .frd-maya img { height: 104px; }
  .frd-pal img { width: 48px; height: 48px; }
}
