/* study.css - the look of the Study screen, upright and wide (study.js;
   STUDY 0003, STUDY 0004)
   ------------------------------------------------------------------------
   Every number here is the approved renders' (CONCEPT_ART §1a, §1c, §1e,
   §1g, §1j): Concept Art/the_card_and_A5.html for the screen,
   computer_and_tablet.html (round 7) and wide_card_states.html for the wide
   layout and its card, reading_tab.html for the wide bottom row's tiles
   (D1483 (1)), the icon set's sizes for the drawings,
   overlays_and_end_states.html for the pop-ups and the accent picker; the
   card, the answers and the pop-ups flat as those frames draw them (D1699:
   no light, and nothing over the screen). 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 the
   screen computes (the frame's size and scale, the page's top, the bean)
   is set through the element's style object. The page loads one web font,
   the headlines' (shell.css, --font-headline, ART_FIX 0001): the card's word
   takes it; every other family is named as the renders name it and the
   system falls back.

   ⛔ THE APP FILLS THE SCREEN (D1027): the frame (.sd-column) is the
      screen's width and height divided by the scale s, scaled by s from its
      top left corner; every number below is before that scaling, as the
      renders give them. Upright is the default; .sd-wide on the screen is
      the wide layout (study.js decides which, from the page's shape alone).

   ⛔ THE CARD HAS NO HEIGHT OF ITS OWN (D544). Upright, the page is a
      column from Telegram's inset to 80 px above the frame's bottom (10 for
      the home indicator, 70 for the tab bar of the Founder's ruling 8,
      D1657): the 74 px top bar, then the card, which takes whatever is
      left, then 10, the 84 px strip and 10. At 390 x 844 with 96 px of
      Telegram above the page, the card is 490 (502 as drawn, less the 12 px
      the taller tab bar takes).
      Wide, the page runs to the frame's bottom: the 52 px top row, the
      card, then 10, the 84 px bottom row and 10. */

.sd-screen,
.sd-screen * {
  box-sizing: border-box;
}

.sd-screen {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  background: #0E1526;
  color: #C8D3E4;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

/* Every button of the screen: one class, so every rule below it, of one
   class or more, decides its own look. */
.sd-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font-family: inherit;
  cursor: pointer;
}

/* The frame: the whole screen at every size, ⛔ never a centered column
   (D1027: "these look foisted on"). study.js sets its width and height (the
   screen's, divided by s) and its scale. */
.sd-column {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
}

.sd-page {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
}

/* ══ THE STACKED TOP BAR, 74 px (D543): ▾ All Cards alone on row 1, 30 px,
   absolutely centered (D528, D535); the sun, the counters and the ☰ on
   row 2, 44 px. The sun and the ☰ sit 32 px from the edges (D531), where
   the card's top edge goes flat. ══ */
.sd-topbar {
  flex: none;
  position: relative;
  height: 74px;
}

.sd-row1 {
  position: relative;
  height: 30px;
}

.sd-row2 {
  position: relative;
  height: 44px;
}

.sd-picker {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 16.5px;
  font-weight: 600;
  color: #EAF0FA;
}

/* THE LEVEL ICON (CONCEPT_ART §1f, awards.html .lvl; D929): to the right
   of All Cards in the picker's own row, caret, name and icon centered as
   one unit; 20 px beside the 16.5 px name. Hidden (no level) it takes no
   room, so the picker centers alone. */
.sd-level {
  padding: 0;
  margin: 0 0 0 2px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 20px;
  line-height: 1;
}
/* Its medal, the icon set's drawing (ART_FIX 0002; D1308): 1.1 em of the
   20 px line, as the icon set's .lvl draws it, so 22 px. */
.sd-level .sd-medal {
  width: 1.1em;
  height: 1.1em;
}

/* D579: the caret is drawn, a 2 px stroke, never a font glyph. */
.sd-caret {
  flex: none;
  width: 9px;
  height: 9px;
  margin: -5px 2px 0 0;
  transform: rotate(45deg);
  border-right: 2px solid #8FA2BF;
  border-bottom: 2px solid #8FA2BF;
}

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

/* ⛔ THE ICONS ARE 30 px, NOT 40 (D542): the sun 30, the ☰ in its 28 px
   row, as the render draws them. */
