/* Hero phone 2: the quiz result screen, with falling confetti. */
.ph-back {
  position: absolute; top: 40px; inset-inline-end: 0; width: 236px; height: 480px; overflow: hidden;
  border: 8px solid var(--ink); border-radius: 38px; background: var(--white);
  box-shadow: 0 30px 60px -20px rgba(8, 76, 67, 0.6); animation: floatB 7s ease-in-out infinite;
}
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti span { position: absolute; top: 0; animation: confetti 3.4s linear infinite; }

.pb-body { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 14px 0; }
.pb-title { font-size: 11px; font-weight: 800; color: var(--muted); }
.pb-score { position: relative; width: 110px; height: 110px; }
.pb-score svg { transform: rotate(-90deg); }
.pb-score > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.pb-score b { font-size: 28px; font-weight: 800; color: var(--ink); }
.pb-score span { font-size: 10px; font-weight: 800; color: var(--success); }

.pb-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
.pb-tile { padding: 8px 4px; border-radius: 12px; text-align: center; }
.pb-tile b { display: block; font-size: 14px; color: var(--ink); }
.pb-tile span { font-size: 9px; color: var(--muted); }
.pb-tile.streak { background: var(--chem-tint); }
.pb-tile.time { background: var(--teal-wash); }
.pb-tile.points { background: var(--physics-tint); }

.pb-rows { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.pb-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--teal-line);
  border-radius: 12px; font-size: 10.5px; font-weight: 600; color: var(--body);
}
.pb-row .mark {
  width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center;
  color: var(--white); font-size: 10px; background: var(--success);
}
.pb-row .mark.warn { background: var(--warning); }
.pb-row span:last-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-cta { width: 100%; padding: 10px; border-radius: 12px; background: var(--teal); color: var(--white); font-size: 11.5px; font-weight: 700; text-align: center; }
.pb-score circle { fill: none; }
.pb-score .rt { stroke: var(--teal-wash); }
.pb-score .rf { stroke: var(--teal); stroke-linecap: round; }
