/* Hero phone 1: the student home screen, built in HTML/CSS. */
.ph-front {
  position: absolute; top: 0; inset-inline-start: 0; width: 258px; height: 530px; overflow: hidden;
  border: 9px solid var(--ink); border-radius: 42px; background: var(--teal-canvas);
  box-shadow: 0 40px 80px -24px rgba(8, 76, 67, 0.7); animation: floatA 6s ease-in-out infinite;
}
.pf-head { position: relative; overflow: hidden; padding: 12px 14px 16px; color: var(--white); background: linear-gradient(165deg, #0e7c6b, #1fb89b); }
.pf-head .circle { position: absolute; width: 150px; height: 150px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); top: -60px; inset-inline-end: -40px; }
.pf-status { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; }
.pf-hello { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.pf-avatar {
  width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center;
  background: var(--teal-pale); color: var(--teal-ink); font-size: 12px; font-weight: 800;
}
.pf-hello div { line-height: 1.2; }
.pf-hello span { display: block; font-size: 10px; }
.pf-hello b { font-size: 15px; }

.pf-streak {
  position: relative; display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28);
}
.pf-ring { position: relative; width: 62px; height: 62px; }
.pf-ring svg { transform: rotate(-90deg); }
.pf-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; }
.pf-streak > div:last-child { line-height: 1.3; }
.pf-streak b.days { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.pf-streak span { font-size: 9.5px; }

.pf-body { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.pf-body > b { font-size: 11px; color: var(--ink); }
.pf-continue {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--white);
  box-shadow: 0 6px 16px -10px rgba(8, 76, 67, 0.35);
}
.pf-play { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--physics-tint); color: var(--physics); }
.pf-continue > div { flex: 1; min-width: 0; line-height: 1.3; }
.pf-continue small { display: block; font-size: 9px; color: var(--muted); }
.pf-continue b { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.track { height: 5px; border-radius: 5px; overflow: hidden; background: var(--white); margin-top: 5px; }
.track.tint { background: var(--physics-tint); }
.fill {
  height: 100%; border-radius: 5px; transform-origin: var(--bar-origin);
  animation: bar 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0.6s) both;
}
.pf-subjects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-subject { display: flex; flex-direction: column; justify-content: space-between; height: 92px; padding: 10px; border-radius: 14px; }
.pf-subject b { font-size: 12px; }
.pf-subject small { font-size: 9px; color: var(--body); }
.pf-subject.physics { background: var(--physics-tint); color: var(--physics); }
.pf-subject.chem { background: var(--chem-tint); color: var(--chem); }

.pf-tabs {
  position: absolute; bottom: 0; inset-inline: 0; height: 50px; display: flex; justify-content: space-around; align-items: center;
  background: var(--white); border-top: 1px solid var(--teal-line); color: var(--muted);
}
.pf-tabs .on { color: var(--teal); }
.pf-ring circle { fill: none; }
.pf-ring .rt { stroke: rgba(255, 255, 255, 0.25); }
.pf-ring .rf { stroke: var(--white); stroke-linecap: round; }
.flame { display: flex; color: var(--warning-bright); }
