.wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  min-width: var(--responsive-icon-button-size, 42px);
  height: var(--responsive-icon-button-size, 42px);
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  padding: 0 11px;
  border: 1px solid var(--favorite-border);
  border-radius: 999px;
  background: var(--favorite-background);
  color: var(--favorite-color);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  box-shadow: var(--favorite-shadow);
  backdrop-filter: blur(16px);
  transition: background 160ms ease, transform 160ms ease,
    box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.dark {
  --favorite-background: rgba(18, 15, 24, 0.72);
  --favorite-border: rgba(255, 255, 255, 0.22);
  --favorite-color: #ffffff;
  --favorite-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.light {
  --favorite-background: rgba(255, 255, 255, 0.88);
  --favorite-border: rgba(43, 27, 34, 0.1);
  --favorite-color: #34272c;
  --favorite-shadow: 0 10px 24px rgba(74, 48, 58, 0.1);
}

.favorite {
  width: var(--responsive-icon-button-size, 42px);
  padding: 0;
}

.download {
  color: #ffffff;
  background: linear-gradient(135deg, #ff76ab, #f84d96);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 25px rgba(248, 77, 150, 0.3);
}

.saved {
  color: #f84d96;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.2);
}

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.light:focus-visible {
  outline-color: #f84d96;
}

.guideBackdrop {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    calc(18px + var(--app-safe-top, 0px))
    calc(18px + var(--app-safe-right, 0px))
    calc(18px + var(--app-safe-bottom, 0px))
    calc(18px + var(--app-safe-left, 0px));
  background: rgba(15, 11, 18, 0.58);
  backdrop-filter: blur(4px);
}

.guideDialog {
  position: relative;
  display: flex;
  width: min(100%, 340px);
  flex-direction: column;
  align-items: center;
  padding: 28px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 250, 252, 0.98);
  box-shadow: 0 24px 70px rgba(33, 17, 26, 0.3);
  color: #2d2026;
  text-align: center;
}

.guideClose {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(45, 32, 38, 0.07);
  color: #5b4a52;
  cursor: pointer;
}

.guideIcon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 19px;
  background: linear-gradient(135deg, #ff82b2, #f84d96);
  box-shadow: 0 12px 26px rgba(248, 77, 150, 0.26);
  color: #ffffff;
}

.guideDialog h2 {
  margin: 0;
  color: #281a21;
  font-size: 21px;
  font-weight: 850;
  line-height: 1.2;
}

.guideDialog p {
  margin: 12px 0 20px;
  color: #685761;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}

.guideConfirm {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff76ab, #f84d96);
  box-shadow: 0 10px 24px rgba(248, 77, 150, 0.24);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
}

.guideClose:focus-visible,
.guideConfirm:focus-visible {
  outline: 2px solid #f84d96;
  outline-offset: 3px;
}
