/* Level eligibility and daily reset affordances. Loaded after px-learn.css. */
.pxl-levelcard {
  position: relative;
}

button.pxl-levelcard {
  width: 100%;
  padding: 0;
  color: inherit;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.pxl-levelcard.is-locked {
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

.pxl-levelcard.is-locked:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
}

.pxl-levelcard.is-locked:focus-visible {
  outline: 3px solid rgba(245, 107, 15, .28);
  outline-offset: 3px;
}

.pxl-levelcard.is-locked .pxl-levelcard__media {
  filter: grayscale(.88);
  opacity: .48;
}

.pxl-levelcard.is-locked .pxl-levelcard__body {
  opacity: .62;
}

.pxl-levelcard__lock {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #52606a;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #dfe5e9;
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .12);
}

.pxl-levelcard.is-locked--finale_gate .pxl-levelcard__lock {
  color: #ad4c0d;
  background: #fff8f1;
  border-color: #f4cfaa;
}

.pxl-levelcard__lock svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pxl-levelcard__gatehint {
  position: absolute;
  z-index: 4;
  top: 60px;
  left: 16px;
  right: 16px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(24, 32, 43, .94);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .2);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  pointer-events: none;
}

.pxl-levelcard__gatehint::before {
  content: '';
  position: absolute;
  top: -5px;
  right: 13px;
  width: 10px;
  height: 10px;
  background: inherit;
  transform: rotate(45deg);
}

@media (hover: hover) and (pointer: fine) {
  .pxl-levelcard.is-locked:hover .pxl-levelcard__gatehint,
  .pxl-levelcard.is-locked:focus-visible .pxl-levelcard__gatehint {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.pxl-daily-status {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 62px;
  padding: 12px 14px;
  color: #315d70;
}

.pxl-daily-status__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-weight: 700;
}

.pxl-daily-status__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pxl-daily-status__copy {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 5px;
}

.pxl-daily-status__copy strong {
  color: #26323a;
  font-weight: 700;
}

.pxl-daily-status__copy > span {
  color: #667078;
}

.pxl-daily-status time {
  color: #9d480f;
  font-weight: 600;
}

.pxl-daily-status__countdown {
  align-self: center;
  padding: 6px 10px;
  color: #a34a0e;
  background: rgba(255, 255, 255, .72);
  border: 1px solid #f0d0b9;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.pxl-daily-status__countdown.is-ready {
  color: #26753b;
  border-color: #bee3c8;
  background: #f0faf3;
}

.pxl-daily-status.is-pro {
  color: #315d70;
  background: #eef8fb;
  border-color: #cfeaf2;
}

.pxl-daily-status.is-pro .pxl-daily-status__icon {
  background: #238aaa;
}

.pplx-lesson-reset {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 11px 0 13px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(117, 42, 0, .2);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.3;
}

.pplx-lesson-reset svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pplx-lesson-reset time,
.pplx-lesson-reset strong {
  color: #fff;
  font-weight: 700;
}

.pplx-lesson-reset strong {
  padding-left: 7px;
  border-left: 1px solid rgba(255, 255, 255, .35);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .pxl-levelcard__lock {
    top: 9px;
    right: 9px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .pxl-levelcard__lock svg {
    width: 16px;
    height: 16px;
  }

  .pxl-levelcard__gatehint {
    display: none;
  }

  .pxl-daily-status {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding: 11px 12px;
    font-size: 12px;
  }

  .pxl-daily-status__icon {
    width: 30px;
    height: 30px;
  }

  .pxl-daily-status__copy {
    display: grid;
    gap: 2px;
  }

  .pxl-daily-status__countdown {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .pplx-lesson-reset {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .pplx-lesson-reset strong {
    margin-left: 24px;
    padding-left: 0;
    border-left: 0;
  }
}
