/* get_cards.css - the look of the packs' screens (get_cards.js)
   ------------------------------------------------------------------------
   Every number here is the approved renders': Concept Art/T4_get_cards.html
   for the phone (.col, .cbody, .cinner, .voff, .cpad, .vhead, .vprose,
   .keybar, .key, .krow, .brows, .cbtn, .tneut, .tlit, .tgone, .cbname,
   .cbsub, .cbmark, .band4 to .band7, .cblit, .cbplain, .scrim, .dlg,
   .dlgtitle, .dlgrow, .dlgbtn, .dblue, .dneut), wide_awards_and_get_cards
   .html for a computer and a tablet on its side (.t4panel, .t4block, .wkey,
   .wpackrow, .btn, .wact, .wdlg), and Study's own pop-up for o.getting_cards
   (study.css's .sd-dialog, flat as every pop-up of the app, D1699).
   Loaded from this origin, which is what the page's Content Security Policy
   allows: style-src 'self', so there is no inline style anywhere.
   Every number is before nav.js's scale s (the page's frame is scaled as a
   whole); .nv-wide on the page's screen is nav.js's wide layout. */

/* ══ THE PAGE: nav's body, the panel, the key and the buttons. Upright: 14 px
   from each side, 10 px between them (.col). ══ */
.gc-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 0 14px;
}

/* The panel takes whatever the key and the buttons leave (.cbody). */
.gc-panel {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #2C3850;
  border-radius: 18px;
  background-color: #1D2739;
}
.gc-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
/* The headline starts 24% down the panel's own height (D553); on a screen
   too short for the words the offset gives way first. */
.gc-off {
  flex: 0 1 24%;
  min-height: 0;
}
.gc-pad {
  flex: 0 0 auto;
  padding: 0 18px 22px;
}
.gc-head {
  font-size: 27.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.3px;
  color: #EAF0FA;
}
.gc-prose,
.gc-habit .tt-text p {
  font-size: 15.5px;
  line-height: 1.62;
  color: #AEBBD0;
}
.gc-head + .gc-prose,
.gc-head + .gc-habit {
  margin-top: 18px;
}
.gc-prose + .gc-habit {
  margin-top: 14px;
}

/* ══ THE KEY: on the navy between the panel and the buttons, a grid whose two
   columns are each as wide as their longest line, centered as one block
   (D610, D611); only the names colored, the rest #7D8CA5 (D612, D597). ══ */
.gc-keybar {
  flex: none;
  margin-top: 10px;
  padding: 0 4px;
}
.gc-key {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  column-gap: 22px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
  color: #7D8CA5;
}
.gc-krow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gc-n {
  font-weight: 700;
}

