:root {
  --bg: #000000;
  --ink: #ffffff;
  --soft: rgba(255, 255, 255, 0.56);
  --glass: rgba(255, 255, 255, 0.07);
  --tint-a: #6f5cff;
  --tint-b: #18b9a5;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 14px;
}
/* two soft colours behind the bar, so the glass has something to bend */
.glow { position: absolute; left: 50%; top: 50%; width: min(360px, 96vw); height: 150px; margin: -75px 0 0 max(-180px, -48vw); border-radius: 50%; background: radial-gradient(closest-side at 28% 50%, color-mix(in srgb, var(--tint-a) 70%, transparent), transparent), radial-gradient(closest-side at 74% 50%, color-mix(in srgb, var(--tint-b) 60%, transparent), transparent); filter: blur(22px); opacity: 0.75; pointer-events: none; }

.tb {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(324px, 100%);
  height: 68px;
  padding: 0 8px;
  border-radius: 34px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 20px 44px -18px rgba(0, 0, 0, 0.9);
}
.tb__defs { position: absolute; }

/* the lens: three white shapes melted together by the filter, then shown as thin glass */
.tb__glass { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.tb__goo { position: absolute; inset: 0; filter: url(#tb-goo); opacity: 0.2; }
.tb__goo i { position: absolute; left: 0; top: 50%; width: 64px; height: 52px; margin: -26px 0 0 -32px; border-radius: 26px; background: #ffffff; }
.tb__shine { position: absolute; left: 0; top: 50%; width: 64px; height: 52px; margin: -26px 0 0 -32px; border-radius: 26px; box-shadow: inset 0 1.200px 0 rgba(255, 255, 255, 0.75), inset 0 -1px 0 rgba(255, 255, 255, 0.16), inset 0 0 14px rgba(255, 255, 255, 0.1); }

.tb__tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; border: 0; background: none; color: var(--soft); font: inherit; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: color 0.3s ease; }
.tb__tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; }
.tb__tab span { height: 0; font-size: 10.5px; line-height: 13px; font-weight: 660; letter-spacing: 0.01em; opacity: 0; overflow: hidden; }
.tb__tab[aria-selected="true"] { color: var(--ink); }
.tb__tab:focus-visible svg { filter: drop-shadow(0 0 5px #ffffff); }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #ffffff;
  stroke: #000000;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

@media (hover: hover) {
  .tb__tab:hover { color: var(--ink); }
}
