/* Grundstofkortet v1.7 progressive interface layer */
:root {
  --v17-heart: #c4562f;
  --v17-heart-soft: color-mix(in oklab, var(--v17-heart) 20%, var(--surface));
  --v17-star: #b8992a;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.v17-action {
  min-width: auto;
  justify-content: center;
}

.v17-action .v17-label {
  white-space: nowrap;
}

.v17-action[data-state="copied"] {
  border-color: var(--focus);
  color: var(--focus);
}

.v17-install[hidden] {
  display: none;
}


.v17-privacy {
  color: var(--ink-3);
  font-size: 11.5px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.v17-privacy:hover {
  color: var(--ink-2);
  border-bottom-color: var(--line);
}

.v17-energy {
  position: relative;
  margin-left: auto;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.v17-heart {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-3);
  cursor: pointer;
  box-shadow: var(--sh-1);
  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.v17-heart:hover:not(:disabled) {
  color: var(--v17-heart);
  border-color: color-mix(in oklab, var(--v17-heart) 44%, var(--line));
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
}

.v17-heart svg {
  width: 22px;
  height: 22px;
  overflow: visible;
}

.v17-heart .heart-fill {
  fill: transparent;
  transition: fill .22s ease, opacity .22s ease;
}

.v17-heart[data-sent="true"] {
  color: var(--v17-heart);
  background: var(--v17-heart-soft);
  border-color: color-mix(in oklab, var(--v17-heart) 52%, var(--line));
}

.v17-heart[data-sent="true"] .heart-fill {
  fill: currentColor;
  opacity: .96;
}

.v17-heart.is-bursting {
  animation: v17-heart-pulse .62s cubic-bezier(.2,.8,.25,1);
}

.v17-heart:disabled {
  cursor: default;
}

.v17-stars {
  position: absolute;
  inset: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 2;
}

.v17-star {
  --angle: calc(var(--i) * 36deg);
  --distance: 30px;
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  opacity: 0;
  color: var(--v17-star);
  transform: rotate(var(--angle)) translateY(0) scale(.2);
}

.v17-star::before,
.v17-star::after {
  content: "";
  position: absolute;
  inset: 2.5px 0;
  border-radius: 99px;
  background: currentColor;
}

.v17-star::after {
  transform: rotate(90deg);
}

.v17-energy.is-bursting .v17-star {
  animation: v17-star-ray .58s cubic-bezier(.15,.8,.3,1) both;
  animation-delay: calc(var(--i) * 9ms);
}

.v17-install-help {
  width: min(420px, calc(100vw - 28px));
  max-width: none;
  height: auto;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-2);
}

.v17-install-help::backdrop {
  background: rgba(10,14,20,.48);
  backdrop-filter: blur(3px);
}

.v17-install-card {
  padding: 22px;
}

.v17-install-card h2 {
  margin: 0 0 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: 24px;
}

.v17-install-card p {
  margin: 0 0 16px;
  color: var(--ink-2);
}

.v17-install-card ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--ink-2);
}

.v17-install-card button {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  cursor: pointer;
}

@keyframes v17-heart-pulse {
  0% { transform: scale(1); }
  22% { transform: scale(.82); }
  48% { transform: scale(1.18); }
  72% { transform: scale(.98); }
  100% { transform: scale(1); }
}

@keyframes v17-star-ray {
  0% {
    opacity: 0;
    transform: rotate(var(--angle)) translateY(0) scale(.15);
  }
  22% { opacity: 1; }
  100% {
    opacity: 0;
    transform: rotate(var(--angle)) translateY(calc(var(--distance) * -1)) scale(.95);
  }
}

@media (max-width: 720px) {
  .tools .v17-share {
    flex: 1 1 auto;
  }

  .tools .v17-install {
    flex: 1 1 auto;
  }

  .v17-action {
    min-height: 42px;
  }

  .foot-top {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v17-heart,
  .v17-heart .heart-fill {
    transition: none;
  }

  .v17-heart.is-bursting,
  .v17-energy.is-bursting .v17-star {
    animation: none;
  }

  .v17-energy.is-bursting .v17-star {
    display: none;
  }
}
