/* awards.css - the look of Awards (awards.js; AWARDS_PAGE 0001)
   ------------------------------------------------------------------------
   Every number here is the approved drawings': Concept Art/awards.html
   frames 3 to 6 (.alist, .agroup, .ahead, .apanel, .lvpad, .lvtop,
   .lvicon, .lvtext, .lvname, .lvnext, .ladder, .rung, .arow, .aicon,
   .atext, .aname, .arule, .aval, .aval.dash, .dim; the badge pop-up's
   .scrim, .dialog, .bicon, .dtitle, .dhow, .dsep, .dstat, .keep, .dbtn),
   little_sai_thura_and_big_moments.html's slot-awards for the level panel
   (its brand stylesheet's .lvpad.ls-lv, .lvtop.ls-lvtop, .ls-ring and its
   svg, .lvicon, .trk and .arc, .ladder.ls-ladder and its .rung, the arc's
   motion .ls-go .ls-ring .arc and its keyframes, and its reduced-motion
   line; D1306, D2049), the_icon_set.html (the medals' sizes inside .rung
   i, .aicon, .lvicon and .bicon: 1.15em), wide_awards_and_get_cards.html
   A1 to A4 (.wcols2 and every .wcols2 rule; .wide .dialog), stats.css's
   bean (§1e), and every panel and the pop-up flat (D1699; kit §4, Flat
   panel). Loaded from this origin (style-src 'self'): no inline style
   anywhere; the arc's dash and the bean's place, which awards.js computes,
   are set through the style object. Every number is before nav.js's scale
   s; .nv-wide on the page's screen is nav.js's wide layout. Little Sai
   Thura's own place and look are figure.css's (.ls-awfig, .ls-mir): this
   sheet only leaves the panel's room for him.
   ⛔ NOT YET EARNED DIMS THE MEDAL ONLY (D929): every word and value stays
      full color. ⛔ Only a course's name inside a pop-up sentence takes a
      color (D930). ⛔ No row looks lit: rows of one panel, not list
      bubbles. */

/* ══ THE PAGE: nav's body. The list 14 px in from each side, the two
   groups 12 px apart, flush with the body's top; it scrolls only where
   the body is shorter than the list, with the bean. ══ */
