/* Treatly — the cabinet (js/glass-lockers.js).
 *
 * Today is a filing cabinet and every task is a drawer in it. A drawer's
 * front has a typed card in a metal holder (the task, and under it when, who,
 * how long), a chrome pull that finishes it, and a paper tab poking out of
 * the top with the number of treats filed inside. Pull a drawer and it comes
 * out beneath its front, pushing down only the drawers under it; the front
 * itself never moves. Finishing stamps the card.
 *
 * Materials come from glass-system.css (--paper, --steel-*, --grain, the
 * typewriter and label faces). Every animation is a transform or an opacity. */

/* ---------- the cabinet ---------- */
.lk-list {
  display: block;
  margin: 4px -8px 0;
  padding: 10px 10px 16px;
  border-radius: 10px;
  background: var(--grain), linear-gradient(180deg, var(--steel-2), var(--steel-0));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px #000;
}
.lk-list > *,
.lk-col > * {
  position: relative;
}

/* its nameplate, and the counter */
.lk-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  padding: 2px 2px 6px;
}
.lk-progress:empty {
  display: none;
}
.lk-plate {
  padding: 6px 12px 3px;
  border-radius: 3px;
  background: var(--chrome);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 3px rgba(0, 0, 0, 0.7);
  color: #1a1a1a;
  font: 400 13px/1 var(--font-type);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.lk-count {
  display: flex;
  align-items: center;
  gap: 2px;
  font: 400 10px/1 var(--font-type);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.lk-count span {
  margin: 0 3px;
}
.lk-count b {
  display: grid;
  place-items: center;
  width: 17px;
  height: 23px;
  padding-top: 2px;
  border-radius: 3px;
  background: linear-gradient(#0c0c0c 49%, #000 50%, #171717 51%);
  box-shadow: inset 0 0 0 1px #353535;
  color: var(--paper);
  font: 400 15px/1 var(--font-type);
}

/* a strip of label tape between sections */
.lk-list .lk-label {
  display: table;
  margin: 22px 0 0 2px;
  padding: 5px 10px 4px;
  background: #0b0b0b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 4px rgba(0, 0, 0, 0.6);
  color: #fff;
  font: 700 11px/1 var(--font-etch);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.lk-empty {
  padding: 56px 24px;
  text-align: center;
  font: 400 14px/1.5 var(--font-type);
  color: var(--ink-2);
}
.lk-lost {
  padding: 12px 2px 0;
}

/* ---------- rows of drawers ---------- */
.lk-chest {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: 8px;
}
.lk-chest--days {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 6px;
}
.lk-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lk-unit {
  --door: 84%; /* the front's height, as a share of its width */
  margin-top: 17px; /* room for this drawer's tab */
  contain: layout style;
}
.lk-unit--hero {
  --door: 42%;
}
.lk-unit--day {
  --door: 92%;
  margin-top: 16px;
}

/* ---------- a drawer front ---------- */
.lk {
  position: relative;
  width: 100%;
  aspect-ratio: 100 / 84;
  border-radius: 3px;
  background: var(--grain), linear-gradient(180deg, var(--steel-3), var(--steel-1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -3px 0 rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.8), 0 2px 0 #000;
  outline: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 0.2s var(--bounce);
}
.lk-unit--hero .lk {
  aspect-ratio: 100 / 42;
}
.lk-unit--day .lk {
  aspect-ratio: 100 / 92;
}
.lk:active {
  transform: translateY(2px);
}
.lk:focus-visible {
  box-shadow: inset 0 0 0 2px var(--paper);
}
/* a screw */
.lk::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, #8a8a8a 40%, #222 62%);
}

/* the paper tab: how many treats are filed in here */
.lk-tab {
  position: absolute;
  right: 12px;
  top: -15px;
  min-width: 28px;
  padding: 4px 7px 0;
  height: 15px;
  border-radius: 3px 3px 0 0;
  background: var(--paper);
  color: var(--paper-ink);
  font: 400 11px/1 var(--font-type);
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s var(--bounce);
}
.lk-unit.is-open .lk-tab {
  transform: translateY(-3px);
}
.lk.is-done .lk-tab {
  opacity: 0.55;
}
.lk.is-done .lk-pull {
  filter: brightness(0.6);
}

.lk-top {
  position: absolute;
  right: 2px;
  top: 2px;
  z-index: 1;
}
.lk-more {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-3);
}
.lk-more:active {
  color: var(--paper);
}

/* the card in its holder */
.lk-holder {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 17%;
  padding: 3px;
  border-radius: 3px;
  background: var(--chrome);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.7);
}
.lk-unit--hero .lk-holder {
  left: 4.5%;
  right: 40%;
  top: 18%;
}
.lk-card {
  position: relative;
  padding: 8px 8px 5px;
  background: var(--paper);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  color: var(--paper-ink);
  font: 400 14px/1.15 var(--font-type);
  overflow: hidden;
}
.lk-card > b,
.lk-card > small {
  display: block;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lk-unit--hero .lk-card > b {
  font-size: 18px;
}
.lk-card > small {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a5852;
}
.lk-card > small.is-late {
  color: var(--stamp);
}
.lk-card > small.is-now::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #1f9d55;
}
.lk.is-done .lk-card > b {
  color: #6b6964;
}
/* done: stamped */
.lk-stamp {
  position: absolute;
  right: 3px;
  bottom: 2px;
  padding: 2px 6px 0;
  border: 2px solid var(--stamp);
  border-radius: 3px;
  color: var(--stamp);
  font: 400 13px/1.1 var(--font-type);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  rotate: -9deg;
  opacity: 0.9;
  mix-blend-mode: multiply;
}
.lk-unit.is-won .lk-stamp {
  animation: lkThunk 0.35s cubic-bezier(0.2, 2.2, 0.4, 1) 0.1s backwards;
}
@keyframes lkThunk {
  from {
    scale: 2.6;
    opacity: 0;
  }
}

/* along the bottom: who's filed something, a clock, and the hardware */
.lk-foot {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10%;
  height: 26%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}
.lk-unit--hero .lk-foot {
  left: auto;
  right: 5%;
  top: 16%;
  bottom: 16%;
  width: 31%;
  height: auto;
  flex-direction: column;
  align-items: flex-end;
}
.lk-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
}
.lk-unit--hero .lk-info {
  align-items: flex-end;
}
.lk-clock {
  display: inline-block;
  padding: 5px 6px 2px;
  border-radius: 3px;
  background: linear-gradient(#0c0c0c 49%, #000 50%, #171717 51%);
  box-shadow: inset 0 0 0 1px #353535;
  color: var(--paper);
  font: 400 17px/1 var(--font-type);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.lk-unit--hero .lk-clock {
  font-size: 22px;
}
.lk-line {
  font: 400 10px/1 var(--font-type);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.lk-givers {
  display: flex;
}
.lk-givers .g-avatar {
  width: 18px;
  height: 18px;
  margin-left: -5px;
  font-size: 8px;
  box-shadow: 0 0 0 1.5px var(--steel-2);
}
.lk-givers .g-avatar:first-child {
  margin-left: 0;
}
.lk-unit--tile .lk-givers .g-avatar:nth-child(n + 3) {
  display: none;
}

/* the pull: tap it and the task is done */
.lk-pull {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 44%;
  height: 78%;
  translate: -50% 0;
  border-radius: 4px 4px 46% 46% / 4px 4px 100% 100%;
  background: linear-gradient(180deg, #050505 0 30%, #8d8d8d 32%, #f2f2f2 48%, #8a8a8a 72%, #3d3d3d);
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(0, 0, 0, 0.5);
  transition: translate 0.2s var(--bounce);
}
.lk-pull:active,
.lk-pull.is-hit {
  translate: -50% 4px;
}
.lk-unit--hero .lk-pull {
  position: relative;
  left: auto;
  translate: 0 0;
  width: 86%;
  height: 34px;
}
.lk-unit--hero .lk-pull:active,
.lk-unit--hero .lk-pull.is-hit {
  translate: 0 4px;
}
/* a clock: a switch */
.lk-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  color: var(--ink-2);
  font: 400 10px/1 var(--font-type);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lk-switch i {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #000;
  box-shadow: inset 0 0 0 1px #444;
  transition: background-color 0.2s;
}
.lk-switch i::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff, #9a9a9a);
  transition: transform 0.25s var(--bounce);
}
.lk-switch.is-on {
  color: var(--paper);
}
.lk-switch.is-on i {
  background: #1f9d55;
}
.lk-switch.is-on i::after {
  transform: translateX(16px);
}
/* a friend's drawer: a slot to post a treat through */
.lk-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--ink-2);
  font: 400 9px/1 var(--font-type);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lk-slot::before {
  content: '';
  width: 52px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(#000 60%, #1c1c1c);
  box-shadow: 0 0 0 2px #7d7d7d, 0 0 0 3px #1a1a1a, 0 3px 4px rgba(0, 0, 0, 0.6);
}
.lk-slot:active::before {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px #1a1a1a;
}
/* a clock running: the bottom edge of the front fills as the time goes */
.lk.is-running::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--paper);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  transition: transform 1s linear;
}

/* ---------- the drawer ---------- */
.lk-tray {
  display: none;
  position: relative;
  margin: 0 5px;
  aspect-ratio: 100 / 72;
  overflow: hidden;
  border-radius: 0 0 3px 3px;
}
.lk-unit--hero .lk-tray {
  aspect-ratio: 100 / 40;
}
.lk-unit.is-open > .lk-tray {
  display: block;
}
/* sliding home: still drawn, but out of the layout, so nothing waits on it */
.lk-unit.is-closing > .lk-tray {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin-top: var(--door);
  pointer-events: none;
}
.lk-tray-in {
  position: absolute;
  inset: 0;
  background: var(--grain), linear-gradient(#0c0c0d, #1a1a1c);
  /* its sides, and the front's shadow falling into it */
  box-shadow: inset 0 0 0 4px var(--steel-3), inset 0 0 0 5px #000, inset 0 26px 22px -10px #000;
  will-change: transform;
}
.lk-none {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 0 14px;
  text-align: center;
  font: 400 11px/1.5 var(--font-type);
  color: var(--ink-3);
}
.lk-stack {
  position: absolute;
  inset: 14% 8% 18%;
  transition: filter 0.5s var(--ease);
}
.lk-unit--hero .lk-stack {
  inset: 12% 22% 16%;
}
/* not yours yet: you can see something's there, not what */
.lk-unit.is-locked .lk-stack {
  filter: blur(6px);
}
.lk-unit.is-locked .lk-t {
  pointer-events: none;
}
/* label tape */
.lk-lockline {
  position: absolute;
  left: 50%;
  bottom: 8px;
  translate: -50% 0;
  padding: 4px 9px 3px;
  background: #0b0b0b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 4px rgba(0, 0, 0, 0.6);
  color: #fff;
  font: 700 10px/1 var(--font-etch);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lk-lockline .gi {
  display: none;
}
.lk-more-t {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 4px 6px 2px;
  background: var(--paper);
  color: var(--paper-ink);
  font: 400 10px/1 var(--font-type);
}

/* what friends filed: notes, photographs, tapes */
.lk-t {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%) rotate(var(--r));
  white-space: nowrap;
}
.lk-t-note {
  display: block;
  max-width: 124px;
  padding: 7px 9px 4px;
  background: var(--paper);
  color: var(--paper-ink);
  font: 400 12px/1.15 var(--font-type);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
}
.lk-t-emo {
  font-size: 30px;
  line-height: 1;
}
.lk-t-pic {
  position: relative;
  display: block;
  width: 50px;
  height: 62px;
  border: solid #fff;
  border-width: 4px 4px 13px;
  background: var(--steel-2);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}
.lk-t.is-doodle .lk-t-pic,
.lk-t.is-drawing .lk-t-pic {
  background: #fff;
}
.lk-t-pic .g-fill-media.is-note {
  padding: 4px;
}
.lk-t-pic .g-fill-note {
  font-size: 9px;
}
.lk-t.is-voice {
  display: flex;
  align-items: center;
  gap: 2.5px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #111;
  box-shadow: inset 0 0 0 1px #444, 0 5px 10px rgba(0, 0, 0, 0.7);
}
.lk-t.is-voice i {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: var(--paper);
}
.lk-t.is-voice .lk-t-play {
  width: 0;
  height: 0;
  margin-right: 4px;
  background: none;
  border-left: 7px solid var(--paper);
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}

/* ---------- life ---------- */
/* pulled open: what's inside slides forward and settles. Locked, the pile is
   one blurred picture, so it moves as one and the blur is drawn once. */
.lk-unit.is-settling:not(.is-locked) .lk-t {
  animation: lkSettle 0.6s var(--bounce) backwards;
  animation-delay: calc(var(--i) * 45ms + 60ms);
}
@keyframes lkSettle {
  from {
    transform: translate(-50%, -150%) rotate(calc(var(--r) * -2));
    opacity: 0;
  }
}
.lk-unit.is-settling.is-locked .lk-stack {
  animation: lkSlideIn 0.6s var(--bounce) backwards;
}
@keyframes lkSlideIn {
  from {
    transform: translateY(-40%) scale(0.92);
    opacity: 0;
  }
}
/* and shifts with the phone, nearer things more */
.lk-unit.is-open:not(.is-locked) .lk-t {
  translate: calc(var(--lk-tx, 0) * var(--z, 6px)) calc(var(--lk-ty, 0) * var(--z, 6px));
  transition: translate 0.2s ease-out;
}
.lk-unit.is-open.is-locked .lk-stack {
  translate: calc(var(--lk-tx, 0) * 8px) calc(var(--lk-ty, 0) * 8px);
  transition: translate 0.2s ease-out;
  will-change: transform;
}
/* a locked drawer, tapped: it rattles */
.lk-unit.is-rattle .lk-stack {
  animation: lkRattle 0.5s ease-in-out;
}
.lk-unit.is-rattle .lk-lockline {
  animation: lkNudge 0.5s var(--bounce);
}
@keyframes lkRattle {
  15% {
    transform: translateX(-7px) rotate(-1.5deg);
  }
  35% {
    transform: translateX(6px) rotate(1.2deg);
  }
  55% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(3px);
  }
}
@keyframes lkNudge {
  40% {
    scale: 1.12;
  }
}
/* a friend just filed something: the front takes the knock, the tab jumps */
.lk-unit.is-drop > .lk {
  animation: lkKnock 0.7s var(--bounce);
}
.lk-unit.is-drop .lk-tab {
  animation: lkTab 0.7s var(--bounce);
}
@keyframes lkKnock {
  20% {
    transform: translateY(5px) scale(0.985);
  }
}
@keyframes lkTab {
  30% {
    transform: translateY(-9px);
  }
}
/* finished: a flashbulb in the drawer, things jump, sparks off the front */
.lk-flash {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.3) 38%, rgba(255, 255, 255, 0) 70%);
  animation: lkFlash 0.8s ease-out forwards;
}
@keyframes lkFlash {
  from {
    opacity: 1;
    transform: scale(0.6);
  }
  to {
    opacity: 0;
    transform: scale(1.7);
  }
}
.lk-unit.is-pop .lk-t {
  animation: lkJump 0.75s var(--bounce) backwards;
  animation-delay: calc(var(--i) * 70ms + 120ms);
}
@keyframes lkJump {
  0% {
    transform: translate(-50%, 60%) rotate(0deg) scale(0.3);
    opacity: 0;
  }
}
.lk-unit.is-won > .lk {
  animation: lkStampDown 0.45s var(--bounce);
}
@keyframes lkStampDown {
  30% {
    transform: translateY(3px) scale(0.975);
  }
}
/* sits at the front's bottom edge: the padding is the front's height */
.lk-burst {
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  padding-top: var(--door);
  z-index: 4;
  pointer-events: none;
}
.lk-burst i {
  position: absolute;
  left: 0;
  top: 100%;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2);
  border-radius: 50%;
  background: var(--paper);
  animation: lkSpark 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}