.sd-sun {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
}

.sd-menu {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  color: #96A5BD;
}

.sd-sun .sd-icon {
  width: 100%;
  height: 100%;
}

/* The counters: bold, the whole label colored (D536). */
.sd-counters {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 16px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.sd-count-new { color: #4E9BF0; }
.sd-count-learning { color: #EE9440; }
.sd-count-review { color: #35E07E; }

/* ══ THE CARD: the one thing that stretches. Its two faces turn in 3D
   (§1j, feel_test/: a 1400 px perspective, 0.46 s). ══ */
.sd-card {
  flex: 1;
  min-height: 0;
  position: relative;
  margin: 0 14px;
  perspective: 1400px;
}

/* THE TURN: §1j's slow 3D turn of 0.46 s, ⛔ the same when the phone asks
   for less motion (D1604 (7): "its supposed to be the slower turn"). */
.sd-turn {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .46s cubic-bezier(.2, .7, .2, 1);
}

.sd-turn.sd-flipped {
  transform: rotateY(180deg);
}

/* The card's ground, flat as the_card_and_A5.html's .card draws it
   (D1699). */
.sd-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid #2C3850;
  border-radius: 18px;
  background-color: #1D2739;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.sd-back {
  transform: rotateY(180deg);
}

.sd-turn:not(.sd-flipped) .sd-back,
.sd-turn.sd-flipped .sd-front {
  pointer-events: none;
}

/* THE FRONT. ⛔ The pairs START 15% down the card's own height (D537): a
   position against the height, never a percentage padding, which CSS
   resolves against the width. */
.sd-pairs {
  position: absolute;
  top: 15%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.sd-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.sd-bigplay,
.sd-play {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
}

/* D529: a circle on Study, never A5's rounded square. */
.sd-bigplay {
  width: 52px;
  height: 52px;
}

.sd-bigplay::after {
  content: "";
  margin-left: 4px;
  border-left: 14px solid #DCE5F2;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.sd-label {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 24px;
  font-weight: 600;
  color: #EAF0FA;
}

/* D506: the revealed text takes the label's place, 19 px in the body face. */
.sd-label.sd-revealed {
  max-width: 240px;
  font-size: 19px;
  font-weight: 400;
  color: #DCE5F2;
}

/* The revealed word (A2, overlays_and_end_states.html 1: 24 px, bold,
   white; ART_FIX 0001, where CONCEPT_ART's text said 19 px regular): the
   card's word, in the website's font, extra bold (ruling 3). */
.sd-label.sd-revealed.sd-word {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #FFFFFF;
}

/* Card B's front: the meaning and the Burmese, centered. */
.sd-meaning {
  padding: 0 20px;
  text-align: center;
}

.sd-meaning-en {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.32;
  color: #FFFFFF;
}

.sd-meaning-my {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.95;
  color: #B9C6DA;
}

/* THE BACK: ONE left rail, 52 px in (D505); it scrolls when it is taller
   than the card. */
.sd-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 42px 0 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sd-scroll::-webkit-scrollbar {
  display: none;
}

.sd-line {
  position: relative;
  padding: 0 20px 0 52px;
}

.sd-play {
  position: absolute;
  left: 6px;
  top: 2px;
  width: 40px;
  height: 40px;
}

.sd-play.sd-sm {
  top: -1px;
}

.sd-play::after {
  content: "";
  margin-left: 3px;
  border-left: 11px solid #DCE5F2;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

/* The headword wraps and never shrinks: the card's word, in the website's
   font, extra bold, a little tighter (surface_numbers_and_type.html A5,
   .ty-head .headword: 800, -0.02 em; ruling 3). */
.sd-headword {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -.02em;
  color: #FFFFFF;
  overflow-wrap: anywhere;
}

.sd-gloss {
  margin-top: 9px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.42;
  color: #B9C6DA;
}

.sd-my {
  margin-top: 6px;
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.95;
  color: #B9C6DA;
}

/* The 58 px drop is fixed; the sentence wraps 52 px short of the edge. */
.sd-drop {
  height: 58px;
}

.sd-sentence {
  padding-right: 52px;
  font-size: 17px;
  line-height: 1.5;
  color: #DCE5F2;
}

/* §1e: the bean, 6 px, #8FA3C4, round, NO track; 6 px in from the right
   of what scrolls, 10 px clear of its top and bottom; only where something
   scrolls; its length visible / total. */
.sd-bean-track {
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: 6px;
  width: 6px;
  visibility: hidden;
  pointer-events: none;
}

.sd-bean-track.sd-scrolls {
  visibility: visible;
}

.sd-bean {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 99px;
  background: #8FA3C4;
}

/* THE THREE CARD CONTROLS (D501): a vertical stack at the card's bottom
   right, 46 px chips 11 px apart, 14 px from its right and bottom edges
   inside the card's 1 px border (the render's .stack sits in .card's
   padding box), the same place on both faces. */
.sd-stack {
  position: absolute;
  right: 15px;
  bottom: 15px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.sd-chip {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 13px;
  background: rgba(255, 255, 255, .13);
  color: #DCE5F2;
}

/* The flag one step brighter: the hardest of the three to see. */
.sd-chip.sd-flag {
  background: rgba(255, 255, 255, .19);
  border-color: rgba(255, 255, 255, .30);
}

.sd-chip.sd-flag.sd-open {
  border-color: #6FAEFF;
}

.sd-undo-icon {
  width: 22.05px;
  height: 22.05px;
}

/* D518: not saved, an outline in the glyph color; saved, FILLED warm gold. */
.sd-star-icon {
  width: 25.3px;
  height: 25.3px;
}

.sd-chip.sd-saved {
  color: #F2C14E;
}

.sd-flag-icon {
  width: 27.3px;
  height: 18.27px;
}

/* O7, the accent picker (D513): to the left of the stack, vertically
   centered on the flag, 198 px, ✓ on the card's accent, NO scrim; placed,
   as the stack is, inside the card's 1 px border (the_icon_set.html O7). */
.sd-accents {
  position: absolute;
  right: 71px;
  bottom: 19px;
  z-index: 6;
  width: 198px;
  overflow: hidden;
  border: 1px solid #37476B;
  border-radius: 16px;
  background: #22304A;
}

.sd-accent {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid #35456A;
  background: none;
  text-align: left;
  font-size: 16px;
  color: #E1E8F4;
}

.sd-accent:last-child {
  border-bottom: 0;
}

.sd-accent-flag {
  flex: none;
  width: 26.98px;
  height: 18.05px;
}

.sd-accent-tick {
  flex: none;
  width: 17.7px;
  height: 17.7px;
  margin-left: auto;
  color: #6FAEFF;
}

/* The card area's other two states: the checking moment's four dots, and
   the stand-in for nothing to serve. */
.sd-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-loading .st-mark {
  --ms: 64px;
}

.sd-nothing {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #FFFFFF;
}

.sd-nothing .tt-piece {
  display: block;
}

/* The stand-in (a format 1 catalog) shows the line's first paragraph only. */
.sd-standin .tt-text p + p {
  display: none;
}

/* ══ THE STRIP BELOW THE CARD (D500, D507, D530): the bar, then the four
   answer buttons, the same 84 px, so nothing moves on the turn. It sits in
   the bottom row: alone upright, between the tiles wide. ══ */
.sd-bottom {
  flex: none;
  display: flex;
  margin: 10px 14px 0;
}

.sd-strip {
  flex: 1;
  min-width: 0;
  position: relative;
  height: 84px;
}

.sd-bar {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  font-size: 17px;
  font-weight: 600;
  color: #C8D3E4;
}

.sd-answers {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 9px;
}

/* D961: the four answer buttons have no outline; the color lives in the
   text on a near-black fill (D499, D540). All four take the light,
   shell.css's tokens, on both layouts and both cards (the Founder's ruling
   in FINISH 0001 Amendment C, over the_card_and_A5.html's flat .ans and
   surface_numbers_and_type.html's own colored lights). */
.sd-ans {
  flex: 1;
  min-width: 0;
  height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 12px;
}

.sd-iv {
  font-size: 14px;
  font-weight: 600;
  opacity: .9;
}

.sd-lb {
  font-size: 17px;
  font-weight: 700;
}

.sd-again {
  background-color: #231317;
  color: #ED6A76;
  background-image: var(--lit-bubble);
  box-shadow: var(--lit-bubble-shadow);
}

.sd-hard {
  background-color: #201B12;
  color: #D1A653;
  background-image: var(--lit-bubble);
  box-shadow: var(--lit-bubble-shadow);
}

.sd-good {
  background-color: #13221A;
  color: #71D98C;
  background-image: var(--lit-bubble);
  box-shadow: var(--lit-bubble-shadow);
}

.sd-easy {
  background-color: #121926;
  color: #619BEE;
  background-image: var(--lit-bubble);
  box-shadow: var(--lit-bubble-shadow);
}

/* ══ THE TAB BAR is nav.js's (NAV 0001; its look in nav.css): 70 px
   (ruling 8, D1657), 10 px above the frame's bottom, Reading · Pulses ·
   Cards · Sprints · Writing (D1483), Cards lit on Study. ══ */

/* ══ THE POP-UPS: the overlay family (§1c): 330 px inside a 390 px phone,
   a 20 px corner, #22304A on navy with a 1 px #37476B border, the title 18
   px / 600 white, the body 15.5 px #AEBBD0, every word centered (D979),
   54 px outlined buttons (D607), a scrim behind (D607), the ဘာသာပြန် link
   10 px under the buttons (D1238), flat (D1699). ══ */
.sd-scrim {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(6, 9, 16, .62);
}

.sd-dialog {
  position: absolute;
  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;
}

.sd-dialog .tt-piece {
  display: block;
}

.sd-dialog .tt-text p:first-child {
  /* The headlines' font (ART_FIX 0001, the Founder's ruling 3;
     surface_numbers_and_type.html .ty-head :is(.dtitle)). */
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
}

.sd-dialog .tt-text p + p {
  margin-top: 9px;
  font-size: 15.5px;
  line-height: 1.5;
  color: #AEBBD0;
}

.sd-dialog [lang="my"] .tt-text p,
.sd-dialog translate-text[lang="my"] p {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  line-height: 1.95;
}

.sd-dialog-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.sd-dialog-button {
  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;
}

.sd-dialog-button.sd-blue {
  border-color: #6FAEFF;
  background: rgba(111, 174, 255, .07);
  color: #6FAEFF;
}

/* ══ THE WIDE LAYOUT (STUDY 0004; CONCEPT_ART §1g, D1027, D1242, D1483 (1)):
   a computer, a tablet or a phone on its side. computer_and_tablet.html
   round 7 for the rows and the back, wide_card_states.html (D1270) for the
   front and the bar, reading_tab.html for the tiles. ONE top row, ONE
   bottom row: ⛔ no picker row of its own, no tab bar, no Cards tile. ══ */
.sd-wtop,
.sd-tiles {
  display: none;
}

.sd-wide .sd-topbar,
.sd-wide .sd-tabs {
  display: none;
}

.sd-wide .sd-page {
  bottom: 0;
}

/* The top row: 52 px, 40 px side padding, three columns, the outer two
   equal, so the picker sits in the EXACT center. */
.sd-wide .sd-wtop {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: 52px;
  padding: 0 40px;
}

.sd-wcounters {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
}

.sd-wpicker {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 16.5px;
  font-weight: 600;
  color: #EAF0FA;
}

.sd-wright {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.sd-wsun {
  flex: none;
  width: 30px;
  height: 30px;
}

.sd-wsun .sd-icon {
  width: 100%;
  height: 100%;
}

/* ☰ DRAWN as three bars, never typed (nav.js's, its bars in nav.css): 26
   px wide, bars 2.5 px thick and 5 px apart, so the icon is 17.5 px tall;
   its middle bar 15% of that (2.625 px) BELOW the sun's center (round 7,
   "ya perfect"). The sun is our drawing, centered in its 30 px box, so the
   bar moves 2.625 px from the row's center line. */
.sd-wmenu {
  transform: translateY(2.625px);
}

/* The card: the full width, 24 px from each side; on its back the larger
   type (word 33, meaning 24, Burmese 24, sentence 23), the text 60 px in
   with the ▶ in front, the sentence 80 px short of its line's right edge,
   clear of the three chips. */
.sd-wide .sd-card {
  margin: 0 24px;
}

.sd-wide .sd-line {
  padding-left: 60px;
}

.sd-wide .sd-play {
  left: 8px;
}

.sd-wide .sd-headword {
  font-size: 33px;
}

.sd-wide .sd-gloss,
.sd-wide .sd-my {
  font-size: 24px;
}

.sd-wide .sd-sentence {
  padding-right: 80px;
  font-size: 23px;
}

/* Its front grows in step (wide_card_states.html C1, C2): the pairs 28 px
   apart, each ▶ 64 px and 18 px from its line, the label 33, a revealed
   sentence 26 and at most 640 px wide, the revealed word in the word's own
   33, in the website's font (ruling 3); card B's meaning 33 and its Burmese
   27. Still 15% down. */
.sd-wide .sd-pairs {
  gap: 28px;
}

.sd-wide .sd-pair {
  gap: 18px;
}

.sd-wide .sd-bigplay {
  width: 64px;
  height: 64px;
}

.sd-wide .sd-bigplay::after {
  border-left-width: 17px;
  border-top-width: 11px;
  border-bottom-width: 11px;
}

.sd-wide .sd-label {
  font-size: 33px;
}

.sd-wide .sd-label.sd-revealed {
  max-width: 640px;
  font-size: 26px;
}

.sd-wide .sd-label.sd-revealed.sd-word {
  font-size: 33px;
}

.sd-wide .sd-meaning-en {
  font-size: 33px;
}

.sd-wide .sd-meaning-my {
  font-size: 27px;
}

/* The bottom row: 10 px under the card, 24 px from each side, three groups
   34 px apart: Reading · Pulses, the strip (the bar, then Again · Hard ·
   Good · Easy, 12 px apart, sharing all the width left over, 84 px high,
   the interval 15 px and the label 20 px), Sprints · Writing. */
.sd-wide .sd-bottom {
  gap: 34px;
  margin: 10px 24px 0;
}

.sd-wide .sd-bar {
  font-size: 20px;
}

.sd-wide .sd-answers {
  gap: 12px;
}

.sd-wide .sd-iv {
  font-size: 15px;
}

.sd-wide .sd-lb {
  font-size: 20px;
}

/* The tiles, nav.js's (their look in nav.css): 84 x 84, 10 px apart, two
   groups on Study. None is lit on Study. */
.sd-wide .sd-tiles {
  flex: none;
  display: flex;
  gap: 10px;
}

/* ══ THE END STATES (FREE_ROAD 0001; CONCEPT_ART §2): Concept Art/
   overlays_and_end_states.html E1, E2 and E4 for the phone (.es, .esh, .esl,
   .esp, .esb, .pbtn, .packs, .pack, .zero; O11's .dlg, .dt, .db, .dbtns,
   .dbtn, .quiet) and wide_card_states.html E1, E2 and E4 for a computer and
   a tablet on its side (.wes, .tblock, .wact, .btn, .wpacks). Upright the
   end state is the page from the top bar to 10 px above the tab bar, with
   no strip (.es is the page's whole middle); wide it is the card's place,
   its buttons in the bottom row's middle, where the strip sits. The
   counters dim to #6E7E99 (.zero). On a phone too short for Perfect Day's
   whole column, Little Sai Thura is left out and everything else stays as
   drawn (D1811; study.js's fitPerfect). ══ */
.sd-ended .sd-bottom {
  display: none;
}

.sd-ended .sd-card,
.sd-wide.sd-ended .sd-card {
  margin: 0;
  perspective: none;
}

.sd-ended .sd-count-new,
.sd-ended .sd-count-learning,
.sd-ended .sd-count-review {
  color: #6E7E99;
}

.sd-nothing.sd-perfect,
.sd-nothing.sd-nonedue {
  flex-direction: column;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: #AEBBD0;
}

/* E1's headline (.esh): 26 px, white, in the website's font, extra bold,
   a little tighter (surface_numbers_and_type.html A5, .ty-head .esh: 800,
   -0.02 em; ruling 3); a Burmese headline in Noto at 700. */
.sd-esh,
.sd-esw .tt-text p:first-child {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #FFFFFF;
}

.sd-esw [lang="my"] .tt-text p:first-child {
  font-weight: 700;
  letter-spacing: 0;
}

/* Little Sai Thura above the headline (figure.css .ls-stage): Perfect Day
   upright only (no wide drawing has him there); Nothing due today on both
   (FIGURE_PLACES 0001, D2202 (3); wide_card_states.html's places section). */
.sd-wide .sd-nothing.sd-perfect .ls-stage {
  display: none;
}

/* Wide, Nothing due today: him at the wide drawing's picture (D2219 (2);
   wide_card_states.html's places section, frames 8 wide and 7 wide, read
   in the frame's own design px, the page's numbers / its scale k 0.9):
   97.77 x 146.65, centered, 13.87 above the headline. His stage takes no
   room in the centered column, so every word and button stays where it
   was: its height and the gap under it given back above it. */
.sd-wide .sd-nothing.sd-nonedue .ls-stage {
  height: 146.65px;
  margin: -160.52px 0 13.87px;
}

.sd-wide .sd-nothing.sd-nonedue .ls-stage .ls-fig {
  width: 97.77px;
  height: 146.65px;
}

/* E1's three lines (.esl): 20 px under the headline, 7 px apart, 16 px,
   the numbers white and bold; absent until the server confirms the day. */
.sd-esl {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 16px;
  color: #AEBBD0;
}

.sd-esnum {
  font-weight: 700;
  color: #FFFFFF;
}

/* E2's words (.esp): end.nothing_due, its second paragraph 14 px under the
   first, 16 px at 1.5; its ဘာသာပြန် link is the piece's own. */
.sd-esw .tt-piece {
  display: block;
}

.sd-esw .tt-text p + p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: #AEBBD0;
}

.sd-esw [lang="my"] .tt-text p,
.sd-esw translate-text[lang="my"] p {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  line-height: 1.95;
}

/* The two buttons (.esb, .pbtn): 28 px under the words, 342 px wide, the
   app's 62 px page buttons 10 px apart; Word of the day in the one blue. */
.sd-esb {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 342px;
  max-width: 100%;
}

.sd-pbtn {
  height: 62px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  font-size: 17px;
  font-weight: 600;
  color: #C8D3E4;
}

.sd-pbtn.sd-blue {
  border-color: #6FAEFF;
  background: rgba(111, 174, 255, .07);
  color: #6FAEFF;
}

.sd-wact {
  display: none;
}

/* E4 (.packs): the four pack buttons at the foot of the page's middle, 14
   px from each side, 10 px apart: get_cards.js's own rows. */
.sd-nothing.sd-empty {
  display: block;
  padding: 0;
}

.sd-packs {
  position: absolute;
  top: 0;
  right: 14px;
  bottom: 0;
  left: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sd-packs .gc-rows {
  margin-top: 0;
}

/* O11's Not now (.dbtn.quiet): no fill, the quiet grey. */
.sd-dialog-button.sd-quiet {
  background: transparent;
  color: #9BA7BC;
}

/* Wide (wide_card_states.html E1, E2, E4): the words centered in the
   card's place (.wes), larger; the two buttons in the bottom row's middle
   (.wact: 84 px, 12 px apart, 20 px words); E4's packs in one row of 84 px
   above the bottom row, 24 px from each side (.wpacks). */
.sd-wide.sd-ended .sd-bottom {
  display: flex;
}

.sd-wide .sd-esb {
  display: none;
}

.sd-wide .sd-wact {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 12px;
}

.sd-wide .sd-wact .sd-pbtn {
  flex: 1;
  min-width: 0;
  height: 84px;
  white-space: nowrap;
  font-size: 20px;
}

.sd-wide .sd-esh,
.sd-wide .sd-esw .tt-text p:first-child {
  font-size: 32px;
}

.sd-wide .sd-esl {
  margin-top: 22px;
  gap: 9px;
  font-size: 19px;
}

.sd-wide .sd-esw .tt-piece {
  display: table;
  max-width: 100%;
  margin: 0 auto;
}

.sd-wide .sd-esw .tt-text p + p {
  margin-top: 16px;
  font-size: 19px;
}

.sd-wide .sd-packs {
  right: 24px;
  left: 24px;
}

.sd-wide .sd-packs .gc-rows {
  flex-direction: row;
  gap: 12px;
}

.sd-wide .sd-packs .gc-pack {
  flex: 1;
  height: 84px;
}

.sd-wide .sd-packs .gc-name {
  font-size: 20px;
}
