:root {
  font-family: "DynaPuff", "Trebuchet MS", sans-serif;
  color-scheme: dark;
  background: transparent;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

body {
  display: flex;
  align-items: center;
  padding: 10vh;
  --color-start: #7b2de2;
  --color-middle: #9146ff;
  --color-end: #a968ff;
  --glow: rgba(145, 70, 255, 0.3);
}

body.platform-youtube {
  --color-start: #c31322;
  --color-middle: #e62117;
  --color-end: #ff3b30;
  --glow: rgba(230, 33, 23, 0.3);
}

.goal {
  --progress: 0%;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  border: 1vh solid rgba(255, 255, 255, 0.18);
  border-radius: 12vh;
  background: rgba(10, 10, 14, 0.94);
  box-shadow: 0 0 9vh var(--glow);
}

.goal__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--color-start), var(--color-middle) 55%, var(--color-end));
}

.goal__fill, .goal__content--filled {
  clip-path: inset(0 calc(100% - var(--progress)) 0 0);
}

.goal__content--empty {
  color: #f3eef9;
  clip-path: inset(0 0 0 var(--progress));
}

.goal__content--filled { color: #fff; }

.goal__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 22vh;
  padding: 0 23vh;
  white-space: nowrap;
  line-height: 1.1;
  text-shadow: 0 1.5vh 2.5vh rgba(0, 0, 0, 0.32);
}

.goal__platform { font-size: 35vh; font-weight: 700; }
.goal__type { font-size: 29vh; font-weight: 500; }
.goal__numbers { margin-left: auto; font-size: 38vh; font-weight: 700; font-variant-numeric: tabular-nums; }
