/* dock.css — shared styles for the 2022.rauno.me magnifying dock
   (dock.js). Extracted from paper.css in the P2.4 rebuild; the
   per-button CSS tooltip gave way to the single sliding spatial tip. */
.dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 56px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(100px) saturate(400%);
  backdrop-filter: blur(100px) saturate(400%);
  border: 1px solid var(--colors-gray5);
  border-radius: var(--radii-round);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  z-index: 20;
}
html.dark .dock {
  background: rgba(22, 22, 22, 0.8);
}
.dock-sep {
  width: 1px;
  height: 36px;
  background: var(--colors-gray6);
  flex-shrink: 0;
  align-self: center;
  -webkit-mask-image: linear-gradient(0deg, transparent, #fff 8px, #fff calc(100% - 8px), transparent);
  mask-image: linear-gradient(0deg, transparent, #fff 8px, #fff calc(100% - 8px), transparent);
}
.dock-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radii-round);
  background: var(--colors-gray3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--colors-gray10);
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* the bloom sinks to z -1 and must stop at the plate, not the dock */
  isolation: isolate;
  overflow: hidden;
}
/* the lab's Blurred Icons on the keys: the glyph's own blown-up echo
   floods the plate from behind — a frosted wash of its ink — and hover
   only deepens the flood (nothing sharpens; the glyph is already crisp) */
.dock-btn .icon-bloom {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82%;
  height: 82%;
  transform: translate(-50%, -50%);
  filter: blur(9px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
  transition: opacity 180ms ease-out;
}
.dock-btn:hover .icon-bloom,
.dock-btn:focus-visible .icon-bloom {
  opacity: 0.7;
}
@media (prefers-reduced-motion: reduce) {
  .dock-btn .icon-bloom { transition-duration: 0.01ms; }
}
.dock-btn:hover {
  color: var(--colors-gray12);
}
.dock-btn:active {
  background: var(--colors-gray4); /* pressed plate, under the glyph squish */
}
.dock-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px var(--colors-gray1), 0 0 0 4px var(--colors-gray9);
}
.dock-btn svg {
  width: 50%;
  height: 50%;
  pointer-events: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 50%;
  will-change: transform;
}

/* the spatial tip: one card above the plate, sliding between keys
   (dock.js drives transform + width on the 240/26 spring) */
.dock-tip {
  position: absolute;
  /* clear the MAGNIFIED key: 80px keys rise 32px past the plate top,
     so the tip rides 40px up — 8px daylight at full zoom (Tony: the
     name was hidden behind the zoomed icon) */
  bottom: calc(100% + 40px);
  left: 0;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow-dock);
  color: var(--colors-gray11);
  font-size: 12.5px;
  line-height: 1;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 140ms ease; /* the springiness lives in the travel, never the fade */
}
.dock-tip[data-show="true"] {
  opacity: 1;
}

@media (max-width: 720px) {
  .dock { bottom: 12px; }
}

@media (pointer: coarse) {
  /* the 100px backdrop blur is an iOS compositor tax; 30px reads the same */
  .dock { -webkit-backdrop-filter: blur(30px) saturate(400%); backdrop-filter: blur(30px) saturate(400%); }
}
