/* The share card, drawn at its real pixel size: 1080 by 1080, 1080 by 1350
   or 1600 by 900. The Share window shows it scaled down, and the snapshot
   draws it again at full size. */

/* The padding counts inside the card's pixel size, wherever the card is used */
.share-card,
.share-card * {
  box-sizing: border-box;
}

.share-card {
  --card-padding: 72px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--card-padding);
  overflow: hidden;
  color: #ffffff;
  font-family: var(--text-font);
  -webkit-font-smoothing: antialiased;
  /* A desktop wallpaper, so the glass sits the way it does on screen */
  background: var(--wallpaper);
}

.share-card.format-portrait {
  --card-padding: 84px;
}

/* Top: the brand on the left, the range and its dates on the right */

.share-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.share-card-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font: 600 46px/1 var(--display-font);
  font-variation-settings: "SOFT" 0, "WONK" 1;
  letter-spacing: -0.01em;
}

.share-card-brand img {
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 6px 14px rgba(10, 8, 30, 0.35));
}

.share-card-when {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.share-card-range {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 30px;
  font-weight: 600;
  background: rgba(20, 20, 30, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.share-card-dates {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.78);
}

/* Middle: the counter. share-card.js sets its size so it fills the space,
   however many values it shows. */

.share-card-hud {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.share-card-hud .counter-frame {
  position: relative;
}

/* An image is one still moment, so nothing on the card animates. Otherwise a
   snapshot taken right after a change could catch digits halfway through a
   roll. */
.share-card .counter-frame,
.share-card .digit-strip,
.share-card .counter-unit {
  transition: none;
}

/* Bottom: the facts, then what the app is and where to get it */

.share-card-facts {
  display: flex;
  gap: 72px;
  margin-bottom: 36px;
}

.share-card-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.share-card-fact b {
  font: 600 52px/1 var(--text-font);
  font-variant-numeric: tabular-nums;
}

.share-card-fact span {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.72);
}

.share-card-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.share-card-tagline {
  margin: 0;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.62);
}

/* Every shared card says where to get the app */
.share-card-domain {
  margin: 0;
  font: 600 30px/1 var(--display-font);
  font-variation-settings: "SOFT" 0, "WONK" 1;
  letter-spacing: -0.01em;
}

.share-card-empty {
  display: none;
  margin: 0 0 24px;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.85);
}

.share-card.is-empty .share-card-empty {
  display: block;
}

.share-card.is-empty .share-card-facts {
  display: none;
}
