/* sprints.css - the look of the Sprints page (sprints.js; SPRINTS_TAB 0001)
   ------------------------------------------------------------------------
   Every number here is the approved drawings': Concept Art/sprints_week.html
   (.sbody, .sscroll, .wkp, .wkh, .wkl, .wks, .kbox, .scaret, .up, .pair,
   .pbtn, .pspr, .pquiz, .qzi, .lis, .stx, .sname, .sdesc, .qzl, .qzs, .sgo,
   .odot, .when, .shut, .open, .missed, .fqs, .shead, .soon, .sbar, .sthumb,
   .wlist, .wscroll; the overlay family .scrim, .dialog, .dtitle, .dbody,
   .drow, .dbtn, .blue) and Concept Art/sprints_tab.html (of P3 only .ls-ann
   and .confetti; of W4 only the 330 px pop-up; C1's and C2's switcher is
   nav.js's class picker, its look nav.css's, CLASS_PICKER 0001). The settled look (D1656, D1657) is the base's, with
   D1699's light: each week a list bubble lit by shell.css's tokens, every
   pop-up flat, the headlines' font named once as
   --font-headline in shell.css. Loaded from this origin, which is what the
   page's Content Security Policy allows: style-src 'self', so there is no
   inline style anywhere; a size sprints.js computes (the bean) is set through the element's style object.

   ⛔ Every symbol is drawn: the icons are SVG (sprints.js), the caret and
      the dots below; never a typed character. */

.sp-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.sp-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sp-icon {
  display: block;
  overflow: visible;
}

/* A word of app_words.json set inside its line (TranslateText's piece). */
.sp-page translate-text.sp-w,
.sp-page .sp-w .tt-text,
.sp-page .sp-w .tt-text p,
.sp-dialog .sp-dtitle translate-text.sp-w,
.sp-dialog .sp-dtitle .sp-w .tt-text,
.sp-dialog .sp-dtitle .sp-w .tt-text p,
.sp-dbtn translate-text.sp-w,
.sp-dbtn .sp-w .tt-text,
.sp-dbtn .sp-w .tt-text p {
  display: inline;
  margin: 0;
}

/* The band colors (CONCEPT_ART §1's band palette, D550): a course by its
   element. */
.sp-fire {
  color: #ED6A76;
}
.sp-water {
  color: #4E9BF0;
}
.sp-earth {
  color: #35E07E;
}
.sp-air {
  color: #F2C14E;
}
.sp-none {
  color: #8FA0B8;
}

/* ══ THE WEEKS (sprints_week.html .sbody, .sscroll): one panel per week,
   14 px from the sides, 10 px apart. ══ */
