:root {
  --bg: #242628;
  --bar: #2e3134;
  --bubble-bg: #3a3d41;
  --ink: #f2f2f3;
  --muted: #9a9da1;
  --bubble: 64px;
  --icon-y: 62px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  min-height: var(--app-h, 100dvh);
}

main {
  min-height: var(--app-h, 100dvh);
}

#safe-probe {
  position: absolute;
  width: 0;
  height: env(safe-area-inset-bottom);
  pointer-events: none;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  touch-action: manipulation;
}

.dock-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.dock-shape path {
  fill: var(--bar);
}

.tabs {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  z-index: 2;
}

.tab {
  flex: 1;
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  touch-action: manipulation;
}

.tab:focus-visible .ico-glyph {
  outline: 2px solid rgba(242, 242, 243, 0.35);
  outline-offset: 6px;
  border-radius: 8px;
}

.ico {
  position: absolute;
  left: 50%;
  top: var(--icon-y);
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
}

.ico-glyph {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tab.is-pressed .ico-glyph {
  transform: scale(0.86);
}

.tab svg,
.bubble-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.tab svg {
  stroke-width: 1.6;
}

.bubble {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: var(--bubble);
  height: var(--bubble);
  pointer-events: none;
  will-change: transform;
}

.bubble-face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--bubble-bg);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.28),
    0 2px 5px rgba(0, 0, 0, 0.18);
  transition: transform 170ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bubble.is-pressed .bubble-face {
  transform: scale(0.9);
}

.bubble-icon {
  display: grid;
  place-items: center;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bubble-icon svg {
  stroke-width: 1.85;
}

.bubble-icon.is-swapping {
  opacity: 0;
  transform: scale(0.84);
}

@media (prefers-reduced-motion: reduce) {
  .ico-glyph,
  .bubble-face,
  .bubble-icon {
    transition: none;
  }
}
