/* Hallmark · pre-emit critique: P4 H5 E5 S4 R5 V4 */

.fall-page {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: var(--color-paper);
}

.fall-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  padding: var(--space-sm) var(--page-gutter);
  border-bottom: 1px solid var(--color-rule);
  background: var(--color-paper-2);
}

.fall-bar .wordmark {
  padding-bottom: 0;
}

.fall-bar .nav-switch {
  margin-right: 0;
  padding-bottom: 0;
}

.fall-file,
.fall-status,
.fall-clock {
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-outlier);
  font-size: var(--text-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fall-file {
  flex: 1 1 8rem;
  color: var(--color-muted);
}

.fall-status {
  color: var(--color-danger);
}

.fall-status[data-kind="info"] {
  color: var(--color-neutral);
}

.fall-clock {
  color: var(--color-neutral);
  letter-spacing: 0.03em;
}

.fall-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  margin-left: auto;
}

.fall-upload {
  position: relative;
  overflow: hidden;
}

.fall-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.fall-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.fall-scroll {
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.fall-inner {
  display: flex;
  flex-direction: column;
  min-width: max(100%, 48rem);
  height: 100%;
}

.fall-lane {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #000;
}

#fall-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.fall-empty {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  margin: 0;
  padding: var(--space-md);
  color: var(--color-neutral);
  font-size: var(--text-sm);
  text-align: center;
  pointer-events: none;
}

.fall-empty[hidden] {
  display: none;
}

.fall-hit {
  flex: 0 0 auto;
  height: 2px;
  background: var(--color-accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--color-accent) 70%, transparent);
}

.fall-piano {
  flex: 0 0 auto;
}

.fall-piano .white-key,
.fall-piano .black-key {
  cursor: default;
  pointer-events: none;
}

@media (max-width: 48rem) {
  .fall-bar {
    align-items: stretch;
  }

  .fall-actions,
  .fall-upload,
  .fall-actions .btn {
    width: 100%;
    max-width: none;
  }
}
