.yb-gift-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #8f507d;
  border-radius: 10px;
  background: #352038;
  color: #ffdbf3;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.yb-gift-entry[hidden] { display: none; }
.yb-gift-available::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff86d0;
}
.yb-gift {
  --yb-gift-muted: #c9b8cd;
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  /* The website resets every margin to 0, which takes away the browser's centring of a modal dialog. */
  margin: auto;
  padding: 0;
  border: 1px solid #614062;
  border-radius: 20px;
  overflow: auto;
  background: #191320;
  color: #fff2f8;
  color-scheme: dark;
  font: 14px/1.4 system-ui, sans-serif;
  box-shadow: 0 18px 64px #000a;
}
.yb-gift::backdrop { background: #09060dcc; }
.yb-gift-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 151px;
  padding: 16px 20px;
  overflow: hidden;
  background: var(--yb-gift-tint);
}
.yb-gift-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--yb-gift-tint) 35%, transparent 95%);
}
.yb-gift[dir="rtl"] .yb-gift-hero::after {
  background: linear-gradient(270deg, var(--yb-gift-tint) 35%, transparent 95%);
}
.yb-gift-hero img {
  position: absolute;
  z-index: -2;
  inset: 0;
  inset-inline-start: auto;
  width: 56%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 27%;
}
.yb-gift-hero span { color: #ffc7e9; font-size: 12px; font-weight: 700; }
.yb-gift h2 { margin: 4px 38px 4px 0; font-size: clamp(23px, 5vw, 30px); line-height: 1.15; }
.yb-gift p { margin: 0; }
.yb-gift-hero p { max-width: 68%; color: #f4e4f4; font-size: 12px; }
.yb-gift-close {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff45;
  border-radius: 50%;
  background: #15101fd9;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.yb-gift-body { padding: 15px 18px 17px; }
.yb-gift-progress { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
.yb-gift-progress span { color: #ebbbdf; }
.yb-gift progress { display: block; width: 100%; height: 7px; margin-top: 8px; accent-color: #e653b3; }
.yb-gift ol {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 9px;
  padding: 0;
  list-style: none;
}
.yb-gift li {
  display: grid;
  place-content: center;
  gap: 1px;
  min-height: 60px;
  padding: 3px;
  border: 1px solid #ffffff20;
  border-radius: 9px;
  background: #251b2d;
  text-align: center;
}
.yb-gift li span { color: var(--yb-gift-muted); font-size: 10px; }
.yb-gift li strong { font-size: 21px; line-height: 1.12; }
.yb-gift li.milestone { color: #f3d4a9; border-color: #a979538f; }
.yb-gift li.earned { color: #a6eac7; border-color: #59e0a44c; background: #182c2a; }
.yb-gift li.today { color: #ffe4f6; border-color: #e766bd; background: #472847; }
.yb-gift .yb-gift-note { min-height: 18px; margin-bottom: 8px; color: #f4d7b0; font-size: 12px; }
.yb-gift dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; margin: 0; padding: 8px 10px; border-radius: 9px; background: #251b2d; }
.yb-gift dt, .yb-gift-fine { color: var(--yb-gift-muted); font-size: 11px; }
.yb-gift dd { margin: 0; font-size: 12px; font-weight: 700; }
.yb-gift .yb-gift-fine { margin: 7px 0 10px; }
.yb-gift .yb-gift-error { color: #ffb5c4; margin-bottom: 8px; }
.yb-gift-action {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(105deg, #7830dc, #b9318b);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.yb-gift-action:disabled { opacity: .65; cursor: progress; }
.yb-gift button:focus-visible, .yb-gift-entry:focus-visible { outline: 2px solid #ffc9ec; outline-offset: 2px; }
.yb-gift-telegram { position: fixed; inset: auto 0 0; width: min(550px, 100%); max-width: 100%; max-height: calc(100dvh - 12px); margin: 0 auto; border-radius: 19px 19px 0 0; }
.yb-gift-telegram .yb-gift-body { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
@media (max-width: 500px) {
  .yb-gift-body { padding-inline: 12px; }
  .yb-gift-hero { min-height: 125px; padding-inline: 14px; }
  .yb-gift ol { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .yb-gift li { min-height: 49px; }
  .yb-gift li:last-child { grid-column: span 2; }
  .yb-gift li strong { font-size: 18px; }
  .yb-gift-entry { padding-inline: 7px; }
}
