:root {
  --gp-stars-switch-ms: var(--ui-menu-ms, 280ms);
  --gp-stars-switch-ease: var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
  --gp-stars-gift-menu-ms: 224ms;
}

#gp-stars-root {
  position: absolute;
  inset: 0;
  z-index: 521;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 var(--app-gutter-x, 12px) calc(var(--gp-main-nav-safe-h, 66px) + 10px);
  background: var(--tg-bg, #141414);
  display: none;
  pointer-events: none;
}

#gp-stars-root::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html.gp-main-nav-enabled.gp-stars-open #gp-stars-root {
  display: block;
  pointer-events: auto;
  z-index: 523;
}

html.gp-main-nav-enabled:not(.gp-stars-open) #gp-stars-root {
  display: none;
  pointer-events: none;
}

/* Legacy global `[hidden]` overrides force display:flex; restore real hiding here. */
#gp-stars-root [hidden] {
  display: none !important;
}

.gp-main-nav-btn {
  position: relative;
  z-index: 1;
  background: transparent !important;
  transition:
    color var(--gp-stars-switch-ms) var(--gp-stars-switch-ease),
    opacity var(--gp-stars-switch-ms) var(--gp-stars-switch-ease) !important;
}

.gp-main-nav-btn.is-active {
  background: transparent !important;
}

.gp-main-nav {
  position: absolute;
  isolation: isolate;
  --gp-nav-pill-left: 8px;
  --gp-nav-pill-width: calc((100% - 28px) / 3);
}

.gp-main-nav::before {
  content: "";
  position: absolute;
  top: 6px;
  left: var(--gp-nav-pill-left, 8px);
  bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  width: var(--gp-nav-pill-width, calc((100% - 28px) / 3));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  transform: translateZ(0);
  opacity: 0;
  transition:
    left var(--gp-stars-switch-ms) var(--gp-stars-switch-ease),
    width var(--gp-stars-switch-ms) var(--gp-stars-switch-ease),
    opacity 180ms var(--gp-stars-switch-ease) !important;
  pointer-events: none;
  z-index: 0;
}

.gp-main-nav[data-gp-active-index]::before {
  opacity: 1;
}

.gp-main-nav[data-gp-active-index="0"] {
  --gp-nav-pill-left: 8px;
  --gp-nav-pill-width: calc((100% - 28px) / 3);
}

.gp-main-nav[data-gp-active-index="1"] {
  --gp-nav-pill-left: calc(8px + ((100% - 28px) / 3) + 6px);
  --gp-nav-pill-width: calc((100% - 28px) / 3);
}

.gp-main-nav[data-gp-active-index="2"] {
  --gp-nav-pill-left: calc(8px + (((100% - 28px) / 3) + 6px) * 2);
  --gp-nav-pill-width: calc((100% - 28px) / 3);
}

.gp-stars-balance-row {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  margin: 0 0 var(--gp-ui-gap, 8px);
  padding-top: var(--gp-balance-topbar-top, calc(max(var(--gp-top-safe-offset, var(--tg-sticky-top, 0px)), 0px) + var(--gp-ui-gap, 8px)));
  padding-bottom: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  box-sizing: border-box;
}

.gp-stars-balance-row.gp-stars-balance-row--pending {
  visibility: visible;
  opacity: 1;
  pointer-events: none;
}

html body .gp-main-nav {
  align-items: stretch;
}

html body .gp-main-nav-btn {
  box-sizing: border-box;
  min-height: 0;
  height: 100%;
  padding: 7px 6px 8px !important;
  text-align: center;
}

