/* Split halves share one glyph baseline; the leaves turn around the center hinge. */
.flaps > .flap-cell {
  --flap-height: 44px;
  height: var(--flap-height);
  padding: 0;
  position: relative;
  overflow: hidden;
  perspective: 220px;
  line-height: calc(var(--flap-height) - 2px);
  isolation: isolate;
}
.flap-cell > span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  text-align: center;
}
.flap-cell > span > span {
  position: absolute;
  left: 0;
  width: 100%;
  height: calc(var(--flap-height) - 2px);
  line-height: calc(var(--flap-height) - 2px);
}
.flap-upper, .flap-leaf-upper {
  top: 0;
  background: linear-gradient(#28313c, #13171d);
  transform-origin: center bottom;
}
.flap-lower, .flap-leaf-lower {
  bottom: 0;
  background: linear-gradient(#364252, #12161b 15%, #0f1216);
  transform-origin: center top;
}
.flap-upper > span, .flap-leaf-upper > span {top: 0}
.flap-lower > span, .flap-leaf-lower > span {top: -100%}
.flap-cell > .flap-leaf-upper, .flap-cell > .flap-leaf-lower {display: none; z-index: 2}
.flap-cell.flipping > .flap-leaf-upper, .flap-cell.flipping > .flap-leaf-lower {display: block}
.flap-cell::after {content: ''; position: absolute; inset: 50% 0 auto; height: 1px; background: #000; box-shadow: 0 1px #0008; z-index: 4}
@media (max-width: 900px) {.flaps > .flap-cell {--flap-height: 38px}}
@media (max-width: 600px) {.status-flaps .flaps > .flap-cell {--flap-height: 32px; height: var(--flap-height)}}
@media (prefers-reduced-motion: reduce) {.flap-cell.flipping > .flap-leaf-upper, .flap-cell.flipping > .flap-leaf-lower {display: none}}