@keyframes lkSpark {
  from {
    transform: rotate(var(--a)) translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: rotate(var(--a)) translateX(var(--d)) scale(0.2);
    opacity: 0;
  }
}
/* a list's first appearance: drawers arrive in turn, once */
.lk-list.is-arriving .lk-unit {
  animation: lkIn 0.5s var(--spring) backwards;
}
.lk-list.is-arriving .lk-col .lk-unit:nth-child(1) {
  animation-delay: 60ms;
}
.lk-list.is-arriving .lk-col .lk-unit:nth-child(2) {
  animation-delay: 110ms;
}
.lk-list.is-arriving .lk-col .lk-unit:nth-child(n + 3) {
  animation-delay: 160ms;
}
@keyframes lkIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- a run: a drawer for every day ---------- */
.lkc {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
  background: var(--grain), linear-gradient(180deg, var(--steel-2), var(--steel-0));
  color: var(--ink);
  font: var(--t-md);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.2s var(--ease), transform var(--spring-t) var(--spring);
}
.lkc.is-open {
  opacity: 1;
  transform: none;
}
.lkc-top {
  flex: none;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: calc(52px + var(--safe-t));
  padding-top: var(--safe-t);
  box-shadow: 0 1px 0 #000, 0 2px 0 rgba(255, 255, 255, 0.08);
}
.lkc-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--paper);
}
.lkc-btn:active {
  opacity: 0.5;
}
.lkc-title {
  min-width: 0;
  text-align: center;
}
.lkc-title h2 {
  margin: 0;
  font: 400 17px/1.2 var(--font-type);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lkc-title small {
  display: block;
  font: 400 10px/1.3 var(--font-type);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.lkc-scroll {
  flex: 1;
  overflow: hidden auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 10px calc(96px + var(--safe-b));
}
.lkc-scroll::-webkit-scrollbar {
  display: none;
}
/* the run in four counters */
.lkc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 16px 0 4px;
  text-align: center;
}
.lkc-stats b {
  display: inline-block;
  min-width: 40px;
  padding: 7px 8px 3px;
  border-radius: 3px;
  background: linear-gradient(#0c0c0c 49%, #000 50%, #171717 51%);
  box-shadow: inset 0 0 0 1px #353535;
  color: var(--paper);
  font: 400 22px/1 var(--font-type);
  font-variant-numeric: tabular-nums;
}
.lkc-stats b.is-hot {
  color: var(--hot);
}
.lkc-stats small {
  display: block;
  margin-top: 6px;
  font: 400 10px/1 var(--font-type);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.lk-unit--day .lk-holder {
  left: 10%;
  right: 10%;
  top: 14%;
}
.lk-unit--day .lk-card {
  padding: 6px 6px 3px;
}
.lk-unit--day .lk-num {
  font-size: 16px;
}
.lk-unit--day .lk-card > small {
  margin-top: 2px;
  font-size: 9px;
}
.lk-unit--day .lk-card .lk-clock {
  padding: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
}
.lk-unit--day .lk-stamp {
  font-size: 10px;
  border-width: 1.5px;
  padding: 1px 4px 0;
}
.lk-unit--day .lk-pull {
  bottom: 12%;
  width: 46%;
  height: 16%;
}
.lk-unit--day .lk-tab {
  right: 8px;
  min-width: 22px;
  font-size: 10px;
}
.lk-unit--day.is-today .lk {
  box-shadow: inset 0 0 0 2px var(--paper), 0 2px 0 #000;
}
.lk-unit--day.is-missed .lk {
  cursor: default;
  opacity: 0.55;
}
.lk-unit--day.is-missed .lk-card {
  background: #8f8c86;
}
.lk-unit--day.is-future .lk-card {
  background: #cfccc5;
}
.lk-unit--day .lk-stack {
  inset: 8% 4% 20%;
  transform: scale(0.78);
}
.lk-unit--day .lk-lockline {
  font-size: 8px;
  letter-spacing: 0.14em;
  bottom: 5px;
}
.lk-unit--day .lk-none {
  font-size: 10px;
}

/* today's clock, pinned at the foot */
.lkc-player {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px var(--gutter) calc(12px + var(--safe-b));
  background: linear-gradient(#0d0d0e, #050505);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.lkc-player[hidden] {
  display: none;
}
.lkc-pinfo {
  flex: 1;
  min-width: 0;
}
.lkc-pinfo b {
  display: block;
  font: 400 15px/1.25 var(--font-type);
  font-variant-numeric: tabular-nums;
}
.lkc-pinfo small {
  display: block;
  font: var(--t-xs);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lkc-pbar {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
}
.lkc-pbar b {
  display: block;
  height: 100%;
  background: var(--paper);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1s linear;
}
.lkc-player .lk-act--timer {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: #000;
}
.lkc-done {
  height: 38px;
  padding: 2px 20px 0;
  border-radius: 3px;
  background: var(--paper);
  color: #000;
  font: 400 14px/1 var(--font-type);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lkc-done:active {
  transform: translateY(2px);
}

@media (prefers-reduced-motion: reduce) {
  .lk-flash,
  .lk-unit.is-pop .lk-t,
  .lk-unit.is-settling .lk-t,
  .lk-unit.is-settling .lk-stack,
  .lk-unit.is-rattle .lk-stack,
  .lk-unit.is-drop > .lk,
  .lk-unit.is-won > .lk,
  .lk-unit.is-won .lk-stamp,
  .lk-list.is-arriving .lk-unit {
    animation: none !important;
  }
  .lk-unit.is-open .lk-t,
  .lk-unit.is-open .lk-stack {
    translate: none;
  }
  .lkc {
    transition: opacity 0.12s linear;
    transform: none;
  }
}