html body .gp-main-nav-icon {
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

html body .gp-main-nav-icon svg,
html body .gp-main-nav-star-icon {
  display: block;
  margin: 0 auto;
}

html body .gp-main-nav-label {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
}

.gp-stars-balance-row .balance-widget {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  margin-right: var(--gp-balance-widget-right, 0px);
}

.gp-stars-state {
  padding: 18px 12px;
  text-align: center;
  color: var(--tg-text-mute, #949ba4);
}

.gp-stars-section-title-row {
  margin: 8px 12px 12px;
  display: flex;
  width: fit-content;
  max-width: calc(100% - 24px);
  min-height: 38px;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
}

.gp-stars-topup-title,
.gp-stars-gifts-title {
  margin: 0;
  color: var(--tg-text, #f2f3f5);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
  min-width: 0;
  flex: 0 1 auto;
}

.gp-stars-topup-subtitle {
  display: none;
}

.gp-stars-info-btn {
  width: 25px;
  height: 25px;
  min-width: 25px;
  flex: 0 0 auto;
  align-self: center;
  position: relative;
  top: 1px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(222, 226, 230, 0.88);
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-sans, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-size: 0;
  font-weight: 800;
  line-height: 1;
  font-style: normal;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  margin: 0;
  transition: transform var(--dur-fast, 160ms) var(--gp-stars-switch-ease);
}

.gp-stars-info-btn::before {
  content: "i";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-indent: 0.02em;
  transform: translateY(1px);
}

.gp-stars-info-btn:hover,
.gp-stars-info-btn[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(222, 226, 230, 0.88);
}

.gp-stars-info-btn:active {
  transform: translateY(1px);
}

.gp-stars-info-btn:focus-visible {
  outline: 2px solid rgba(42, 174, 93, 0.92);
  outline-offset: 2px;
}

.gp-stars-topup.wallet-topup-card {
  margin: 0 0 12px;
  border-radius: 22px;
  padding: 14px 14px 13px;
  gap: 10px;
  border: 0;
  background: var(--tg-bg-elevated, #282727) !important;
  box-shadow: none;
}

.gp-stars-topup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 20px;
}

.gp-stars-topup-label {
  color: var(--tg-text-mute, #949ba4);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.gp-stars-topup-rate {
  display: none;
}

.gp-stars-topup-preview-edit {
  min-height: 62px;
  border-radius: 16px;
  background: transparent;
  border: 0;
  padding: 0;
}

.gp-stars-topup-preview.wallet-topup-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  line-height: 1;
  text-align: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.gp-stars-topup-preview-stars {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.16em;
}

.gp-stars-topup .wallet-star-icon {
  width: 1.08em;
  height: 1.08em;
}

.gp-stars-topup-input-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  padding: 0;
  margin: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.gp-stars-topup-btn.wallet-topup-submit {
  width: 100%;
  margin-top: 0;
  min-height: 56px;
  border-radius: 16px;
  font-size: 21px;
  font-weight: 700;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.gp-stars-topup-btn.wallet-topup-submit[disabled] {
  background: rgba(42, 174, 93, 0.58) !important;
  opacity: 1 !important;
  filter: none !important;
}

.gp-stars-topup-submit-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  pointer-events: none;
}

.gp-stars-topup-submit-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

.gp-stars-topup-submit-rate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

.gp-stars-topup-submit-star {
  width: 1.04em;
  height: 1.04em;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: middle;
  object-fit: contain;
  transform: translateY(-0.02em);
  pointer-events: none;
}

.gp-stars-topup-submit-min {
  display: inline-flex;
  gap: 6px;
  pointer-events: none;
}

.gp-stars-topup-submit-min-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

.gp-stars-topup-submit-min-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  pointer-events: none;
}

.gp-stars-topup-submit-min-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

.gp-stars-gift-overlay {
  --ui-menu-ms: var(--gp-stars-gift-menu-ms);
  transition-duration: var(--gp-stars-gift-menu-ms) !important;
}

.gp-stars-gift-overlay.visible,
.gp-stars-gift-overlay.closing {
  transition-duration: var(--gp-stars-gift-menu-ms) !important;
}

.gp-stars-gift-overlay.closing {
  pointer-events: none !important;
}
.gp-stars-gift-overlay.closing * {
  pointer-events: none !important;
}

.gp-stars-info-overlay {
  --ui-menu-ms: var(--gp-stars-gift-menu-ms);
  transition-duration: var(--gp-stars-gift-menu-ms) !important;
}

.gp-stars-info-overlay.visible,
.gp-stars-info-overlay.closing {
  transition-duration: var(--gp-stars-gift-menu-ms) !important;
}

.gp-stars-info-overlay.closing {
  pointer-events: none !important;
}
.gp-stars-info-overlay.closing * {
  pointer-events: none !important;
}

.gp-stars-state--error .gp-stars-retry {
  margin-top: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--tg-accent, #2aae5d);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
}

.gp-stars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gp-ui-gap, 8px);
}

.gp-stars-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  border: 0;
  background: var(--tg-bg-elevated, #282727);
  min-height: 160px;
  padding: 10px 8px;
  box-shadow: none;
  cursor: pointer;
}

.gp-stars-card:focus-visible {
  outline: 2px solid rgba(42, 174, 93, 0.9);
  outline-offset: 2px;
}

.gp-stars-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
}