.aw-page {
  position: absolute;
  inset: 0;
}
.aw-scroll {
  position: absolute;
  inset: 0;
  padding: 0 14px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.aw-scroll::-webkit-scrollbar {
  display: none;
}
.aw-cols {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aw-group {
  flex: none;
}
/* A group's name: 16 px, 8 px above its panel. Not a headline. */
.aw-head {
  height: 16px;
  margin-bottom: 8px;
  padding-left: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6E7E99;
}
.aw-panel {
  border: 1px solid #2C3850;
  border-radius: 18px;
  overflow: hidden;
  background-color: #1D2739;
}
.aw-medal {
  display: block;
  width: 1.15em;
  height: 1.15em;
}

/* ══ YOUR LEVEL (slot-awards): the ring and the words in a 52 px row, the
   ladder 10 px under it, its rungs 42 px; 84 px on the right left empty
   for little Sai Thura (figure.css's .ls-awfig). ⚠️ 10 px above and below,
   not the frame's 14: the ring frame was drawn on the 58 px tab bar, and
   the app's is 70 (D1657, its 12 px taken from the page above it), so the
   frame's 14 would leave the list 8 px taller than the 614 px body at
   390 x 844 and the page would scroll; THE RULE 2 says it never does
   (awards.html: "It does not scroll"). AWARDS_PAGE 0001's report. ══ */
.aw-lv {
  position: relative;
  padding: 10px 84px 10px 16px;
}
.aw-lvtop {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.aw-ring {
  position: relative;
  width: 52px;
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aw-ringsvg {
  position: absolute;
  inset: 0;
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}
.aw-lvicon {
  position: relative;
  font-size: 25px;
  line-height: 1;
}
.aw-trk {
  fill: none;
  stroke: #2C3850;
  stroke-width: 3.5;
}
.aw-arc {
  fill: none;
  stroke: #F2C14E;
  stroke-width: 3.5;
  stroke-linecap: round;
}
.aw-lvtext {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.aw-lvname {
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: #FFFFFF;
}
/* ⚠️ Not drawn: the frame's line is one line (nowrap); where it does not
   fit beside the ring and little Sai Thura's room (a 360 px phone and four
   digits on both sides) it wraps between words, the 52 px row holding the
   name and two lines exactly, never under him. */
.aw-lvnext {
  font-size: 12.5px;
  line-height: 16px;
  color: #7D8CA5;
}
.aw-ladder {
  height: 36px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}
.aw-rung {
  width: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.aw-rico {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  font-size: 18px;
  font-style: normal;
  line-height: 20px;
}
.aw-rnum {
  font-size: 10.5px;
  line-height: 14px;
  font-variant-numeric: tabular-nums;
  color: #6E7E99;
}
.aw-rung.aw-dim .aw-rico {
  opacity: .32;
  filter: grayscale(1);
}

/* ══ THE BADGES: eight 54 px rows of one panel, a hairline between; a row
   is a button (its pop-up), dressed as a plain row. ══ */
.aw-row {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.aw-row + .aw-row {
  border-top: 1px solid #253045;
}
.aw-icon {
  width: 30px;
  flex: none;
  display: flex;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
}
.aw-icon.aw-dim {
  opacity: .32;
  filter: grayscale(1);
}
.aw-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.aw-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 19px;
  white-space: nowrap;
  color: #EAF0FA;
}
.aw-rule {
  font-size: 12.5px;
  line-height: 16px;
  white-space: nowrap;
  color: #7D8CA5;
}
.aw-val {
  flex: none;
  font-size: 15px;
  font-weight: 700;
  line-height: normal;
  font-variant-numeric: tabular-nums;
  color: #EAF0FA;
}
/* The dash (D2039 (3)): frame 4's .aval.dash. */
.aw-val.aw-dash {
  font-weight: 600;
  color: #5C6B85;
}

/* ══ THE BEAN (§1e, as stats.css draws it): 6 px, #8FA3C4, no track, 3 px
   from the frame's right edge; only where the list scrolls. ══ */
.aw-bean-track {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 3px;
  width: 6px;
  pointer-events: none;
  visibility: hidden;
}
.aw-bean-track.aw-scrolls {
  visibility: visible;
}
.aw-bean {
  position: absolute;
  left: 0;
  width: 6px;
  border-radius: 99px;
  background: #8FA3C4;
}

/* ══ THE BADGE POP-UP (D930; §1c): 330 wide, in the middle of the frame,
   over a scrim covering the whole frame; flat. ══ */
.aw-scrim {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(6, 9, 16, .62);
}
.aw-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 11;
  box-sizing: border-box;
  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;
}
.aw-bicon {
  box-sizing: border-box;
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  font-size: 40px;
  line-height: 1;
}
.aw-bicon.aw-dim {
  opacity: .4;
  filter: grayscale(1);
}
.aw-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: normal;
  color: #FFFFFF;
}
/* The pop-up's lines the box's full width, as drawn (.dhow, .dstat). */
.aw-dialog .tt-piece.tt-page {
  display: block;
}
.aw-dhow {
  margin: 8px auto 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: #AEBBD0;
}
.aw-dsep {
  height: 1px;
  margin: 16px 0 14px;
  background: #37476B;
}
.aw-dstat {
  margin: 0 auto;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #EAF0FA;
}
.aw-dstat + .aw-dstat {
  margin-top: 8px;
}
.aw-dialog [lang="my"] .tt-text p {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  line-height: 1.95;
}
/* `in Stream.` never splits: a long name wraps the sentence before `in`. */
.aw-keep {
  white-space: nowrap;
}
.aw-dbtn {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  height: 54px;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #C8D3E4;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ══ WIDE (A1 to A4): two columns 24 px apart, 24 px in from each side and
   2 px under the top row; Your level on the left drawn larger (its ring
   56 px, D2039 (5), and little Sai Thura at his phone size in the same
   84 px of room), Badges on the right at the phone's size; the pop-up the
   phone's, in the middle. ══ */
.nv-wide .aw-scroll {
  padding: 2px 24px 0;
}
.nv-wide .aw-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.nv-wide .aw-lv {
  padding: 26px 84px 24px 28px;
}
.nv-wide .aw-lvtop {
  height: 64px;
  gap: 18px;
}
.nv-wide .aw-ring,
.nv-wide .aw-ringsvg {
  width: 56px;
  height: 56px;
}
.nv-wide .aw-lvicon {
  font-size: 26.9px;
}
.nv-wide .aw-lvname {
  font-size: 24px;
  line-height: 30px;
}
.nv-wide .aw-lvnext {
  font-size: 15px;
  line-height: 20px;
}
.nv-wide .aw-ladder {
  height: 56px;
  margin-top: 26px;
}
.nv-wide .aw-rung {
  width: 64px;
  gap: 4px;
}
.nv-wide .aw-rico {
  height: 32px;
  font-size: 28px;
  line-height: 32px;
}
.nv-wide .aw-rnum {
  font-size: 13px;
  line-height: 18px;
}

/* ══ COLORS, the elements' (shell.css's four; D550, D930): a course's name
   inside a pop-up sentence, the word alone. ══ */
.aw-course.aw-earth {
  color: #35E07E;
}
.aw-course.aw-water {
  color: #4E9BF0;
}
.aw-course.aw-fire {
  color: #ED6A76;
}
.aw-course.aw-air {
  color: #F2C14E;
}

/* ══ MOTION (slot-awards): the gold arc draws round once, when drawn; still
   when the phone asks for less motion. ══ */
.aw-go .aw-arc {
  animation: aw-arc 1.1s cubic-bezier(.3, .7, .2, 1) both .3s;
}
@keyframes aw-arc {
  from {
    stroke-dashoffset: var(--full);
  }
}
@media (prefers-reduced-motion: reduce) {
  .aw-go .aw-arc {
    animation: none !important;
  }
}
