/* Multiples — the few words that sit over the field. */

.mx-ui {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  overflow: hidden;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
}

.mx-cap {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 9.5px;
  letter-spacing: 0.07em;
  white-space: nowrap;
  color: rgba(235, 229, 214, 0.5);
  opacity: 0;
  will-change: transform, opacity;
}
.mx-cap.dim { color: rgba(235, 229, 214, 0.2); }
.mx-cap.ours { color: var(--amber); }

.mx-hour {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 9px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: rgba(235, 229, 214, 0.46);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}
.mx-hour::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 5px;
  margin-bottom: 2px;
  background: rgba(235, 229, 214, 0.3);
}
.mx-hours.top .mx-hour::before { display: none; }
.mx-hours.top .mx-hour { font-size: 8px; }
.mx-hour.here { color: var(--amber); }
body.chrome-hidden .mx-hours, body.chrome-hidden .mx-home { opacity: 0; }

.mx-mine {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bone);
  opacity: 0;
  will-change: transform, opacity;
}

.mx-tip {
  position: absolute;
  left: 0;
  top: 0;
  padding: 7px 10px 8px;
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  white-space: nowrap;
  color: rgba(235, 229, 214, 0.86);
  background: rgba(8, 8, 11, 0.82);
  border-left: 1px solid rgba(235, 229, 214, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform, opacity;
}
.mx-tip.on { opacity: 1; }
.mx-tip .l2 { color: rgba(235, 229, 214, 0.5); }
.mx-tip.ours { border-left-color: var(--amber); }
.mx-tip.ours .l1 { color: var(--amber); }

.mx-edge, .mx-home {
  all: unset;
  position: absolute;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bone);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, color 0.25s ease;
}
.mx-edge { left: 0; top: 0; display: flex; align-items: center; gap: 0.8em; padding: 8px 10px; will-change: transform; }
.mx-edge .arrow { display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 0; }
.mx-edge.on { opacity: 0.85; pointer-events: auto; }
.mx-home { top: calc(var(--edge) + 28px); right: var(--edge); color: var(--text-dim); }
.mx-home.on { opacity: 1; pointer-events: auto; }
.mx-edge:hover, .mx-home:hover { color: var(--amber); }
.mx-edge:focus-visible, .mx-home:focus-visible { outline: 1px solid var(--amber); outline-offset: 4px; }

body.chrome-idle .mx-home { opacity: 0.3; }
body.chrome-idle .mx-home:not(.on) { opacity: 0; }
body.about-open .mx-home, body.about-open .mx-tip { opacity: 0; pointer-events: none; }

@media (max-width: 640px) {
  .mx-edge, .mx-home { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .mx-tip, .mx-edge, .mx-home { transition: none; }
}