.sp-list {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.sp-scroll {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px 10px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sp-scroll::-webkit-scrollbar {
  display: none;
}

/* .sbar, .sthumb: the bean, 6 px, no track, only where something scrolls. */
.sp-bean-track {
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 6px;
  z-index: 3;
  width: 6px;
  visibility: hidden;
  pointer-events: none;
}
.sp-bean-track.sp-scrolls {
  visibility: visible;
}
.sp-bean {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 99px;
  background: #8FA3C4;
}

/* .wkp: the settings panel, a list bubble (D1699). */
.sp-wkp {
  flex: none;
  overflow: hidden;
  border: 1px solid #2C3850;
  border-radius: 18px;
  background-color: #1D2739;
  background-image: var(--lit-bubble);
  box-shadow: var(--lit-bubble-shadow);
}

/* .wkh: the label row, 54 px. */
.sp-wkh {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  column-gap: 10px;
  padding: 0 16px 0 18px;
}
.sp-wkl {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.sp-wkl.sp-faded {
  opacity: .5;
}
.sp-wks {
  display: flex;
  align-items: center;
  column-gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: #AEBBD0;
  white-space: nowrap;
}
.sp-wks.sp-red {
  color: #ED6A76;
}
.sp-fqs {
  color: #5C6B85;
}

/* .kbox, .scaret: caret 3, the stroke (D579), up when open. */
.sp-kbox {
  position: relative;
  flex: none;
  width: 18px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-caret {
  position: relative;
  top: -2px;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  border-right: 2px solid #6E7E99;
  border-bottom: 2px solid #6E7E99;
}
.sp-caret.sp-up {
  top: 2px;
  transform: rotate(-135deg);
}

/* .pair: each Sprint its own section, the panel's line above it. */
.sp-pair {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  padding: 10px;
  border-top: 1px solid #253045;
}

/* .pbtn: both buttons outlined in the neutral treatment (D510). */
.sp-btn {
  width: 100%;
  display: flex;
  align-items: center;
  column-gap: 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
}
.sp-btn.sp-shut {
  border-color: rgba(255, 255, 255, .10);
  background: transparent;
  cursor: default;
}
.sp-btn.sp-shut > .sp-ring,
.sp-btn.sp-shut > .sp-stx,
.sp-btn.sp-shut > .sp-qzl {
  opacity: .45;
}
.sp-btn.sp-open {
  border-color: #ED6A76;
  background: rgba(237, 106, 118, .10);
}
.sp-spr {
  min-height: 66px;
  padding: 11px 10px 11px 12px;
}
.sp-quiz {
  height: 54px;
  padding: 0 10px 0 12px;
}

/* .qzi: the 26 px ring; the microphone 15 px, the play (.lis) 16 px. */
.sp-ring {
  flex: none;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #5C6B85;
  border-radius: 50%;
  color: #C8D3E4;
}
.sp-ring .sp-icon {
  width: 15px;
  height: 15px;
}
.sp-ring.sp-lis .sp-icon {
  width: 16px;
  height: 16px;
}

.sp-stx {
  flex: 1;
  min-width: 0;
  display: block;
}
.sp-name {
  display: block;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
  color: #EAF0FA;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* Two lines at most (§1k). */
.sp-desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 2px;
  font-size: 14px;
  line-height: 19px;
  color: #AEBBD0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sp-qzl {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #EAF0FA;
  white-space: nowrap;
}
.sp-qzs {
  display: flex;
  align-items: center;
  column-gap: 7px;
  font-size: 16px;
  font-weight: 700;
  color: #EAF0FA;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sp-qzs.sp-red {
  color: #ED6A76;
}
.sp-qzs.sp-missed {
  font-weight: 600;
  color: #8A97AC;
}

/* .sgo: the chevron, 20 px. */
.sp-go {
  flex: none;
  width: 20px;
  height: 20px;
  color: #5C6B85;
}
.sp-go .sp-icon {
  width: 20px;
  height: 20px;
}
.sp-go.sp-red {
  color: #ED6A76;
}

/* .odot: the tab's badge and an open quiz's mark are the same dot. */
.sp-dot {
  flex: none;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ED6A76;
}

/* .when: the lock and the day, whole on a faded button. */
.sp-when {
  flex: none;
  display: flex;
  align-items: center;
  column-gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #7D8CA5;
  white-space: nowrap;
}
.sp-when .sp-lock {
  width: 14px;
  height: 14px;
}

/* .shead.soon: Coming up. */
.sp-head {
  flex: none;
  height: 16px;
  margin-top: 4px;
  margin-bottom: -2px;
  padding-left: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6E7E99;
}

/* Wide (sprints_week.html W1 to W3, .wlist, .wscroll): one column, each
   Sprint's two buttons the full width. */
.nv-wide .sp-scroll {
  padding: 2px 24px 10px;
}
.nv-wide .sp-bean-track {
  right: 9px;
}

/* ══ THE POP-UPS (§1c, D607): the scrim over the whole frame, the tab bar
   and the tiles included, and the dialog in its middle, the phone's 330 px
   on every screen (sprints_tab.html W4). ══ */
.sp-scrim {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(6, 9, 16, .62);
}
.sp-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 11;
  width: 330px;
  max-width: calc(100% - 32px);
  transform: translate(-50%, -50%);
  padding: 24px 20px 20px;
  border: 1px solid #37476B;
  border-radius: 20px;
  background-color: #22304A;
  text-align: center;
}
.sp-dtitle {
  /* The headlines' font (ART_FIX 0001, the Founder's ruling 3). */
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
}
.sp-dtitle.sp-fire {
  color: #ED6A76;
}
.sp-dtitle.sp-water {
  color: #4E9BF0;
}
.sp-dtitle.sp-earth {
  color: #35E07E;
}
.sp-dtitle.sp-air {
  color: #F2C14E;
}
.sp-dbody {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.5;
  color: #AEBBD0;
}
.sp-dbody translate-text {
  display: block;
}
/* TranslateText's shrink-wrapped line (its link centered on the words),
   itself centered in the box as the drawings center .dbody. */
.sp-dbody .tt-piece.tt-page {
  margin-left: auto;
  margin-right: auto;
}
.sp-dbody b {
  font-weight: 700;
  color: #FFFFFF;
}
.sp-dialog [lang="my"] .tt-text p {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  line-height: 1.95;
}
.sp-drow {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.sp-dbtn {
  flex: 1;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  font-size: 16px;
  font-weight: 600;
  color: #C8D3E4;
  text-align: center;
}
.sp-dbtn.sp-blue {
  border-color: #6FAEFF;
  background: rgba(111, 174, 255, .07);
  color: #6FAEFF;
}

/* sprints_tab.html P3 and W4, only the cheer: little Sai Thura on top of
   the score box (.dialog .ls-ann), 80 x 118, his feet 12 px into it; the
   figure's own stage is sized to it, its logo dots not drawn there. */
.sp-ann {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 12px);
  z-index: 13;
  width: 80px;
  height: 118px;
  margin-left: -40px;
  pointer-events: none;
}
.sp-ann .ls-stage {
  width: 80px;
  height: 118px;
  margin: 0;
}
.sp-ann .ls-stage .ls-fig {
  width: 80px;
  height: 118px;
}
.sp-ann .ls-dots {
  display: none;
}

/* sprints_tab.html P3, only the confetti, falling over the whole screen. */
.sp-confetti {
  position: fixed;
  inset: 0;
  z-index: 12;
  overflow: hidden;
  pointer-events: none;
}
.sp-confetti i {
  position: absolute;
  top: -20px;
  border-radius: 2px;
  animation-name: sp-fall-a;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.sp-confetti i:nth-child(even) {
  animation-name: sp-fall-b;
}
.sp-confetti i:nth-child(1) { left: 37%; animation-delay: .29s; animation-duration: 3.3s; background: #4E9BF0; width: 8px; height: 12px; }
.sp-confetti i:nth-child(2) { left: 74%; animation-delay: .58s; animation-duration: 3s; background: #35E07E; width: 10px; height: 14px; }
.sp-confetti i:nth-child(3) { left: 11%; animation-delay: .87s; animation-duration: 2.7s; background: #ED6A76; width: 6px; height: 16px; }
.sp-confetti i:nth-child(4) { left: 48%; animation-delay: 1.16s; animation-duration: 3.4s; background: #EE9440; width: 8px; height: 10px; }
.sp-confetti i:nth-child(5) { left: 85%; animation-delay: 1.45s; animation-duration: 3.1s; background: #EAF0FA; width: 10px; height: 12px; }
.sp-confetti i:nth-child(6) { left: 22%; animation-delay: 1.74s; animation-duration: 2.8s; background: #F2C14E; width: 6px; height: 14px; }
.sp-confetti i:nth-child(7) { left: 59%; animation-delay: 2.03s; animation-duration: 3.5s; background: #4E9BF0; width: 8px; height: 16px; }
.sp-confetti i:nth-child(8) { left: 96%; animation-delay: 2.32s; animation-duration: 3.2s; background: #35E07E; width: 10px; height: 10px; }
.sp-confetti i:nth-child(9) { left: 33%; animation-delay: .01s; animation-duration: 2.9s; background: #ED6A76; width: 6px; height: 12px; }
.sp-confetti i:nth-child(10) { left: 70%; animation-delay: .3s; animation-duration: 2.6s; background: #EE9440; width: 8px; height: 14px; }
.sp-confetti i:nth-child(11) { left: 7%; animation-delay: .59s; animation-duration: 3.3s; background: #EAF0FA; width: 10px; height: 16px; }
.sp-confetti i:nth-child(12) { left: 44%; animation-delay: .88s; animation-duration: 3s; background: #F2C14E; width: 6px; height: 10px; }
.sp-confetti i:nth-child(13) { left: 81%; animation-delay: 1.17s; animation-duration: 2.7s; background: #4E9BF0; width: 8px; height: 12px; }
.sp-confetti i:nth-child(14) { left: 18%; animation-delay: 1.46s; animation-duration: 3.4s; background: #35E07E; width: 10px; height: 14px; }
.sp-confetti i:nth-child(15) { left: 55%; animation-delay: 1.75s; animation-duration: 3.1s; background: #ED6A76; width: 6px; height: 16px; }
.sp-confetti i:nth-child(16) { left: 92%; animation-delay: 2.04s; animation-duration: 2.8s; background: #EE9440; width: 8px; height: 10px; }
.sp-confetti i:nth-child(17) { left: 29%; animation-delay: 2.33s; animation-duration: 3.5s; background: #EAF0FA; width: 10px; height: 12px; }
.sp-confetti i:nth-child(18) { left: 66%; animation-delay: .02s; animation-duration: 3.2s; background: #F2C14E; width: 6px; height: 14px; }
.sp-confetti i:nth-child(19) { left: 3%; animation-delay: .31s; animation-duration: 2.9s; background: #4E9BF0; width: 8px; height: 16px; }
.sp-confetti i:nth-child(20) { left: 40%; animation-delay: .6s; animation-duration: 2.6s; background: #35E07E; width: 10px; height: 10px; }
.sp-confetti i:nth-child(21) { left: 77%; animation-delay: .89s; animation-duration: 3.3s; background: #ED6A76; width: 6px; height: 12px; }
.sp-confetti i:nth-child(22) { left: 14%; animation-delay: 1.18s; animation-duration: 3s; background: #EE9440; width: 8px; height: 14px; }
.sp-confetti i:nth-child(23) { left: 51%; animation-delay: 1.47s; animation-duration: 2.7s; background: #EAF0FA; width: 10px; height: 16px; }
.sp-confetti i:nth-child(24) { left: 88%; animation-delay: 1.76s; animation-duration: 3.4s; background: #F2C14E; width: 6px; height: 10px; }
.sp-confetti i:nth-child(25) { left: 25%; animation-delay: 2.05s; animation-duration: 3.1s; background: #4E9BF0; width: 8px; height: 12px; }
.sp-confetti i:nth-child(26) { left: 62%; animation-delay: 2.34s; animation-duration: 2.8s; background: #35E07E; width: 10px; height: 14px; }
.sp-confetti i:nth-child(27) { left: 99%; animation-delay: .03s; animation-duration: 3.5s; background: #ED6A76; width: 6px; height: 16px; }
.sp-confetti i:nth-child(28) { left: 36%; animation-delay: .32s; animation-duration: 3.2s; background: #EE9440; width: 8px; height: 10px; }

@keyframes sp-fall-a {
  0% { transform: translate(0, -20px) rotate(0deg); }
  100% { transform: translate(34px, 880px) rotate(560deg); }
}
@keyframes sp-fall-b {
  0% { transform: translate(0, -20px) rotate(0deg); }
  100% { transform: translate(-40px, 880px) rotate(-480deg); }
}

/* With less motion asked, nothing falls (he stands still, figure.css). */
@media (prefers-reduced-motion: reduce) {
  .sp-confetti i {
    animation: none;
  }
}
