/* Pitch Safari (board 872): the level intro (item 5) and the jump test (item 4), drawn by public/intro.js.
   Only play.html's own variables and classes (.scr, .b, .card, .bub, .goals/.goal, .pbar, .banner, .stats/.stat,
   .char, .ib); nothing here restyles them outside these screens. The jump test follows spec/sections-jump-spec.md
   (§ below). Nothing scrolls at 390x664 or 375x548. */
.pi{background:var(--page)}

/* ---------- the level intro ---------- */
.pi-h{height:56px;flex:none;display:flex;align-items:center;padding:0 16px;position:relative}
.pi-h .pi-t{position:absolute;left:56px;right:56px;margin:0;text-align:center;font-size:25px;line-height:31px;font-weight:700;color:var(--ink)}
.pi-lb{flex:1;min-height:0;display:flex;flex-direction:column;padding:4px 16px 0}
.pi-who{display:flex;align-items:flex-start;gap:10px;flex:none}
.pi-inv{width:122px;height:132px;flex:none;display:flex;align-items:center;justify-content:center}
.pi-inv .char{width:122px;height:132px}
/* No drawing yet (levels after 5): the landing's face badge, with the investor's initial. */
.pi-face{width:96px;height:96px;border-radius:50%;background:#fff;border:2px solid var(--line);display:grid;place-items:center;
  color:var(--purple);font-size:44px;line-height:1;font-weight:800}
.pi-id{flex:1;min-width:0;display:flex;flex-direction:column;padding-top:6px}
.pi-name{font-size:22px;line-height:27px;font-weight:700;color:var(--ink)}
.pi-type{font-size:15px;line-height:20px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--blue)}
.pi-id .bub{margin:10px 0 0 12px;font-size:17px;line-height:23px;border-radius:15px;padding:8px 12px;font-weight:700}
.pi-id .bub .tail{top:24px;margin-top:0}
.pi-learn{flex:none;margin-top:14px;display:flex;flex-direction:column;gap:2px}
.pi-learn small{font-size:15px;line-height:20px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--dim)}
.pi-learn span{font-size:17px;line-height:23px;font-weight:700;color:var(--head)}
.pi-lb .goals{margin-top:12px}
/* later levels have longer goals: a row grows to two lines here (only on this screen) */
.pi-lb .goal{height:auto;min-height:46px;padding:4px 0;line-height:21px}
.pi-time{flex:none;align-self:center;display:flex;align-items:center;gap:8px;margin-top:12px;font-size:20px;line-height:24px;font-weight:700;color:var(--soft);font-variant-numeric:tabular-nums}
.pi-time svg{width:24px;height:24px;color:var(--soft)}
.pi .lvf .b{height:50px}

/* ---------- §3.9 the jump test's intro: no header, no X, no bar; the mascot, the heading, CONTINUE over MAYBE LATER ---------- */
.pi-ji{align-items:center}
.pi-ji .pi-mid{width:100%;flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 16px}
.pi-ji .char{width:200px;height:216px}
.pi-ji h2,.pi-je h2{margin:28px 0 0;max-width:340px;font-size:20px;line-height:26px;font-weight:700;color:var(--ink);text-align:center}
.pi-ft{width:100%;flex:none;padding:16px 16px 20px;display:flex;flex-direction:column;align-items:stretch}
.pi-ft .b.txt{margin-top:4px;width:100%}