.gp-stars-card-media img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
  /* Hide broken image icon while loading; .gp-img-loaded reveals it */
  opacity: 0;
  transition: opacity 120ms ease;
}

.gp-stars-card-media img.gp-img-loaded {
  opacity: 1;
}

.gp-stars-card-media-fallback {
  width: 76px;
  height: 76px;
  border-radius: 0;
  background: transparent;
}

.gp-stars-card-price {
  margin: 8px 0 0;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--tg-button-text, #ffffff);
  background: var(--tg-accent, #2aae5d);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

@keyframes gp-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.gp-stars-skeleton-card {
  min-height: 160px;
  border-radius: 16px;
  background: linear-gradient(110deg, #31302f 8%, #3a3938 22%, #31302f 38%);
  background-size: 220% 100%;
  animation: gp-skeleton-shimmer 1.6s infinite linear;
}

html.gp-motion-reduced .gp-stars-skeleton-card {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .gp-stars-skeleton-card {
    animation: none;
  }
}

.gp-stars-gift-sheet {
  width: 100%;
  max-width: 100%;
  padding: 14px 16px calc(env(safe-area-inset-bottom, 0px) + 14px);
  display: grid;
  gap: 10px;
  max-height: calc(var(--tg-viewport-height, 100vh) - 26px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: none;
  transition-duration: var(--gp-stars-gift-menu-ms) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.gp-stars-info-sheet {
  width: 100%;
  max-width: 100%;
  padding: 14px 16px calc(env(safe-area-inset-bottom, 0px) + 14px);
  display: grid;
  gap: 14px;
  max-height: calc(var(--tg-viewport-height, 100vh) - 26px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: none;
  transition-duration: var(--gp-stars-gift-menu-ms) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.gp-stars-gift-drag-handle,
.gp-stars-info-drag-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  margin: 0 auto 2px;
}

.gp-stars-gift-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.9);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.gp-stars-info-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.gp-stars-info-close::before,
.gp-stars-info-close::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.gp-stars-info-close::before {
  transform: rotate(45deg);
}

.gp-stars-info-close::after {
  transform: rotate(-45deg);
}

.gp-stars-gift-head {
  display: grid;
  gap: 2px;
  padding-right: 48px;
}

.gp-stars-gift-head-title {
  display: none;
}

.gp-stars-gift-name {
  color: var(--tg-text, #f2f3f5);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.gp-stars-info-title {
  color: var(--tg-text, #f2f3f5);
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  padding-right: 48px;
}

.gp-stars-info-body {
  display: grid;
  gap: 10px;
}

.gp-stars-info-list {
  display: grid;
  gap: 10px;
}

.gp-stars-info-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}

.gp-stars-info-item-bullet {
  width: 10px;
  height: 10px;
  display: block;
  align-self: start;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--tg-accent, #2aae5d);
  box-shadow: 0 0 0 4px rgba(42, 174, 93, 0.16);
}

.gp-stars-info-item-text {
  margin: 0;
  color: var(--tg-text, #f2f3f5);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

.gp-stars-info-ack {
  width: 100%;
  border: 0;
  border-radius: 16px;
  min-height: 54px;
  background: var(--tg-accent, #2aae5d);
  color: var(--tg-button-text, #ffffff);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.gp-stars-gift-preview {
  display: grid;
  justify-items: center;
  gap: 8px;
  border-radius: 16px;
  border: 0;
  background: transparent;
  padding: 0;
}

.gp-stars-gift-image {
  width: min(40vw, 132px);
  height: min(40vw, 132px);
  max-height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.gp-stars-gift-price {
  color: var(--tg-text-mute, #949ba4);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.gp-stars-gift-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
  padding: 8px 10px;
}

.gp-stars-gift-qty-label {
  color: var(--tg-text-mute, #949ba4);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}

.gp-stars-gift-stepper {
  display: inline-grid;
  grid-template-columns: 38px 56px 38px;
  grid-template-rows: 38px;
  align-items: center;
  gap: 7px;
}

.gp-stars-gift-stepper #gp-stars-gift-minus {
  grid-column: 1;
  grid-row: 1;
}

.gp-stars-gift-stepper #gp-stars-gift-plus {
  grid-column: 3;
  grid-row: 1;
}

.gp-stars-gift-stepper-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px !important;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  -webkit-tap-highlight-color: transparent;
  color: var(--tg-text, #f2f3f5);
  font-size: 31px;
  line-height: 1;
  font-weight: 700;
  font-family: var(--font-sans, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 1px;
  cursor: pointer;
}

.gp-stars-gift-stepper-btn[disabled] {
  opacity: 0.38;
  cursor: default;
}

.gp-stars-gift-stepper-symbol {
  display: inline-block;
  min-width: 1ch;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gp-stars-gift-stepper-value,
.gp-stars-gift-stepper-input {
  grid-column: 2;
  grid-row: 1;
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  height: 38px;
  justify-self: center;
  text-align: center;
  color: var(--tg-text, #f2f3f5);
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-family: var(--font-sans, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  -webkit-text-fill-color: var(--tg-text, #f2f3f5);
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  line-height: 38px;
  vertical-align: middle;
}

.gp-stars-gift-stepper-value {
  border: 0;
  background: transparent;
  cursor: text;
  display: block;
  line-height: 38px;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  top: 0;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.gp-stars-gift-stepper-value:focus-visible {
  outline: 2px solid rgba(42, 174, 93, 0.85);
  outline-offset: 4px;
  border-radius: 8px;
}

.gp-stars-gift-stepper-input {
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  line-height: 38px;
  text-align: center;
  caret-color: var(--tg-text, #f2f3f5);
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: text;
  user-select: text;
  font-family: var(--font-sans, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-weight: 800;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  -webkit-text-fill-color: var(--tg-text, #f2f3f5);
  position: relative;
  top: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.gp-stars-gift-stepper-input:focus-visible {
  outline: none;
}
.gp-stars-gift-stepper-input::selection {
  background: rgba(255, 255, 255, 0.18);
  color: inherit;
}

.gp-stars-gift-stepper.is-editing .gp-stars-gift-stepper-value {
  opacity: 0;
  pointer-events: none;
}

.gp-stars-gift-stepper.is-editing .gp-stars-gift-stepper-input {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  color: var(--tg-text, #f2f3f5);
}

.gp-stars-gift-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gp-stars-gift-total-label {
  color: var(--tg-text-mute, #949ba4);
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}

.gp-stars-gift-total-value {
  color: var(--tg-text, #f2f3f5);
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.gp-stars-gift-insufficient-note {
  display: none;
  width: 100%;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(15px, 3.3vw, 17px);
  line-height: 1.3;
  font-weight: 500;
  color: #ff2a2a;
}

.gp-stars-gift-insufficient-note.is-visible {
  display: flex;
}

.gp-stars-gift-buy {
  width: 100%;
  border: 0;
  border-radius: 16px;
  min-height: 54px;
  background: var(--tg-accent, #2aae5d);
  color: var(--tg-button-text, #ffffff);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 980px) {
  .gp-stars-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gp-stars-section-title-row {
    gap: 5px;
    min-height: 32px;
  }

  .gp-stars-topup-title,
  .gp-stars-gifts-title {
    font-size: 32px;
  }

  .gp-stars-info-btn {
    width: 23px;
    height: 23px;
    min-width: 23px;
    margin-top: 0;
  }

  .gp-stars-info-btn::before {
    font-size: 12px;
    transform: translateY(1px);
  }

  .gp-stars-topup-preview.wallet-topup-preview {
    font-size: 50px;
  }

  .gp-stars-topup-btn.wallet-topup-submit {
    font-size: 20px;
  }

  .gp-stars-card-price {
    font-size: 17px;
  }

  .gp-stars-gift-name {
    font-size: 21px;
  }

  .gp-stars-gift-stepper-value,
  .gp-stars-gift-stepper-input {
    font-size: 22px;
    width: 52px;
    min-width: 52px;
    max-width: 52px;
  }

  .gp-stars-gift-total-value {
    font-size: 24px;
  }

  .gp-stars-gift-buy {
    font-size: 19px;
  }

  .gp-stars-info-title {
    font-size: 22px;
  }

  .gp-stars-info-item-text {
    font-size: 14px;
  }

  .gp-stars-info-ack {
    font-size: 19px;
  }
}

html.gp-motion-reduced .gp-main-nav::before,
html.gp-motion-reduced .gp-stars-gift-overlay,
html.gp-motion-reduced .gp-stars-gift-sheet,
html.gp-motion-reduced .gp-stars-info-overlay,
html.gp-motion-reduced .gp-stars-info-sheet {
  transition: none !important;
}

html.gp-motion-reduced .gp-stars-card-media img {
  transition: none !important;
}