/* ══ THE ROWS: 62 px page buttons, 10 px apart (.brows, .cbtn). ══ */
.gc-rows {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.gc-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gc-pack {
  position: relative;
  min-width: 0;
  height: 62px;
  /* The renders' line height (.cbtn, the default): a held pack's name and
     its "in your deck" sit 3 px apart as drawn (ART_FIX 0001). */
  line-height: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #39445C;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  color: #EAF0FA;
}
.gc-neutral {
  border-color: #39445C;
  background: rgba(255, 255, 255, .03);
}
.gc-lit {
  border-color: rgba(111, 174, 255, .55);
  background: rgba(111, 174, 255, .09);
}
/* A pack already in the deck: no outline, so it reads as no button (D605). */
.gc-gone {
  border-color: transparent;
  background: none;
  cursor: default;
}
.gc-name {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 17.5px;
  font-weight: 600;
}
.gc-sub {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 500;
  color: #7D8CA5;
}
.gc-mark {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
}
/* The mark, the icon set's Recommended (ART_FIX 0002; D1308): 1.18 em of
   the mark's line, .2 em below its baseline, as the icon set's .ic draws
   it in place of the old mark. */
.gc-icon {
  display: inline-block;
  width: 1.18em;
  height: 1.18em;
  vertical-align: -.2em;
}
/* ══ THE SIGN (LADDER 0002; element_icon_buttons.html §1, option A, the
   kit's .ic and the render's .elA; D2087, D2096 (2)): the element's sign
   right before the words, one run with them: 1.18 em of the label, .38 em
   before the words, its middle on the middle of the capitals (Inter's 0.727
   em, so the sign sits 0.2265 em below the baseline). get_cards.js draws it
   and sizes the label by the fit rule. ══ */
.gc-sign {
  display: inline-block;
  width: 1.18em;
  height: 1.18em;
  margin-right: .38em;
  vertical-align: -.2265em;
}
.gc-light {
  color: #9CC6FF;
}
.gc-plain {
  color: #EAF0FA;
}

/* ══ THE FOUR BAND COLORS, the only palette the packs use (D620), declared
   after the names and the key so a pack's color wins. ══ */
.gc-earth {
  color: #35E07E;
}
.gc-water {
  color: #4E9BF0;
}
.gc-fire {
  color: #ED6A76;
}
.gc-air {
  color: #F2C14E;
}

/* ══ WIDE (CONCEPT_ART §1g; G1 to G6): the panel 24 px from each side, its
   words 32 px in and larger, the key under it, the packs in one row of 84
   px above the tiles; T6's two buttons in a row of 84 px (.btn), above the
   tiles. ══ */
.nv-wide .gc-page {
  padding: 0;
}
.nv-wide .gc-panel {
  margin: 0 24px;
}
.nv-wide .gc-pad {
  padding: 0 32px 22px;
}
.nv-wide .gc-head {
  font-size: 33px;
}
.nv-wide .gc-prose,
.nv-wide .gc-habit .tt-text p {
  font-size: 19px;
}
.nv-wide .gc-keybar {
  padding: 0;
}
.nv-wide .gc-key {
  font-size: 14px;
  column-gap: 28px;
}
.nv-wide .gc-rows {
  flex-direction: row;
  gap: 12px;
  margin: 10px 24px 0;
}
.nv-wide .gc-pack {
  flex: 1;
  height: 84px;
}
.nv-wide .gc-name {
  font-size: 20px;
}
.nv-wide .gc-sub {
  font-size: 14px;
}
.nv-wide .gc-mark {
  font-size: 20px;
}
/* The lit pack, wide (D2100; element_icon_buttons.html §8, Fix 1): the four
   packs stay in one row, the same width each, and the lit pack's words and
   sign center in the room left of the 46 px its mark keeps clear on its
   right, from the button's left edge: margins on the words alone (18 px
   into the left padding, 28 px past the right), so no box but theirs moves. */
.nv-wide .gc-packs .gc-lit .gc-name {
  max-width: calc(100% - 10px);
  margin-left: -18px;
  margin-right: 28px;
}
/* Wide, T6's two buttons sit in the middle of the bottom row, which nav
   draws and hands to bottom(container) (wide_awards_and_get_cards.html G5
   .wact; ART_FIX 0001): the column's own pair is not drawn, and the panel
   takes the height they leave. */
.nv-wide .gc-two {
  display: none;
}
.nv-wide .nv-wact .gc-pack {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .045);
}
.nv-wide .nv-wact .gc-start {
  border-color: #6FAEFF;
  background: rgba(111, 174, 255, .07);
}
.nv-wide .nv-wact .gc-plain {
  color: #C8D3E4;
}

/* ══ THE POP-UPS (§1c, D607): the scrim over the whole frame, the tab bar
   and the tiles included, and the dialog in its middle, 330 px wide, 54 px
   buttons. ══ */
.gc-scrim {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(6, 9, 16, .62);
}
.gc-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 11;
  width: 330px;
  max-width: calc(100% - 32px);
  transform: translate(-50%, -50%);
  padding: 22px 20px 20px;
  border: 1px solid #37476B;
  border-radius: 20px;
  background-color: #22304A;
  text-align: center;
}
.nv-wide .gc-dialog,
.gc-dialog.gc-wait {
  padding-top: 24px;
}
.gc-dtitle {
  /* 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;
}
.gc-drow {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.gc-dcol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.gc-dbtn {
  flex: 1;
  height: 54px;
  padding: 0;
  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;
}
.gc-dbtn.gc-blue {
  border-color: #6FAEFF;
  background: rgba(111, 174, 255, .07);
  color: #6FAEFF;
}
/* o.getting_cards, as Study draws it: its first paragraph the title. */
.gc-wait .tt-piece {
  display: block;
}
.gc-wait .tt-text p:first-child {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #FFFFFF;
}
.gc-wait .tt-text p + p {
  margin-top: 9px;
  font-size: 15.5px;
  line-height: 1.5;
  color: #AEBBD0;
}
.gc-wait [lang="my"] .tt-text p,
.gc-wait translate-text[lang="my"] p {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  line-height: 1.95;
}
.gc-habit[lang="my"] .tt-text p {
  font-family: "Noto Sans Myanmar", system-ui, sans-serif;
  line-height: 1.95;
}