/* ---------- §3.11 the test shell: X, the bar and three hearts at the top; the question; CHECK at the bottom ---------- */
.pi-jq .lvh{gap:16px}
.pi-hearts{display:flex;gap:5px;flex:none}
.pi-hearts i{position:relative;width:25px;height:22px;display:block}
.pi-hearts svg{width:25px;height:22px;display:block}
.pi-hearts path{fill:var(--red);transition:fill .2s}
.pi-hearts i.gone path{fill:var(--off)}
.pi-qb{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;padding:8px 16px 0}
.pi-qb .ttl{flex:none}
.pi-q{display:flex;align-items:center;gap:6px;flex:none;margin-top:6px}
.pi-q .char{width:97px;height:105px;flex:none}
.pi-q .bub{flex:1;min-width:0;margin-left:12px;font-size:19px;line-height:25px;padding:10px 14px}
/* §3.12: full-width choice cards, text centred; picked turns the selected sky; right turns the correct colours (§3.13) */
.pi-ch{flex:none;display:flex;flex-direction:column;gap:10px;margin-top:18px}
.pi-ch .card{justify-content:center;text-align:center;min-height:57px;padding:8px 14px;font-size:17px;line-height:22px}
.pi-ch .card.ok{background:var(--ok-face);border-color:var(--ok);box-shadow:0 2px 0 var(--ok);color:var(--ok)}
.pi-ch.locked .card{pointer-events:none}
/* the lost heart's red copy fades and moves away (§3.13) */
.pi-fly{position:fixed;z-index:61;width:25px;height:22px;pointer-events:none}
.pi-fly svg{width:100%;height:100%;display:block}
.pi-fly path{fill:var(--red)}
/* §3.14 the encouragement screen: the mascot peeks in from the left edge, a bubble at its right */
.pi-enc{flex:1;min-height:0;position:relative;display:flex;align-items:center}
.pi-enc .char{position:absolute;left:-46px;top:50%;width:150px;height:162px;margin-top:-81px}
.pi-enc .bub{position:relative;margin-left:112px;max-width:250px;font-size:20px;line-height:26px;font-weight:700}

/* ---------- §3.15 the fail screen, §3.16 the pass screen: no X, bar or hearts ---------- */
.pi-je{align-items:center}
.pi-je .pi-mid{width:100%;flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 16px}
.pi-je .char{width:170px;height:184px}
.pi-je h2{font-size:24px;line-height:32px}
.pi-je .pi-won{margin:22px 0 0;font-size:32px;line-height:40px;font-weight:800;color:var(--sun-ink);text-align:center}
.pi-je .stats{margin-top:20px;padding:0;gap:12px}
.pi-je .stat{flex:1 1 0;width:auto;min-width:0;max-width:163px}
.pi-je .stat .sv svg{width:24px;height:24px}

@media (max-height:600px){
  .pi-h{height:48px}
  .pi-h .pi-t{font-size:22px;line-height:28px}
  .pi-inv,.pi-inv .char{width:92px;height:100px}
  .pi-face{width:80px;height:80px;font-size:36px}
  .pi-name{font-size:19px;line-height:24px}
  .pi-type{font-size:13px;line-height:17px}
  .pi-id{padding-top:0}
  .pi-id .bub{margin-top:6px;font-size:16px;line-height:21px;padding:6px 10px}
  .pi-id .bub .tail{top:16px}
  .pi-learn{margin-top:8px}
  .pi-learn small{font-size:13px;line-height:17px}
  .pi-learn span{font-size:16px;line-height:21px}
  .pi-lb .goals{margin-top:8px}
  .pi-lb .goal{min-height:38px;padding:3px 0;line-height:19px}
  .pi-time{margin-top:8px;font-size:18px}
  .pi-ji .char{width:140px;height:151px}
  .pi-ji h2{margin-top:18px}
  .pi-ft{padding:10px 16px 14px}
  .pi-q .char{width:74px;height:80px}
  .pi-q .bub{font-size:17px;line-height:22px;padding:8px 12px}
  .pi-ch{gap:8px;margin-top:10px}
  .pi-ch .card{min-height:48px;padding:5px 12px;font-size:16px;line-height:20px}
  .pi-enc .char{width:120px;height:130px;margin-top:-65px;left:-38px}
  .pi-enc .bub{margin-left:90px;font-size:18px;line-height:23px}
  .pi-je .char{width:120px;height:130px}
  .pi-je h2{margin-top:16px;font-size:22px;line-height:28px}
  .pi-je .pi-won{margin-top:14px;font-size:28px;line-height:34px}
  .pi-je .stats{margin-top:14px}
}
