:root {
  --cyan: #03f5d8;
  --magenta: #c447ff;
  --purple: #6b2aa1;
  --yellow: #ffd83d;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.76);
  --reward-theme-accent: #03f5d8;
  --reward-theme-accent-soft: rgba(3, 245, 216, 0.18);
  --reward-theme-accent-strong: rgba(3, 245, 216, 0.76);
  --reward-theme-secondary: #531c7b;
  --reward-theme-secondary-soft: rgba(196, 71, 255, 0.2);
  --reward-theme-background: rgba(54, 58, 61, 0.78);
  --reward-theme-background-deep: rgba(54, 58, 61, 0.88);
  --reward-theme-card: rgba(13, 15, 20, 0.82);
  --reward-theme-card-soft: rgba(13, 15, 20, 0.62);
  --reward-theme-text: #ffffff;
  --reward-theme-muted: rgba(255, 255, 255, 0.74);
  --reward-theme-border: rgba(255, 255, 255, 0.34);
  --reward-theme-border-strong: rgba(255, 255, 255, 0.68);
  --reward-theme-glow: rgba(196, 71, 255, 0.5);
  --reward-theme-glow-soft: rgba(196, 71, 255, 0.22);
  --reward-theme-glow-strong: rgba(196, 71, 255, 0.78);
  --reward-theme-shine: rgba(255, 255, 255, 0.18);
  --reward-theme-widget-glow: rgba(196, 71, 255, 0.44);
  --reward-theme-widget-inset-shine: rgba(255, 255, 255, 0.16);
  --reward-theme-widget-border: rgba(255, 255, 255, 0.28);
  --reward-theme-widget-shine: rgba(255, 255, 255, 0.2);
  --reward-theme-widget-side-shine-left: rgba(255, 255, 255, 0.2);
  --reward-theme-widget-side-shine-right: rgba(255, 255, 255, 0.16);
  --reward-theme-widget-radial-shine: rgba(255, 255, 255, 0.22);
  --reward-theme-widget-top-shine: rgba(255, 255, 255, 0.22);
  --reward-theme-widget-bottom-shine: rgba(255, 255, 255, 0.12);
  --reward-theme-widget-after-left-shine: rgba(255, 255, 255, 0.2);
  --reward-theme-widget-after-right-shine: rgba(255, 255, 255, 0.14);
  --reward-theme-widget-top: rgba(54, 58, 61, 0.72);
  --reward-theme-widget-mid: rgba(12, 12, 18, 0.78);
  --reward-theme-widget-bottom: rgba(83, 28, 123, 0.68);
  --reward-theme-widget-base: rgba(10, 9, 14, 0.62);
  --reward-theme-card-border: rgba(255, 255, 255, 0.2);
  --reward-theme-card-shine: rgba(255, 255, 255, 0.16);
  --reward-theme-card-base: rgba(13, 15, 20, 0.58);
  --reward-theme-card-text: rgba(255, 255, 255, 0.96);
  --reward-theme-card-active-glow: rgba(196, 71, 255, 0.38);
  --reward-theme-card-active-accent: rgba(3, 245, 216, 0.18);
  --reward-theme-callout-border: rgba(255, 255, 255, 0.26);
  --reward-theme-callout-start: rgba(3, 245, 216, 0.22);
  --reward-theme-callout-end: rgba(196, 71, 255, 0.34);
  --reward-theme-callout-base: rgba(12, 8, 22, 0.84);
  --reward-theme-callout-glow: rgba(196, 71, 255, 0.48);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent;
  font-family: Inter, Arial, sans-serif;
}

body {
  display: grid;
  place-items: center;
}

.widget {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 575px;
  height: 188px;
  color: var(--white);
  border: 2px solid rgba(141, 93, 255, 0.64);
  border-radius: 7px;
  background:
    linear-gradient(100deg, rgba(3, 245, 216, 0.28) 0%, rgba(96, 111, 128, 0.64) 49%, rgba(185, 65, 255, 0.38) 100%),
    rgba(27, 31, 43, 0.62);
  backdrop-filter: blur(20px) saturate(155%);
  -webkit-backdrop-filter: blur(20px) saturate(155%);
  box-shadow:
    0 20px 44px rgba(35, 22, 61, 0.38),
    0 0 34px rgba(141, 93, 255, 0.42),
    0 0 18px rgba(3, 245, 216, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  isolation: isolate;
}

.widget::before {
  position: absolute;
  inset: 1px;
  content: "";
  pointer-events: none;
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.08) 48%, rgba(0, 0, 0, 0.16)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.08));
  opacity: 0.9;
  overflow: hidden;
}

.panel {
  position: relative;
  min-width: 0;
  padding: 26px 20px 22px;
  z-index: 1;
}

.like-panel {
  padding-left: 20px;
  padding-right: 19px;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 1px 0 0 rgba(3, 245, 216, 0.28);
}

.support-panel {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  padding-left: 20px;
  padding-right: 20px;
}

.heading {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 27px;
  font-family: Bangers, Inter, Arial, sans-serif;
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--cyan);
  -webkit-text-stroke: 0.35px rgba(0, 28, 32, 0.72);
  text-shadow:
    0 0 8px rgba(3, 245, 216, 0.9),
    2px 2px 0 rgba(0, 86, 82, 0.72),
    0 4px 9px rgba(0, 0, 0, 0.72);
  white-space: nowrap;
}

.support-heading {
  color: var(--magenta);
  -webkit-text-stroke: 0.35px rgba(36, 0, 59, 0.72);
  text-shadow:
    0 0 8px rgba(196, 71, 255, 0.9),
    2px 2px 0 rgba(87, 20, 144, 0.78),
    0 4px 9px rgba(0, 0, 0, 0.72);
}

.support-panel .heading {
  height: 42px;
  font-size: 38px;
  gap: 13px;
}

.support-panel .heading-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}

.heading-icon {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  fill: currentColor;
  filter: drop-shadow(0 0 5px currentColor);
}

.crown {
  color: var(--magenta);
}

.counter {
  display: flex;
  align-items: baseline;
  gap: 5px;
  height: 43px;
  margin-top: 7px;
  max-width: 100%;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 rgba(18, 24, 32, 0.82),
    0 6px 10px rgba(0, 0, 0, 0.72),
    0 0 14px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.slash,
#like-percent {
  color: rgba(255, 255, 255, 0.88);
}

#like-percent {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 21px;
}

.bar {
  width: 100%;
  height: 18px;
  margin-top: 12px;
  padding: 2px;
  border: 1px solid rgba(12, 255, 226, 0.92);
  border-radius: 5px;
  background: rgba(12, 27, 32, 0.58);
  box-shadow:
    0 0 0 1px rgba(2, 9, 13, 0.72) inset,
    0 0 12px rgba(3, 245, 216, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fill {
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #10e9cf, #2ffff0);
  box-shadow:
    0 0 10px rgba(3, 245, 216, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: width 450ms ease;
}

.support-pill {
  display: grid;
  justify-items: center;
  align-items: start;
  width: 220px;
  min-height: 111px;
  margin-left: 0;
  padding: 8px 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(122, 55, 195, 0.84), rgba(74, 31, 118, 0.78)),
    rgba(41, 16, 70, 0.72);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09) inset,
    0 0 14px rgba(183, 52, 255, 0.34),
    0 8px 18px rgba(42, 17, 78, 0.32);
}

.support-media {
  position: relative;
  width: 68px;
  height: 56px;
}

.support-avatar {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.5), transparent 30%),
    linear-gradient(135deg, rgba(3, 245, 216, 0.48), rgba(196, 71, 255, 0.62));
  box-shadow:
    0 0 10px rgba(3, 245, 216, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.22) inset;
}

.support-avatar svg,
.support-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  fill: currentColor;
}

.gift-icon {
  display: grid;
  place-items: center;
  position: absolute;
  right: -17px;
  bottom: -6px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  color: var(--yellow);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.52), transparent 28%),
    radial-gradient(circle, rgba(255, 216, 61, 0.28), rgba(255, 127, 51, 0.12));
  filter: drop-shadow(0 0 6px rgba(255, 216, 61, 0.75));
}

.gift-icon svg,
.gift-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  fill: currentColor;
}

.support-copy {
  display: grid;
  justify-items: center;
  min-width: 0;
  gap: 2px;
  width: 100%;
  margin-top: 6px;
  text-align: center;
}

.support-copy strong {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.68);
}

.support-name-scroll {
  display: inline-block;
  max-width: none;
  will-change: transform;
}

.support-copy strong.is-marquee {
  text-overflow: clip;
}

.support-copy strong.is-marquee .support-name-scroll {
  animation: supportNamePan 6.5s ease-in-out infinite alternate;
}

@keyframes supportNamePan {
  0%,
  18% {
    transform: translateX(0);
  }

  82%,
  100% {
    transform: translateX(calc(-1 * var(--marquee-distance, 0px)));
  }
}

.support-copy span {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.58);
}

.scanline {
  display: none;
}

.status {
  position: fixed;
  right: 10px;
  bottom: 8px;
  max-width: 380px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 180ms ease;
}

body.show-status .status {
  opacity: 1;
}

@media (max-width: 590px) {
  .widget {
    width: 100vw;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: calc(100vw * 0.327);
  }

  .panel {
    padding: 4.5vw 3.5vw 3.8vw;
  }

  .like-panel {
    padding-left: 3.5vw;
  }

  .support-panel {
    gap: 1.75vw;
    padding-left: 3.5vw;
    padding-right: 3.5vw;
  }

  .heading {
    height: 4.7vw;
    font-size: 4.7vw;
    gap: 1.55vw;
  }

  .heading-icon {
    width: 4vw;
    height: 4vw;
    flex-basis: 4vw;
  }

  .counter {
    height: 7.5vw;
    margin-top: 1.2vw;
    gap: 0.85vw;
    font-size: 5.4vw;
  }

  #like-percent {
    font-size: 3.65vw;
  }

  .bar {
    height: 3vw;
    margin-top: 2.1vw;
    padding: 0.35vw;
    border-width: 0.2vw;
  }

  .support-pill {
    width: 38.25vw;
    min-height: 19.3vw;
    margin-left: 0;
    padding: 1.4vw 2.45vw 1.75vw;
    border-radius: 2.6vw;
  }

  .support-media {
    width: 11.8vw;
    height: 9.75vw;
  }

  .support-avatar {
    width: 8.85vw;
    height: 8.85vw;
  }

  .gift-icon {
    right: -2.95vw;
    bottom: -1.05vw;
    width: clamp(30px, 7.65vw, 42px);
    height: clamp(30px, 7.65vw, 42px);
  }

  .gift-icon svg,
  .gift-icon img {
    width: clamp(25px, 6.6vw, 36px);
    height: clamp(25px, 6.6vw, 36px);
  }

  .support-copy strong {
    font-size: 2.8vw;
  }

  .support-copy span {
    font-size: 2.1vw;
  }
}

.thin-source {
  place-items: center;
}

.thin-source .thin-widget {
  --heat-color: hsl(var(--like-hue, 174) 100% 58%);
  --heat-color-soft: hsl(var(--like-hue, 174) 100% 74%);
  grid-template-columns: minmax(0, 1fr);
  width: var(--thin-goal-width, 1080px);
  height: var(--thin-goal-height, 44px);
  overflow: hidden;
  border-width: 1px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--thin-goal-accent, #03f5d8) 12%, transparent), rgba(66, 44, 91, 0.44) 48%, color-mix(in srgb, var(--thin-goal-glow, #c447ff) 22%, transparent)),
    rgba(21, 16, 31, 0.42);
  box-shadow:
    0 0 12px color-mix(in srgb, var(--thin-goal-glow, #c447ff) 34%, transparent),
    0 0 8px color-mix(in srgb, var(--thin-goal-accent, #03f5d8) 10%, transparent),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.thin-source .thin-widget::before {
  inset: 0;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 48%, rgba(0, 0, 0, 0.18)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.08));
}

.thin-source .panel {
  display: grid;
  align-items: center;
  min-height: 0;
  padding: 0 18px;
}

.thin-source .like-panel {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding-right: 18px;
  border-right: 0;
  box-shadow: none;
}

.thin-source .heading {
  flex: 0 0 auto;
  height: 24px;
  gap: 5px;
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--thin-goal-accent, var(--cyan));
  text-shadow:
    0 1px 0 rgba(0, 86, 82, 0.86),
    0 0 7px color-mix(in srgb, var(--thin-goal-accent, #03f5d8) 86%, transparent),
    0 2px 5px rgba(0, 0, 0, 0.76);
  -webkit-text-stroke: 0;
}

.thin-source .heading-icon {
  flex-basis: 20px;
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thin-source .goal-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.thin-source .counter {
  position: absolute;
  top: 50%;
  left: clamp(calc(var(--thin-counter-width, 44px) / 2), var(--progress, 0%), calc(100% - calc(var(--thin-counter-width, 44px) / 2)));
  z-index: 3;
  display: grid;
  place-items: center;
  width: var(--thin-counter-width, 44px);
  height: 22px;
  margin-top: 0;
  color: #061013;
  font-size: 15px;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.34),
    0 0 8px rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), var(--heat-color-soft)),
    var(--heat-color);
  box-shadow:
    0 0 calc(12px + var(--like-heat, 0) * 0.08px) color-mix(in srgb, var(--heat-color) 82%, white 18%),
    0 2px 8px rgba(0, 0, 0, 0.58);
  transform: translate(-50%, -50%);
  animation: thinBadgePulse 2.8s ease-in-out infinite;
  transition: left 450ms ease;
}

.thin-source .counter span {
  max-width: calc(var(--thin-counter-width, 44px) - 10px);
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.thin-source .bar {
  position: relative;
  width: auto;
  height: 14px;
  min-width: 0;
  margin: 0;
  padding: 1px;
  border: 1px solid color-mix(in srgb, var(--heat-color) 86%, white 14%);
  border-radius: 4px;
  background: rgba(5, 10, 18, 0.78);
  box-shadow:
    0 0 0 1px rgba(2, 9, 13, 0.9) inset,
    0 0 calc(14px + var(--like-heat, 0) * 0.08px) color-mix(in srgb, var(--heat-color) 62%, transparent),
    0 0 8px color-mix(in srgb, var(--thin-goal-glow, #c447ff) 38%, transparent);
}

.thin-source .fill {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background:
    linear-gradient(90deg, var(--heat-color), var(--heat-color-soft), var(--heat-color)),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.18) 0 8px, transparent 8px 16px);
  background-size: 180% 100%, 28px 28px;
  box-shadow:
    0 0 calc(12px + var(--like-heat, 0) * 0.08px) color-mix(in srgb, var(--heat-color) 90%, white 10%),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  animation: thinFillFlow 2.8s linear infinite;
  transition:
    background 220ms ease,
    box-shadow 220ms ease;
}

.thin-source .fill::after {
  position: absolute;
  top: -3px;
  right: -4px;
  bottom: -3px;
  width: 18px;
  content: "";
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), color-mix(in srgb, var(--heat-color-soft) 76%, transparent) 38%, transparent 72%);
  opacity: 0.9;
  animation: thinHeadGlow 1.8s ease-in-out infinite;
}

.thin-source .goal-target {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-width: 0;
  color: color-mix(in srgb, var(--thin-goal-text, #ffffff) 94%, transparent);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 1px 0 rgba(18, 24, 32, 0.9),
    0 0 8px color-mix(in srgb, var(--thin-goal-glow, #c447ff) 60%, transparent);
}

.thin-source.likes-hot .heading,
.thin-source.likes-hot .goal-target {
  color: color-mix(in srgb, var(--heat-color) 72%, white 28%);
}

.thin-source.likes-hype .counter {
  animation:
    thinBadgePulse 1.35s ease-in-out infinite,
    thinHypeNudge 360ms ease-in-out infinite;
}

.thin-source .thin-percent {
  display: none;
}

@media (max-width: 1080px) {
  .thin-source .thin-widget {
    width: min(var(--thin-goal-width, 1080px), 100vw);
    height: var(--thin-goal-height, 44px);
    min-height: 30px;
    max-height: 120px;
  }

  .thin-source .panel {
    padding-right: max(14px, 1.65vw);
    padding-left: max(14px, 1.65vw);
  }

  .thin-source .heading {
    height: clamp(20px, 2.25vw, 24px);
    font-size: clamp(14px, 1.55vw, 16px);
    gap: 0.4vw;
  }

  .thin-source .heading-icon {
    flex-basis: clamp(17px, 1.85vw, 20px);
    width: clamp(17px, 1.85vw, 20px);
    height: clamp(17px, 1.85vw, 20px);
  }

  .thin-source .like-panel {
    gap: max(8px, 1.1vw);
  }

  .thin-source .goal-track {
    grid-template-columns: minmax(0, 1fr) clamp(96px, 10.4vw, 112px);
    gap: max(8px, 1.1vw);
  }

  .thin-source .counter {
    left: clamp(calc(var(--thin-counter-width, 44px) / 2), var(--progress, 0%), calc(100% - calc(var(--thin-counter-width, 44px) / 2)));
    width: var(--thin-counter-width, 44px);
    height: clamp(20px, 2.05vw, 22px);
    font-size: clamp(13px, 1.42vw, 15px);
  }

  .thin-source .bar {
    height: clamp(12px, 1.32vw, 14px);
  }

  .thin-source .goal-target {
    font-size: clamp(15px, 1.62vw, 17px);
  }
}

@keyframes thinFillFlow {
  from {
    background-position: 0% 0, 0 0;
  }

  to {
    background-position: 180% 0, 28px 0;
  }
}

@keyframes thinBadgePulse {
  0%,
  100% {
    box-shadow:
      0 0 calc(12px + var(--like-heat, 0) * 0.08px) color-mix(in srgb, var(--heat-color) 84%, transparent),
      0 2px 8px rgba(0, 0, 0, 0.58);
  }

  50% {
    box-shadow:
      0 0 calc(18px + var(--like-heat, 0) * 0.1px) color-mix(in srgb, var(--heat-color) 92%, white 8%),
      0 0 10px rgba(255, 255, 255, 0.34),
      0 2px 8px rgba(0, 0, 0, 0.58);
  }
}

@keyframes thinHypeNudge {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.045);
  }
}

@keyframes thinHeadGlow {
  0%,
  100% {
    opacity: 0.62;
    transform: scaleX(0.76);
  }

  50% {
    opacity: 1;
    transform: scaleX(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .thin-source .counter,
  .thin-source .fill,
  .thin-source .fill::after {
    animation: none;
  }
}

.support-source {
  place-items: center;
}

.support-source .support-widget {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 420px;
  height: 74px;
  padding: 9px 12px;
  overflow: hidden;
  color: var(--white);
  border: 1px solid rgba(196, 71, 255, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(35, 14, 61, 0.88), rgba(80, 31, 125, 0.72) 54%, rgba(31, 86, 92, 0.58)),
    rgba(12, 10, 20, 0.72);
  box-shadow:
    0 0 20px rgba(196, 71, 255, 0.56),
    0 0 12px rgba(3, 245, 216, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  isolation: isolate;
}

.support-source .support-widget::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 46%, rgba(0, 0, 0, 0.22)),
    linear-gradient(90deg, rgba(196, 71, 255, 0.18), transparent 34%, rgba(3, 245, 216, 0.14));
}

.support-source .support-widget::after {
  position: absolute;
  inset: -30%;
  z-index: -1;
  content: "";
  background: conic-gradient(from 90deg, transparent, rgba(255, 255, 255, 0.34), rgba(196, 71, 255, 0.36), transparent);
  opacity: 0;
  transform: translateX(-42%) rotate(0deg);
}

.leader-banner {
  display: none;
}

.support-source .leader-banner {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, transparent, rgba(12, 6, 22, 0.88) 20%, rgba(48, 12, 76, 0.92) 50%, rgba(12, 6, 22, 0.88) 80%, transparent);
}

.support-source .leader-banner span {
  flex: 0 0 auto;
  min-width: 100%;
  color: var(--yellow);
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(255, 216, 61, 0.92),
    0 2px 6px rgba(0, 0, 0, 0.88);
  transform: translateX(-100%);
}

.support-source .support-widget.support-takeover {
  animation: supportTakeoverCard 1500ms cubic-bezier(0.18, 0.9, 0.24, 1.15);
}

.support-source .support-widget.support-takeover .leader-banner {
  animation: leaderBannerReveal 1900ms ease-out;
}

.support-source .support-widget.support-takeover .leader-banner span {
  animation: leaderBannerText 1900ms ease-out;
}

.support-source .support-widget.support-takeover::after {
  animation: supportTakeoverSweep 1500ms ease-out;
}

.support-source .support-widget.support-takeover .support-kicker {
  animation: supportTakeoverKicker 1500ms ease-out;
}

.support-source .support-widget.support-takeover .support-avatar {
  animation: supportTakeoverAvatar 1500ms cubic-bezier(0.18, 0.9, 0.24, 1.15);
}

.support-source .support-widget.support-takeover .gift-icon {
  animation: supportTakeoverGift 1500ms cubic-bezier(0.18, 0.9, 0.24, 1.15);
}

.support-source .support-widget.support-takeover .support-copy {
  animation: supportTakeoverCopy 1400ms ease-out;
}

.support-source .support-kicker {
  display: grid;
  align-content: center;
  justify-items: center;
  align-self: center;
  gap: 0;
  width: 110px;
  height: 52px;
  color: var(--magenta);
  font-size: 14px;
  font-weight: 800;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(196, 71, 255, 0.9),
    0 2px 5px rgba(0, 0, 0, 0.8);
}

.support-source .support-kicker-icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
  filter: drop-shadow(0 0 5px currentColor);
}

.support-source .support-kicker span {
  display: block;
  width: 100%;
  text-align: center;
}

.support-source .support-pill {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: 12px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.support-source .support-media {
  width: 52px;
  height: 52px;
}

.support-source .support-avatar {
  width: 52px;
  height: 52px;
  border-color: rgba(255, 255, 255, 0.54);
  box-shadow:
    0 0 14px rgba(196, 71, 255, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.32) inset;
}

.support-source .gift-icon {
  right: -13px;
  bottom: -5px;
  width: 36px;
  height: 36px;
}

.support-source .gift-icon svg,
.support-source .gift-icon img {
  width: 31px;
  height: 31px;
}

.support-source .support-copy {
  justify-items: start;
  gap: 4px;
  width: 100%;
  margin-top: 0;
  text-align: left;
}

.support-source .support-copy strong {
  font-size: 21px;
  line-height: 1;
  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.82),
    0 0 9px rgba(255, 255, 255, 0.22);
}

.support-source .support-copy span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.05;
  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.72),
    0 0 8px rgba(196, 71, 255, 0.34);
}

@media (max-width: 420px) {
  .support-source .support-widget {
    width: 100vw;
    height: calc(100vw * 0.176);
    min-height: 64px;
    max-height: 74px;
    padding: 2.15vw 2.85vw;
    gap: 2.35vw;
  }

  .support-source .support-kicker {
    width: 22.85vw;
    height: clamp(46px, 12.4vw, 52px);
    font-size: clamp(12px, 3.3vw, 14px);
  }

  .support-source .support-kicker-icon {
    width: clamp(22px, 6.2vw, 26px);
    height: clamp(22px, 6.2vw, 26px);
  }

  .support-source .support-pill {
    grid-template-columns: clamp(45px, 12.4vw, 52px) minmax(0, 1fr);
    gap: 2.85vw;
  }

  .support-source .support-media,
  .support-source .support-avatar {
    width: clamp(45px, 12.4vw, 52px);
    height: clamp(45px, 12.4vw, 52px);
  }

  .support-source .gift-icon {
    width: clamp(30px, 8.5vw, 36px);
    height: clamp(30px, 8.5vw, 36px);
  }

  .support-source .gift-icon svg,
  .support-source .gift-icon img {
    width: clamp(25px, 7.3vw, 31px);
    height: clamp(25px, 7.3vw, 31px);
  }

  .support-source .support-copy strong {
    font-size: clamp(17px, 5vw, 21px);
  }

  .support-source .support-copy span {
    font-size: clamp(11px, 3.1vw, 13px);
  }
}

.support-panel.support-takeover .support-pill {
  animation: supportTakeoverCard 1400ms cubic-bezier(0.18, 0.9, 0.24, 1.15);
}

.support-panel .leader-banner {
  position: absolute;
  inset: 12px 8px;
  z-index: 5;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent, rgba(12, 6, 22, 0.9) 18%, rgba(48, 12, 76, 0.94) 50%, rgba(12, 6, 22, 0.9) 82%, transparent);
}

.support-panel .leader-banner span {
  flex: 0 0 auto;
  min-width: 100%;
  color: var(--yellow);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(255, 216, 61, 0.92),
    0 2px 6px rgba(0, 0, 0, 0.88);
  transform: translateX(-100%);
}

.support-panel.support-takeover .leader-banner {
  animation: leaderBannerReveal 1800ms ease-out;
}

.support-panel.support-takeover .leader-banner span {
  animation: leaderBannerText 1800ms ease-out;
}

.support-panel.support-takeover .support-avatar {
  animation: supportTakeoverAvatar 1400ms cubic-bezier(0.18, 0.9, 0.24, 1.15);
}

.support-panel.support-takeover .gift-icon {
  animation: supportTakeoverGift 1400ms cubic-bezier(0.18, 0.9, 0.24, 1.15);
}

.support-panel.support-takeover .support-copy {
  animation: supportTakeoverCopy 1300ms ease-out;
}

@keyframes leaderBannerReveal {
  0%,
  6% {
    opacity: 0;
  }

  18%,
  82% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes leaderBannerText {
  0% {
    transform: translateX(-100%);
  }

  18% {
    transform: translateX(-34%);
  }

  82% {
    transform: translateX(34%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes supportTakeoverCard {
  0% {
    filter: brightness(1);
    transform: scale(0.94);
    box-shadow:
      0 0 0 rgba(196, 71, 255, 0),
      0 0 0 rgba(3, 245, 216, 0);
  }

  38% {
    filter: brightness(1.38);
    transform: scale(1.055);
    box-shadow:
      0 0 34px rgba(196, 71, 255, 0.92),
      0 0 20px rgba(3, 245, 216, 0.48);
  }

  100% {
    filter: brightness(1);
    transform: scale(1);
  }
}

@keyframes supportTakeoverSweep {
  0% {
    opacity: 0;
    transform: translateX(-48%) rotate(0deg);
  }

  28% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(48%) rotate(22deg);
  }
}

@keyframes supportTakeoverKicker {
  0% {
    color: var(--magenta);
    transform: translateY(0);
  }

  34% {
    color: var(--yellow);
    transform: translateY(-2px) scale(1.08);
  }

  100% {
    color: var(--magenta);
    transform: translateY(0) scale(1);
  }
}

@keyframes supportTakeoverAvatar {
  0% {
    opacity: 0.2;
    transform: rotate(-8deg) scale(0.72);
  }

  46% {
    opacity: 1;
    transform: rotate(4deg) scale(1.16);
  }

  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes supportTakeoverGift {
  0% {
    opacity: 0;
    transform: translate(8px, 8px) scale(0.35) rotate(-18deg);
  }

  48% {
    opacity: 1;
    transform: translate(0, 0) scale(1.24) rotate(8deg);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

@keyframes supportTakeoverCopy {
  0% {
    opacity: 0;
    transform: translateX(16px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.rewards-source {
  place-items: center;
}

.top-likers-source {
  place-items: center;
  overflow: visible;
}

.top-likers-widget {
  position: relative;
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  gap: 8px;
  width: var(--top-likers-width, 430px);
  height: var(--top-likers-height, auto);
  min-height: 0;
  padding: 28px 30px;
  overflow: visible;
  color: var(--white);
  border: 1px solid rgba(var(--top-likers-border-rgb, 3, 245, 216), 0.62);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(var(--top-likers-bg-start, 16, 44, 52), var(--top-likers-opacity, 0.78)), rgba(var(--top-likers-bg-end, 70, 31, 104), var(--top-likers-opacity, 0.78)) 54%, rgba(var(--top-likers-bg-base, 12, 10, 20), var(--top-likers-opacity, 0.78))),
    rgba(var(--top-likers-bg-base, 12, 10, 20), var(--top-likers-opacity, 0.78));
  box-shadow:
    0 0 22px rgba(var(--top-likers-border-rgb, 3, 245, 216), 0.34) inset,
    0 0 18px rgba(var(--top-likers-glow-rgb, 196, 71, 255), 0.38) inset,
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  isolation: isolate;
}

.top-likers-empty .top-likers-widget {
  display: none;
}

.top-likers-widget::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 44%, rgba(0, 0, 0, 0.24)),
    linear-gradient(90deg, rgba(var(--top-likers-border-rgb, 3, 245, 216), 0.16), transparent 36%, rgba(var(--top-likers-glow-rgb, 196, 71, 255), 0.14));
  pointer-events: none;
}

.top-likers-header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  height: 44px;
  padding: 0 2px;
  color: var(--top-likers-title-color, var(--cyan));
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    0 0 9px rgba(3, 245, 216, 0.82),
    0 2px 6px rgba(0, 0, 0, 0.82);
}

.top-likers-title-icon {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  fill: currentColor;
  filter: drop-shadow(0 0 6px currentColor);
}

.top-likers-list {
  display: grid;
  grid-auto-rows: 58px;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  list-style: none;
}

.top-liker-row {
  position: relative;
  display: grid;
  grid-template-columns: 26px 42px minmax(0, 1fr) minmax(48px, auto);
  grid-template-areas: "rank avatar copy likes";
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 58px;
  padding: 6px 8px;
  overflow: visible;
  border: 1px solid rgba(var(--top-likers-tile-border-rgb, 255, 255, 255), 0.18);
  border-radius: 7px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(var(--top-likers-tile-rgb, 8, 11, 18), var(--top-likers-tile-opacity, 0.58));
  box-shadow:
    0 0 13px rgba(var(--top-likers-border-rgb, 3, 245, 216), 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.22) inset;
  transform-origin: center;
  will-change: transform;
}

.top-liker-row.is-gold {
  border-color: rgba(255, 216, 61, 0.54);
  box-shadow:
    0 0 15px rgba(255, 216, 61, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.top-liker-row.is-silver {
  border-color: rgba(224, 232, 242, 0.48);
  box-shadow:
    0 0 14px rgba(224, 232, 242, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.top-liker-row.is-bronze {
  border-color: rgba(210, 126, 62, 0.5);
  box-shadow:
    0 0 14px rgba(210, 126, 62, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.top-liker-row.is-overtaking {
  animation: topLikerOvertake 1100ms cubic-bezier(0.18, 0.9, 0.24, 1.15);
}

.top-liker-row.is-lead-change {
  z-index: 3;
  animation:
    topLikerOvertake 1100ms cubic-bezier(0.18, 0.9, 0.24, 1.15),
    topLikerLeadGlow 3200ms ease-out;
}

.top-liker-row.is-lead-change::before,
.top-liker-row.is-lead-change::after {
  position: absolute;
  inset: -18px;
  content: "";
  pointer-events: none;
  border-radius: 12px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffed89' d='M12 0c1 8 3 11 12 12-9 1-11 4-12 12-1-8-3-11-12-12 9-1 11-4 12-12Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd83d' d='M12 0c1 8 3 11 12 12-9 1-11 4-12 12-1-8-3-11-12-12 9-1 11-4 12-12Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff6b9' d='M12 0c1 8 3 11 12 12-9 1-11 4-12 12-1-8-3-11-12-12 9-1 11-4 12-12Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd83d' d='M12 0c1 8 3 11 12 12-9 1-11 4-12 12-1-8-3-11-12-12 9-1 11-4 12-12Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff19c' d='M12 0c1 8 3 11 12 12-9 1-11 4-12 12-1-8-3-11-12-12 9-1 11-4 12-12Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd83d' d='M12 0c1 8 3 11 12 12-9 1-11 4-12 12-1-8-3-11-12-12 9-1 11-4 12-12Z'/%3E%3C/svg%3E");
  background-position: 5% 24%, 18% 86%, 42% 4%, 74% 10%, 94% 40%, 70% 94%;
  background-repeat: no-repeat;
  background-size: 13px 13px, 9px 9px, 7px 7px, 12px 12px, 8px 8px, 10px 10px;
  filter: drop-shadow(0 0 4px rgba(255, 216, 61, 0.9));
  opacity: 0;
  transform: scale(0.88);
  animation: topLikerSparkles 3200ms ease-out;
}

.top-liker-row.is-lead-change::after {
  inset: -12px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 0c1 8 3 11 12 12-9 1-11 4-12 12-1-8-3-11-12-12 9-1 11-4 12-12Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd83d' d='M12 0c1 8 3 11 12 12-9 1-11 4-12 12-1-8-3-11-12-12 9-1 11-4 12-12Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 0c1 8 3 11 12 12-9 1-11 4-12 12-1-8-3-11-12-12 9-1 11-4 12-12Z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd83d' d='M12 0c1 8 3 11 12 12-9 1-11 4-12 12-1-8-3-11-12-12 9-1 11-4 12-12Z'/%3E%3C/svg%3E");
  background-position: 10% 58%, 36% 96%, 62% 1%, 88% 78%;
  background-repeat: no-repeat;
  background-size: 8px 8px, 14px 14px, 7px 7px, 12px 12px;
  filter: drop-shadow(0 0 5px rgba(255, 248, 194, 0.95));
  animation-delay: 180ms;
}

.top-liker-row.is-like-milestone {
  overflow: hidden;
  border-color: rgba(var(--top-likers-milestone-card-rgb, 123, 44, 255), 0.78);
  box-shadow:
    0 0 22px rgba(var(--top-likers-milestone-card-rgb, 123, 44, 255), 0.5),
    0 8px 24px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.top-liker-row.is-like-milestone > .top-liker-standard-content {
  animation: topLikerMilestoneStandardContent 5840ms linear both;
  animation-delay: var(--top-liker-milestone-state-delay, 0ms);
}

.top-liker-milestone-announcement {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  color: var(--top-likers-milestone-text, #ffffff);
  border: 1px solid rgba(var(--top-likers-milestone-card-rgb, 123, 44, 255), 0.84);
  border-radius: inherit;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.2), transparent 46%),
    linear-gradient(110deg,
      rgba(var(--top-likers-milestone-card-rgb, 123, 44, 255), 0.7),
      rgba(var(--top-likers-milestone-card-rgb, 123, 44, 255), 0.48));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24) inset,
    0 0 16px rgba(var(--top-likers-milestone-card-rgb, 123, 44, 255), 0.2) inset;
  -webkit-backdrop-filter: blur(14px) saturate(1.45) brightness(0.84);
  backdrop-filter: blur(14px) saturate(1.45) brightness(0.84);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
  transform: translateX(0);
  animation: topLikerMilestoneAnnouncement 4600ms cubic-bezier(0.2, 0.78, 0.22, 1) both;
  animation-delay: var(--top-liker-milestone-delay, 0ms);
}

.top-liker-milestone-heart {
  width: 32px;
  height: 32px;
  fill: currentColor;
  filter: drop-shadow(0 0 7px currentColor);
}

.top-liker-milestone-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: visible;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.top-liker-milestone-name {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  opacity: 0.9;
  text-overflow: ellipsis;
}

.top-liker-milestone-result {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.035em;
  line-height: 1;
  text-shadow:
    0 0 8px currentColor,
    0 2px 5px rgba(0, 0, 0, 0.45);
}

.top-liker-rank {
  grid-area: rank;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.34), transparent 30%),
    rgba(255, 255, 255, 0.08);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.74);
}

.is-gold .top-liker-rank {
  color: #301d00;
  border-color: rgba(255, 255, 255, 0.54);
  background: linear-gradient(180deg, #fff2a3, #ffd83d 48%, #c98c19);
}

.is-silver .top-liker-rank {
  color: #1b2630;
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, #ffffff, #cfd8e3 50%, #8896a8);
}

.is-bronze .top-liker-rank {
  color: #2b1105;
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(180deg, #ffd0a0, #c97835 52%, #7d3f21);
}

.top-liker-avatar {
  grid-area: avatar;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.48), transparent 30%),
    linear-gradient(135deg, rgba(3, 245, 216, 0.56), rgba(196, 71, 255, 0.62));
  box-shadow:
    0 0 14px rgba(3, 245, 216, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.28) inset;
}

.top-liker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-liker-avatar span {
  font-size: 16px;
  font-weight: 900;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.top-liker-copy {
  grid-area: copy;
  display: grid;
  min-width: 0;
}

.top-liker-copy strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--top-likers-text-color, rgba(255, 255, 255, 0.98));
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.82),
    0 0 8px rgba(255, 255, 255, 0.2);
}

.top-liker-copy strong > span {
  display: inline-block;
  max-width: none;
}

.top-liker-copy strong.is-marquee {
  text-overflow: clip;
}

.top-liker-copy strong.is-marquee > span {
  animation: topLikerNamePan var(--top-liker-name-pan-duration, 7s) ease-in-out infinite alternate;
  animation-delay: var(--top-liker-name-pan-delay, 0s);
}

.top-liker-like {
  grid-area: likes;
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 4px;
  min-width: 48px;
  color: var(--top-likers-text-color, rgba(255, 255, 255, 0.96));
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.76),
    0 0 8px rgba(196, 71, 255, 0.3);
}

.top-liker-heart {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  fill: #ef476f;
  filter: drop-shadow(0 0 5px rgba(239, 71, 111, 0.78));
}

.top-liker-heart.is-gold {
  fill: #ffd83d;
  filter: drop-shadow(0 0 6px rgba(255, 216, 61, 0.88));
}

.top-liker-heart.is-silver {
  fill: #dfe8f2;
  filter: drop-shadow(0 0 6px rgba(223, 232, 242, 0.8));
}

.top-liker-heart.is-bronze {
  fill: #d27e3e;
  filter: drop-shadow(0 0 6px rgba(210, 126, 62, 0.82));
}

.hide-top-liker-avatars .top-liker-row {
  grid-template-columns: 26px minmax(0, 1fr) minmax(48px, auto);
  grid-template-areas: "rank copy likes";
}

.hide-top-liker-avatars .top-liker-avatar {
  display: none;
}

.hide-top-liker-names .top-liker-row {
  grid-template-columns: 26px 42px minmax(0, 1fr);
  grid-template-areas: "rank avatar likes";
}

.hide-top-liker-names .top-liker-copy {
  display: none;
}

.hide-top-liker-names .top-liker-like {
  justify-self: end;
}

.hide-top-liker-avatars.hide-top-liker-names .top-liker-row {
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-areas: "rank likes";
}

.top-likers-layout-stacked .top-liker-row {
  grid-template-columns: 26px 42px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "rank avatar copy"
    "rank avatar likes";
  row-gap: 2px;
}

.top-likers-layout-stacked .top-liker-rank,
.top-likers-layout-stacked .top-liker-avatar {
  align-self: center;
}

.top-likers-layout-stacked .top-liker-copy {
  align-self: end;
}

.top-likers-layout-stacked .top-liker-copy strong {
  font-size: 17px;
}

.top-likers-layout-stacked .top-liker-like {
  justify-self: start;
  align-self: start;
  min-width: 0;
  font-size: 13px;
}

.top-likers-layout-stacked .top-liker-heart {
  flex-basis: 14px;
  width: 14px;
  height: 14px;
}

.top-likers-layout-stacked.hide-top-liker-avatars .top-liker-row {
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-areas:
    "rank copy"
    "rank likes";
}

.top-likers-layout-stacked.hide-top-liker-names .top-liker-row {
  grid-template-columns: 26px 42px minmax(0, 1fr);
  grid-template-rows: 1fr;
  grid-template-areas: "rank avatar likes";
}

.top-likers-layout-stacked.hide-top-liker-names .top-liker-like {
  justify-self: end;
  align-self: center;
  min-width: 48px;
  font-size: 16px;
}

.top-likers-layout-stacked.hide-top-liker-avatars.hide-top-liker-names .top-liker-row {
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-areas: "rank likes";
}

.hide-top-liker-hearts .top-liker-heart {
  display: none;
}

.plain-top-liker-hearts .top-liker-heart {
  fill: #ef476f;
  filter: drop-shadow(0 0 5px rgba(239, 71, 111, 0.78));
}

.hide-top-liker-tiles .top-liker-row,
.hide-top-liker-tiles .top-liker-row.is-gold,
.hide-top-liker-tiles .top-liker-row.is-silver,
.hide-top-liker-tiles .top-liker-row.is-bronze {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.hide-top-liker-shell .top-likers-widget {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hide-top-liker-shell .top-likers-widget::before {
  display: none;
}

.hide-top-liker-title .top-likers-widget {
  grid-template-rows: minmax(0, 1fr);
}

.hide-top-liker-title .top-likers-header {
  display: none;
}

@media (max-width: 430px) {
  .top-likers-widget {
    width: min(var(--top-likers-width, 430px), 100vw);
    min-height: 0;
    padding: 24px;
  }

  .top-likers-header {
    height: 38px;
    font-size: clamp(20px, 5.6vw, 24px);
  }

  .top-likers-list {
    grid-auto-rows: 54px;
    gap: 7px;
  }

  .top-liker-row {
    grid-template-columns: 25px 40px minmax(0, 1fr) minmax(46px, auto);
    height: 54px;
    gap: 6px;
    padding-right: 8px;
  }

  .top-likers-layout-stacked .top-liker-row {
    grid-template-columns: 25px 40px minmax(0, 1fr);
    grid-template-areas:
      "rank avatar copy"
      "rank avatar likes";
  }

  .top-likers-layout-stacked.hide-top-liker-avatars .top-liker-row {
    grid-template-columns: 25px minmax(0, 1fr);
    grid-template-areas:
      "rank copy"
      "rank likes";
  }

  .hide-top-liker-names .top-liker-row {
    grid-template-columns: 25px 40px minmax(0, 1fr);
  }

  .hide-top-liker-avatars.hide-top-liker-names .top-liker-row {
    grid-template-columns: 25px minmax(0, 1fr);
  }

  .top-likers-layout-stacked.hide-top-liker-names .top-liker-row {
    grid-template-columns: 25px 40px minmax(0, 1fr);
    grid-template-areas: "rank avatar likes";
  }

  .top-likers-layout-stacked.hide-top-liker-names .top-liker-like {
    min-width: 46px;
    font-size: 15px;
  }

  .top-likers-layout-stacked.hide-top-liker-avatars.hide-top-liker-names .top-liker-row {
    grid-template-columns: 25px minmax(0, 1fr);
    grid-template-areas: "rank likes";
  }

  .top-liker-rank {
    width: 25px;
    height: 25px;
    font-size: 13px;
  }

  .top-liker-avatar {
    width: 40px;
    height: 40px;
  }

  .top-liker-copy strong {
    font-size: 16px;
  }

  .top-liker-like {
    min-width: 46px;
    font-size: 15px;
  }
}

@keyframes topLikerOvertake {
  0% {
    filter: brightness(1);
    transform: scale(0.96);
  }

  34% {
    filter: brightness(1.42);
    transform: translateX(-6px) scale(1.06);
  }

  66% {
    transform: translateX(4px) scale(1.02);
  }

  100% {
    filter: brightness(1);
    transform: translateX(0) scale(1);
  }
}

@keyframes topLikerLeadGlow {
  0% {
    background:
      linear-gradient(110deg, rgba(255, 248, 194, 0.32), rgba(255, 193, 7, 0.2)),
      rgba(84, 56, 4, 0.88);
    border-color: rgba(255, 216, 61, 0.96);
    box-shadow:
      0 0 0 rgba(255, 216, 61, 0),
      0 0 0 rgba(255, 255, 255, 0),
      0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  }

  16%,
  48% {
    background:
      linear-gradient(110deg, rgba(255, 252, 217, 0.5), rgba(255, 184, 0, 0.26)),
      rgba(104, 68, 2, 0.9);
    border-color: rgba(255, 216, 61, 0.98);
    box-shadow:
      0 0 28px rgba(255, 216, 61, 0.8),
      0 0 12px rgba(255, 255, 255, 0.34),
      0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  }

  100% {
    background:
      linear-gradient(110deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
      rgba(var(--top-likers-tile-rgb, 8, 11, 18), var(--top-likers-tile-opacity, 0.58));
    box-shadow:
      0 0 15px rgba(255, 216, 61, 0.24),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  }
}

@keyframes topLikerSparkles {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-4deg);
  }

  12%,
  58% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.16) rotate(8deg);
  }
}

@keyframes topLikerMilestoneAnnouncement {
  0% {
    opacity: 0;
    transform: translateX(108%);
  }

  16%,
  78% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-108%);
  }
}

@keyframes topLikerMilestoneStandardContent {
  0%,
  2% {
    opacity: 1;
    transform: translateX(0);
  }

  13%,
  91.7% {
    opacity: 0;
    transform: translateX(-44px);
  }

  91.8% {
    opacity: 0;
    transform: translateX(44px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes topLikerNamePan {
  0%,
  18% {
    transform: translateX(0);
  }

  82%,
  100% {
    transform: translateX(calc(-1 * var(--marquee-distance, 0px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-likers-widget,
  .top-liker-row::before,
  .top-liker-row::after,
  .top-liker-milestone-announcement,
  .top-liker-row.is-like-milestone > .top-liker-standard-content,
  .top-liker-row,
  .top-liker-copy strong.is-marquee > span {
    animation: none !important;
  }

  .top-liker-row.is-like-milestone > .top-liker-standard-content {
    opacity: 0;
  }
}

.rewards-widget {
  --reward-visual-index: 0;
  --reward-visible-count: 4;
  --reward-step: 76px;
  --reward-top-offset: 10px;
  --reward-bottom-offset: 10px;
  position: relative;
  width: 112px;
  height: calc(var(--reward-top-offset) + var(--reward-bottom-offset) + (var(--reward-visible-count) * 68px) + ((var(--reward-visible-count) - 1) * 8px));
  overflow: hidden;
  color: var(--reward-theme-text);
  border: 1px solid var(--reward-theme-widget-border);
  border-radius: 18px;
  background:
    linear-gradient(165deg, var(--reward-theme-widget-shine), transparent 32%),
    linear-gradient(180deg, var(--reward-theme-widget-top), var(--reward-theme-widget-mid) 58%, var(--reward-theme-widget-bottom)),
    var(--reward-theme-widget-base);
  box-shadow:
    0 0 24px var(--reward-theme-widget-glow),
    0 0 18px var(--reward-theme-widget-inset-shine) inset,
    0 0 0 1px rgba(0, 0, 0, 0.42) inset,
    0 14px 24px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  isolation: isolate;
}

.rewards-widget::before {
  position: absolute;
  inset: 4px;
  z-index: -1;
  content: "";
  border-radius: 14px;
  background:
    linear-gradient(90deg, var(--reward-theme-widget-side-shine-left), transparent 20%, transparent 80%, var(--reward-theme-widget-side-shine-right)),
    radial-gradient(circle at 50% 18%, var(--reward-theme-widget-radial-shine), transparent 36%);
  pointer-events: none;
}

.rewards-widget::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  pointer-events: none;
  border-radius: 18px;
  background:
    linear-gradient(180deg, var(--reward-theme-widget-top-shine), transparent 18%, transparent 84%, var(--reward-theme-widget-bottom-shine)),
    linear-gradient(90deg, var(--reward-theme-widget-after-left-shine), transparent 18%, transparent 82%, var(--reward-theme-widget-after-right-shine));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.rewards-glass-sweep {
  position: absolute;
  inset: -40% -160%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.32), transparent 58%);
  opacity: 0.38;
  transform: translateX(-20%) rotate(9deg);
  animation: rewardIdleSweep 4.8s ease-in-out infinite;
}

.rewards-track {
  display: grid;
  gap: 8px;
  padding: var(--reward-top-offset) 8px 10px;
  transform: translateY(calc(-1 * var(--reward-visual-index) * var(--reward-step)));
  transition: transform 760ms cubic-bezier(0.18, 0.9, 0.22, 1);
}

.rewards-track.is-resetting {
  transition: none;
}

.reward-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  width: 94px;
  height: 68px;
  padding: 5px 5px 6px;
  overflow: hidden;
  border: 1px solid var(--reward-theme-card-border);
  border-radius: 12px;
  background:
    linear-gradient(160deg, var(--reward-theme-card-shine), rgba(255, 255, 255, 0.03) 40%, rgba(0, 0, 0, 0.2)),
    var(--reward-theme-card-base);
  box-shadow:
    0 8px 14px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  opacity: 0.58;
  transform: scale(0.92);
  transform-origin: center;
  transition:
    opacity 420ms ease,
    filter 420ms ease,
    transform 520ms cubic-bezier(0.18, 0.9, 0.24, 1.12),
    box-shadow 420ms ease;
}

.reward-card.is-active {
  border-color: var(--reward-theme-accent-strong);
  opacity: 1;
  filter: brightness(1.12);
  transform: scale(1);
  box-shadow:
    0 0 18px var(--reward-theme-card-active-glow),
    0 0 14px var(--reward-theme-card-active-accent),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.reward-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--yellow);
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 6px rgba(255, 216, 61, 0.34));
}

.reward-image img,
.reward-image svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  fill: currentColor;
}

.reward-card.reward-trigger-likes .reward-image {
  width: 82px;
  height: 40px;
}

.reward-image .reward-profile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
}

.rewards-widget.profile-animation-active .reward-card.is-active:not(.reward-trigger-likes) .reward-image {
  animation: none;
}

.rewards-widget.profile-animation-active .reward-card.is-active:not(.reward-trigger-likes) .reward-image > img:not(.reward-profile-image) {
  animation: rewardGiftToProfileFallback var(--reward-profile-duration, 6500ms) cubic-bezier(0.18, 0.9, 0.24, 1.12);
}

.rewards-widget.profile-animation-active.profile-has-avatar .reward-card.is-active:not(.reward-trigger-likes) .reward-image > img:not(.reward-profile-image) {
  animation-name: rewardGiftToProfile;
}

.rewards-widget.profile-animation-active.profile-has-avatar .reward-card.is-active:not(.reward-trigger-likes) .reward-profile-image {
  animation: rewardProfileToGift var(--reward-profile-duration, 6500ms) cubic-bezier(0.18, 0.9, 0.24, 1.12);
}

.reward-card strong {
  position: relative;
  display: block;
  width: 100%;
  min-height: 1.04em;
  overflow: hidden;
  color: var(--reward-theme-card-text);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.82),
    0 0 5px rgba(255, 255, 255, 0.24);
}

.reward-label-original,
.reward-label-profile {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-card strong.is-label-scrolling:not(.profile-name-active) .reward-label-original,
.reward-card strong.is-label-scrolling:not(.profile-name-active) .reward-label-profile,
.reward-gift-tile strong.is-label-scrolling:not(.profile-name-active) .reward-label-original,
.reward-gift-tile strong.is-label-scrolling:not(.profile-name-active) .reward-label-profile {
  width: max-content;
  min-width: 100%;
  overflow: visible;
  text-align: left;
  text-overflow: clip;
  animation: rewardLabelScroll var(--reward-label-scroll-duration, 5.8s) ease-in-out infinite alternate;
}

.reward-label-profile {
  position: absolute;
  inset: 0;
  color: var(--reward-theme-accent);
  opacity: 0;
  transform: translateY(0.55em) scale(0.82);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.86),
    0 0 8px var(--reward-theme-accent-strong),
    0 0 14px var(--reward-theme-glow-strong);
}

.profile-name-active .reward-label-original {
  animation: rewardOriginalLabelToProfile var(--reward-profile-duration, 6500ms) ease-in-out;
}

.profile-name-active .reward-label-profile {
  animation: rewardProfileNameReveal var(--reward-profile-duration, 6500ms) cubic-bezier(0.18, 0.9, 0.24, 1.12);
}

.reward-callout {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 6;
  display: grid;
  gap: 1px;
  min-height: 38px;
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid var(--reward-theme-callout-border);
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--reward-theme-callout-start), var(--reward-theme-callout-end)),
    var(--reward-theme-callout-base);
  box-shadow:
    0 0 14px var(--reward-theme-callout-glow),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition:
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.18, 0.9, 0.24, 1.15);
}

.reward-callout.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reward-callout span,
.reward-callout strong {
  display: block;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.82);
}

.reward-callout span {
  color: var(--reward-theme-accent);
  font-size: 10px;
  font-weight: 900;
}

.reward-callout strong {
  color: var(--reward-theme-card-text);
  font-size: 9px;
  font-weight: 800;
}

.rewards-widget.reward-hit {
  animation: rewardGlassHit 1550ms cubic-bezier(0.18, 0.9, 0.24, 1.12);
}

.rewards-widget.reward-hit .rewards-glass-sweep {
  animation: rewardHitSweep 1550ms ease-out;
}

.rewards-widget.reward-hit .reward-card.is-active {
  animation: rewardCardHit 1550ms cubic-bezier(0.18, 0.9, 0.24, 1.12);
}

.rewards-widget.reward-hit .reward-card.is-active .reward-image {
  animation: rewardImagePop 1550ms cubic-bezier(0.18, 0.9, 0.24, 1.12);
}

.rewards-widget.reward-hold:not(.reward-hit) {
  animation: rewardHoldGlass 2.15s ease-in-out infinite;
}

.rewards-widget.reward-hold:not(.reward-hit) .rewards-glass-sweep {
  animation: rewardHoldSweep 1.9s ease-in-out infinite;
}

.rewards-widget.reward-hold:not(.reward-hit) .reward-card.is-active {
  animation: rewardHoldCard 1.35s cubic-bezier(0.18, 0.9, 0.24, 1.15) infinite;
}

.rewards-widget.reward-hold:not(.reward-hit) .reward-card.is-active .reward-image {
  animation: rewardHoldImage 1.35s cubic-bezier(0.18, 0.9, 0.24, 1.15) infinite;
}

@keyframes rewardIdleSweep {
  0%,
  42% {
    transform: translateX(-24%) rotate(9deg);
  }

  72%,
  100% {
    transform: translateX(24%) rotate(9deg);
  }
}

@keyframes rewardHitSweep {
  0% {
    opacity: 0;
    transform: translateX(-34%) rotate(9deg);
  }

  20%,
  48% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translateX(34%) rotate(9deg);
  }
}

@keyframes rewardGlassHit {
  0% {
    filter: brightness(1);
    box-shadow:
      0 0 24px var(--reward-theme-glow),
      0 0 18px rgba(255, 255, 255, 0.16) inset,
      0 0 0 1px rgba(0, 0, 0, 0.42) inset,
      0 14px 24px rgba(0, 0, 0, 0.36);
  }

  38% {
    filter: brightness(1.34);
    box-shadow:
      0 0 34px var(--reward-theme-glow-strong),
      0 0 26px var(--reward-theme-accent-soft),
      0 0 24px rgba(255, 255, 255, 0.28) inset,
      0 0 0 1px rgba(255, 255, 255, 0.18) inset,
      0 14px 24px rgba(0, 0, 0, 0.36);
  }

  100% {
    filter: brightness(1);
  }
}

@keyframes rewardCardHit {
  0% {
    transform: scale(0.96);
  }

  38% {
    transform: scale(1.1);
  }

  68% {
    transform: scale(0.98);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes rewardImagePop {
  0% {
    transform: translateY(4px) scale(0.72) rotate(-8deg);
  }

  42% {
    transform: translateY(-2px) scale(1.28) rotate(6deg);
  }

  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes rewardGiftToProfile {
  0%,
  18% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  45%,
  58% {
    opacity: 0;
    transform: scale(0.38) rotate(360deg);
  }

  82%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(720deg);
  }
}

@keyframes rewardProfileToGift {
  0%,
  24% {
    opacity: 0;
    transform: scale(0.38) rotate(-240deg);
  }

  45%,
  58% {
    opacity: 1;
    transform: scale(1.12) rotate(0deg);
  }

  82%,
  100% {
    opacity: 0;
    transform: scale(0.38) rotate(240deg);
  }
}

@keyframes rewardGiftToProfileFallback {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.22) rotate(360deg);
  }
}

@keyframes rewardOriginalLabelToProfile {
  0%,
  16% {
    opacity: 1;
    filter: brightness(1);
    transform: translateY(0) scale(1);
  }

  21%,
  60% {
    opacity: 0;
    filter: brightness(1.45);
    transform: translateY(-0.45em) scale(0.88);
  }

  78%,
  100% {
    opacity: 1;
    filter: brightness(1);
    transform: translateY(0) scale(1);
  }
}

@keyframes rewardProfileNameReveal {
  0%,
  18% {
    opacity: 0;
    letter-spacing: 0;
    transform: translateY(0.65em) scale(0.72);
  }

  30% {
    opacity: 1;
    letter-spacing: 0;
    transform: translateY(-0.08em) scale(1.14);
  }

  36%,
  58% {
    opacity: 1;
    letter-spacing: 0;
    transform: translateY(0) scale(1);
  }

  70%,
  100% {
    opacity: 0;
    letter-spacing: 0;
    transform: translateY(-0.65em) scale(0.76);
  }
}

@keyframes rewardHoldGlass {
  0%,
  100% {
    filter: brightness(1);
    box-shadow:
      0 0 24px var(--reward-theme-glow),
      0 0 18px rgba(255, 255, 255, 0.16) inset,
      0 0 0 1px rgba(0, 0, 0, 0.42) inset,
      0 14px 24px rgba(0, 0, 0, 0.36);
  }

  50% {
    filter: brightness(1.14);
    box-shadow:
      0 0 30px var(--reward-theme-glow-strong),
      0 0 20px var(--reward-theme-accent-soft),
      0 0 22px rgba(255, 255, 255, 0.22) inset,
      0 0 0 1px rgba(255, 255, 255, 0.12) inset,
      0 14px 24px rgba(0, 0, 0, 0.36);
  }
}

@keyframes rewardHoldSweep {
  0% {
    opacity: 0;
    transform: translateX(-30%) rotate(9deg);
  }

  34%,
  58% {
    opacity: 0.52;
  }

  100% {
    opacity: 0;
    transform: translateX(30%) rotate(9deg);
  }
}

@keyframes rewardHoldCard {
  0%,
  100% {
    filter: brightness(1.12);
    transform: scale(1.02);
    box-shadow:
      0 0 18px var(--reward-theme-glow),
      0 0 14px var(--reward-theme-accent-soft),
      0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  }

  42% {
    filter: brightness(1.36);
    transform: scale(1.11);
    box-shadow:
      0 0 28px var(--reward-theme-glow-strong),
      0 0 22px var(--reward-theme-accent-strong),
      0 0 0 1px rgba(255, 255, 255, 0.3) inset,
      0 0 16px rgba(255, 255, 255, 0.22) inset;
  }

  68% {
    filter: brightness(1.2);
    transform: scale(0.99);
  }
}

@keyframes rewardHoldImage {
  0%,
  100% {
    filter:
      drop-shadow(0 2px 2px rgba(0, 0, 0, 0.62))
      drop-shadow(0 0 8px rgba(255, 216, 61, 0.48));
    transform: translateY(0) scale(1.02) rotate(0deg);
  }

  42% {
    filter:
      drop-shadow(0 3px 3px rgba(0, 0, 0, 0.58))
      drop-shadow(0 0 14px rgba(255, 216, 61, 0.82))
      drop-shadow(0 0 10px var(--reward-theme-glow));
    transform: translateY(-5px) scale(1.24) rotate(7deg);
  }

  68% {
    transform: translateY(2px) scale(0.94) rotate(-4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rewards-glass-sweep,
  .rewards-widget.reward-hit,
  .rewards-widget.reward-hit .rewards-glass-sweep,
  .rewards-widget.reward-hit .reward-card.is-active,
  .rewards-widget.reward-hit .reward-card.is-active .reward-image,
  .rewards-widget.reward-hold:not(.reward-hit),
  .rewards-widget.reward-hold:not(.reward-hit) .rewards-glass-sweep,
  .rewards-widget.reward-hold:not(.reward-hit) .reward-card.is-active,
  .rewards-widget.reward-hold:not(.reward-hit) .reward-card.is-active .reward-image {
    animation: none;
  }

  .rewards-track,
  .reward-card,
  .reward-callout {
    transition: none;
  }
}

.reward-rows-source {
  place-items: center;
}

.reward-rows-widget {
  --reward-row-gap: 0px;
  --reward-row-height: 96px;
  display: grid;
  gap: var(--reward-row-gap);
  width: 1080px;
  overflow: hidden;
  color: var(--reward-theme-text);
  font-family: Inter, Arial, sans-serif;
}

.reward-gift-row {
  --row-gift-count: 6;
  --row-scroll-duration: 28s;
  --row-scroll-distance: 0px;
  position: relative;
  height: var(--reward-row-height);
  overflow: hidden;
  border: 1px solid var(--reward-theme-border);
  border-radius: 0;
  background:
    linear-gradient(110deg, var(--reward-theme-accent-soft), var(--reward-theme-secondary-soft)),
    var(--reward-theme-background);
  box-shadow:
    0 0 18px var(--reward-theme-glow-soft),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
}

.side-gifts-source {
  align-items: start;
  justify-items: stretch;
  overflow: hidden;
}

.side-gifts-widget {
  --side-gifts-edge-padding: 44px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: var(--side-gifts-layout-width, 100vw);
  max-width: 100vw;
  min-height: 0;
  padding:
    var(--side-gifts-edge-padding)
    calc(var(--side-gifts-inset-x, 8px) + var(--side-gifts-edge-padding))
    var(--side-gifts-edge-padding);
  pointer-events: none;
  overflow: visible;
}

.side-gifts-column {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--side-gifts-gap, 8px);
  width: max(var(--side-gifts-icon-size, 44px), calc(var(--side-gifts-label-size, 10px) * 7.8), 86px);
}

.side-gifts-left-only .side-gifts-column-right,
.side-gifts-right-only .side-gifts-column-left {
  display: none;
}

.side-gifts-left-only .side-gifts-widget {
  justify-content: flex-start;
}

.side-gifts-right-only .side-gifts-widget {
  justify-content: flex-end;
}

.side-gift-tile {
  position: relative;
  display: grid;
  grid-template-rows: var(--side-gifts-icon-size, 44px) minmax(calc(var(--side-gifts-label-size, 10px) * 1.18), auto);
  place-items: center;
  width: max(var(--side-gifts-icon-size, 44px), calc(var(--side-gifts-label-size, 10px) * 7.8), 86px);
  min-height: calc(var(--side-gifts-icon-size, 44px) + (var(--side-gifts-label-size, 10px) * 1.18) + 4px);
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  transform-origin: center;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55));
}

.side-gifts-idle-glow .side-gift-tile:not(.side-gift-placeholder) {
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 6px rgba(var(--side-gifts-glow-rgb, 3, 245, 216), 0.24));
}

.side-gifts-show-tiles .side-gift-tile:not(.side-gift-placeholder) {
  min-height: calc(var(--side-gifts-icon-size, 44px) + (var(--side-gifts-label-size, 10px) * 1.18) + 18px);
  padding: 7px 8px 8px;
  border-color: rgba(var(--side-gifts-tile-border-rgb, 255, 255, 255), 0.34);
  background:
    linear-gradient(150deg, var(--reward-theme-shine), rgba(255, 255, 255, 0.03) 48%, rgba(0, 0, 0, 0.24)),
    rgba(var(--side-gifts-tile-rgb, 13, 15, 20), var(--side-gifts-tile-opacity, 0.82));
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.side-gift-placeholder {
  visibility: hidden;
}

.side-gift-tile img.side-gift-image,
.side-gift-profile-image {
  grid-row: 1;
  grid-column: 1;
  display: block;
  width: var(--side-gifts-icon-size, 44px);
  height: var(--side-gifts-icon-size, 44px);
  object-fit: contain;
}

.side-gifts-gift-outlines .side-gift-tile img.side-gift-image,
.side-gifts-gift-outlines .side-gift-profile-image {
  filter:
    drop-shadow(var(--side-gifts-gift-outline-size, 2px) 0 0 rgba(var(--side-gifts-gift-outline-rgb, 16, 19, 27), 0.78))
    drop-shadow(calc(var(--side-gifts-gift-outline-size, 2px) * -1) 0 0 rgba(var(--side-gifts-gift-outline-rgb, 16, 19, 27), 0.78))
    drop-shadow(0 var(--side-gifts-gift-outline-size, 2px) 0 rgba(var(--side-gifts-gift-outline-rgb, 16, 19, 27), 0.78))
    drop-shadow(0 calc(var(--side-gifts-gift-outline-size, 2px) * -1) 0 rgba(var(--side-gifts-gift-outline-rgb, 16, 19, 27), 0.78));
}

.side-gift-profile-image {
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
}

.side-gift-tile strong {
  position: relative;
  grid-row: 2;
  grid-column: 1;
  display: none;
  width: 100%;
  min-width: 0;
  min-height: 1.1em;
  margin-top: 2px;
  overflow: visible;
  color: var(--side-gifts-label-color, #ffffff);
  font-size: var(--side-gifts-label-size, 10px);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.side-gifts-two-line-labels .side-gift-tile {
  grid-template-rows: var(--side-gifts-icon-size, 44px) minmax(calc(var(--side-gifts-label-size, 10px) * 2.36), auto);
  min-height: calc(var(--side-gifts-icon-size, 44px) + (var(--side-gifts-label-size, 10px) * 2.36) + 4px);
}

.side-gifts-show-tiles.side-gifts-two-line-labels .side-gift-tile:not(.side-gift-placeholder) {
  min-height: calc(var(--side-gifts-icon-size, 44px) + (var(--side-gifts-label-size, 10px) * 2.36) + 18px);
}

.side-gifts-text-outlines .side-gift-tile strong {
  text-shadow:
    var(--side-gifts-outline-size, 0.45px) 0 0 rgba(var(--side-gifts-outline-rgb, 16, 19, 27), 0.96),
    calc(var(--side-gifts-outline-size, 0.45px) * -1) 0 0 rgba(var(--side-gifts-outline-rgb, 16, 19, 27), 0.96),
    0 var(--side-gifts-outline-size, 0.45px) 0 rgba(var(--side-gifts-outline-rgb, 16, 19, 27), 0.96),
    0 calc(var(--side-gifts-outline-size, 0.45px) * -1) 0 rgba(var(--side-gifts-outline-rgb, 16, 19, 27), 0.96),
    var(--side-gifts-outline-size, 0.45px) var(--side-gifts-outline-size, 0.45px) 0 rgba(var(--side-gifts-outline-rgb, 16, 19, 27), 0.8),
    calc(var(--side-gifts-outline-size, 0.45px) * -1) var(--side-gifts-outline-size, 0.45px) 0 rgba(var(--side-gifts-outline-rgb, 16, 19, 27), 0.8),
    var(--side-gifts-outline-size, 0.45px) calc(var(--side-gifts-outline-size, 0.45px) * -1) 0 rgba(var(--side-gifts-outline-rgb, 16, 19, 27), 0.8),
    calc(var(--side-gifts-outline-size, 0.45px) * -1) calc(var(--side-gifts-outline-size, 0.45px) * -1) 0 rgba(var(--side-gifts-outline-rgb, 16, 19, 27), 0.8);
}

.side-gift-label-original,
.side-gift-label-profile {
  display: block;
  width: 100%;
  max-height: 1.18em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-gifts-two-line-labels .side-gift-label-original,
.side-gifts-two-line-labels .side-gift-label-profile {
  display: -webkit-box;
  max-height: 2.36em;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.side-gifts-show-labels .side-gift-tile strong {
  display: block;
}

body:not(.side-gifts-show-labels) .side-gift-tile {
  grid-template-rows: var(--side-gifts-icon-size, 44px);
  min-height: calc(var(--side-gifts-icon-size, 44px) + 4px);
}

body.side-gifts-show-tiles:not(.side-gifts-show-labels) .side-gift-tile:not(.side-gift-placeholder) {
  min-height: calc(var(--side-gifts-icon-size, 44px) + 18px);
}

.side-gift-tile.profile-animation-active {
  z-index: 5;
}

.side-gift-tile.is-hit {
  z-index: 4;
  animation: sideGiftHit 1.35s cubic-bezier(0.18, 0.9, 0.24, 1.15) infinite;
}

.side-gift-tile.is-hit > img.side-gift-image {
  animation: rewardRowGiftImageHit 1.35s cubic-bezier(0.18, 0.9, 0.24, 1.15) infinite;
}

.side-gifts-widget.received-animations-disabled .side-gift-tile.is-hit,
.side-gifts-widget.received-animations-disabled .side-gift-tile.is-hit > img.side-gift-image {
  animation: none;
}

.side-gift-tile.profile-animation-active > img.side-gift-image {
  animation: sideGiftToProfileFallback var(--side-gifts-profile-duration, 6500ms) cubic-bezier(0.18, 0.9, 0.24, 1.12);
}

.side-gift-tile.profile-animation-active.profile-has-avatar > img.side-gift-image {
  animation-name: sideGiftToProfile;
}

.side-gift-tile.profile-animation-active.profile-has-avatar > .side-gift-profile-image {
  animation: sideProfileToGift var(--side-gifts-profile-duration, 6500ms) cubic-bezier(0.18, 0.9, 0.24, 1.12);
}

.side-gift-tile .side-gift-label-profile {
  position: absolute;
  inset: 0 0 auto;
  color: var(--side-gifts-gifter-label-color, var(--side-gifts-label-color, #ffffff));
  opacity: 0;
  transform: translateY(0.55em) scale(0.82);
  text-shadow: inherit;
}

.side-gift-tile strong.profile-name-active .side-gift-label-original {
  animation: rewardOriginalLabelToProfile var(--side-gifts-profile-duration, 6500ms) ease-in-out;
}

.side-gift-tile strong.profile-name-active .side-gift-label-profile {
  animation: rewardProfileNameReveal var(--side-gifts-profile-duration, 6500ms) cubic-bezier(0.18, 0.9, 0.24, 1.12);
}

@keyframes sideGiftToProfile {
  0%,
  18% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  45%,
  58% {
    opacity: 0;
    transform: scale(0.38) rotate(360deg);
  }

  82%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(720deg);
  }
}

@keyframes sideGiftHit {
  0%,
  100% {
    filter:
      brightness(1.12)
      drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55))
      drop-shadow(0 0 10px rgba(var(--side-gifts-glow-rgb, 3, 245, 216), 0.5));
    transform: scale(1);
  }

  45% {
    filter:
      brightness(1.34)
      drop-shadow(0 4px 4px rgba(0, 0, 0, 0.58))
      drop-shadow(0 0 18px rgba(var(--side-gifts-glow-rgb, 3, 245, 216), 0.85));
    transform: scale(1.075);
  }
}

@keyframes sideProfileToGift {
  0%,
  24% {
    opacity: 0;
    transform: scale(0.38) rotate(-240deg);
  }

  45%,
  58% {
    opacity: 1;
    transform: scale(1.12) rotate(0deg);
  }

  82%,
  100% {
    opacity: 0;
    transform: scale(0.38) rotate(240deg);
  }
}

@keyframes sideGiftToProfileFallback {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.22) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .side-gift-tile.is-hit,
  .side-gift-tile.is-hit > img.side-gift-image,
  .side-gift-tile.profile-animation-active > img.side-gift-image,
  .side-gift-tile.profile-animation-active.profile-has-avatar > .side-gift-profile-image {
    animation: none;
  }
}

.reward-gift-row:first-child {
  border-radius: 8px 8px 0 0;
}

.reward-gift-row:last-child {
  border-radius: 0 0 8px 8px;
}

.reward-gift-row:only-child {
  border-radius: 8px;
}

.reward-gift-row::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--reward-theme-shine), transparent 10%, transparent 90%, var(--reward-theme-shine)),
    linear-gradient(180deg, var(--reward-theme-shine), transparent 42%, rgba(0, 0, 0, 0.16));
}

.reward-gift-row-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((1080px - 16px - ((var(--row-gift-count) - 1) * 10px)) / var(--row-gift-count));
  gap: 10px;
  width: max-content;
  height: 100%;
  padding: 8px;
  transform: translateX(0);
  transition: transform 820ms cubic-bezier(0.16, 0.88, 0.22, 1);
}

.reward-gift-row.is-scrolling .reward-gift-row-track {
  transition: none;
}

.reward-gift-row.is-focusing .reward-gift-row-track {
  transition: transform 820ms cubic-bezier(0.16, 0.88, 0.22, 1);
}

.reward-gift-row:not(.is-scrolling):not(.is-focusing) .reward-gift-row-track {
  justify-content: center;
}

.reward-gift-tile {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  min-width: 0;
  height: calc(var(--reward-row-height) - 16px);
  padding: 7px 8px 8px;
  overflow: hidden;
  border: 1px solid var(--reward-theme-border);
  border-radius: 7px;
  background:
    linear-gradient(150deg, var(--reward-theme-shine), rgba(255, 255, 255, 0.03) 48%, rgba(0, 0, 0, 0.24)),
    var(--reward-theme-card);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.reward-gift-tile.is-hit {
  z-index: 2;
  border-color: var(--reward-theme-accent-strong);
  animation: rewardRowGiftHit 1.35s cubic-bezier(0.18, 0.9, 0.24, 1.15) infinite;
}

.reward-gift-tile.is-hit img {
  animation: rewardRowGiftImageHit 1.35s cubic-bezier(0.18, 0.9, 0.24, 1.15) infinite;
}

.reward-rows-widget.received-animations-disabled .reward-gift-tile.is-hit,
.reward-rows-widget.received-animations-disabled .reward-gift-tile.is-hit img {
  animation: none;
}

.reward-gift-tile img {
  grid-row: 1;
  grid-column: 1;
  width: min(58px, 80%);
  height: min(58px, calc(var(--reward-row-height) - 42px));
  object-fit: contain;
  filter:
    drop-shadow(0 3px 3px rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 8px rgba(255, 216, 61, 0.28));
}

.reward-gift-tile .reward-row-profile-image {
  width: min(52px, 72%, calc(var(--reward-row-height) - 48px));
  height: auto;
  aspect-ratio: 1;
  justify-self: center;
  align-self: center;
  z-index: 1;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
}

.reward-gift-tile.profile-animation-active.is-hit:not(.reward-trigger-likes) > img:not(.reward-row-profile-image) {
  animation: rewardGiftToProfileFallback var(--reward-profile-duration, 6500ms) cubic-bezier(0.18, 0.9, 0.24, 1.12);
}

.reward-gift-tile.profile-animation-active.profile-has-avatar.is-hit:not(.reward-trigger-likes) > img:not(.reward-row-profile-image) {
  animation-name: rewardGiftToProfile;
}

.reward-gift-tile.profile-animation-active.profile-has-avatar.is-hit:not(.reward-trigger-likes) > .reward-row-profile-image {
  animation: rewardProfileToGift var(--reward-profile-duration, 6500ms) cubic-bezier(0.18, 0.9, 0.24, 1.12);
}

.reward-gift-tile.reward-trigger-likes > img:not(.reward-row-profile-image) {
  width: min(116px, 96%);
}

.reward-editor[data-trigger-type="likes"] .reward-preview-image {
  width: 145%;
  max-width: none;
}

.reward-gift-tile strong {
  position: relative;
  display: block;
  width: 100%;
  min-height: 1.12em;
  overflow: hidden;
  color: var(--reward-theme-text);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.82);
}

@keyframes rewardLabelScroll {
  0%,
  18% {
    transform: translateX(0);
  }

  82%,
  100% {
    transform: translateX(calc(-1 * var(--reward-label-scroll-distance, 0px)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .reward-card strong.is-label-scrolling:not(.profile-name-active) .reward-label-original,
  .reward-card strong.is-label-scrolling:not(.profile-name-active) .reward-label-profile,
  .reward-gift-tile strong.is-label-scrolling:not(.profile-name-active) .reward-label-original,
  .reward-gift-tile strong.is-label-scrolling:not(.profile-name-active) .reward-label-profile {
    animation: none;
  }
}

.reward-rows-empty {
  margin: 0;
  padding: 18px;
  color: var(--reward-theme-muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

@keyframes rewardRowGiftHit {
  0%,
  100% {
    filter: brightness(1.12);
    transform: scale(1);
    box-shadow:
      0 8px 16px rgba(0, 0, 0, 0.22),
      0 0 18px var(--reward-theme-accent-strong),
      0 0 14px var(--reward-theme-glow),
      0 0 0 1px rgba(255, 255, 255, 0.22) inset;
  }

  45% {
    filter: brightness(1.34);
    transform: scale(1.075);
    box-shadow:
      0 12px 22px rgba(0, 0, 0, 0.3),
      0 0 28px var(--reward-theme-accent-strong),
      0 0 22px var(--reward-theme-glow-strong),
      0 0 14px rgba(255, 255, 255, 0.22) inset;
  }
}

@keyframes rewardRowGiftImageHit {
  0%,
  100% {
    filter:
      drop-shadow(0 3px 3px rgba(0, 0, 0, 0.62))
      drop-shadow(0 0 8px rgba(255, 216, 61, 0.38));
    transform: translateY(0) scale(1);
  }

  45% {
    filter:
      drop-shadow(0 4px 4px rgba(0, 0, 0, 0.58))
      drop-shadow(0 0 14px rgba(255, 216, 61, 0.82))
      drop-shadow(0 0 10px var(--reward-theme-accent-strong));
    transform: translateY(-4px) scale(1.18);
  }
}

@media (max-width: 1080px) {
  .reward-rows-widget {
    width: 100vw;
  }

  .reward-gift-row-track {
    grid-auto-columns: calc((100vw - 16px - ((var(--row-gift-count) - 1) * 10px)) / var(--row-gift-count));
  }
}

@media (prefers-reduced-motion: reduce) {
  .reward-gift-row.is-scrolling .reward-gift-row-track {
    animation: none;
  }

  .reward-gift-tile.is-hit,
  .reward-gift-tile.is-hit img {
    animation: none;
  }
}

.reward-config-source {
  align-items: start;
  justify-items: center;
  min-height: 100%;
  overflow: auto;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(3, 245, 216, 0.08), transparent 36%),
    linear-gradient(225deg, rgba(196, 71, 255, 0.1), transparent 38%),
    rgba(8, 8, 14, 0.92);
}

.reward-config-app {
  width: min(1240px, 100%);
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
  display: grid;
  gap: 18px;
}

.config-section {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(14, 12, 22, 0.84);
  box-shadow:
    0 0 24px rgba(196, 71, 255, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  padding: 20px;
}

.config-collapse {
  padding: 0;
  overflow: hidden;
}

.config-collapse summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.config-collapse summary::-webkit-details-marker {
  display: none;
}

.config-collapse summary .section-title {
  margin: 0;
}

.config-collapse .collapse-indicator {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.config-collapse[open] .collapse-indicator {
  color: var(--cyan);
  font-size: 0;
}

.config-collapse[open] .collapse-indicator::before {
  content: "Hide";
  font-size: 11px;
}

.config-collapse > .config-globals {
  padding: 0 20px 20px;
}

.section-title {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reward-config-header {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(3, 245, 216, 0.12), rgba(196, 71, 255, 0.12)),
    rgba(20, 16, 30, 0.88);
  box-shadow:
    0 0 24px rgba(196, 71, 255, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
}

.config-header-content h1 {
  margin: 0;
  color: var(--cyan);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.5px;
}

.config-header-content p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
}

.config-status {
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(3, 245, 216, 0.1);
  color: var(--cyan);
  font-weight: 700;
  display: inline-block;
}

.config-actions,
.config-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.config-actions {
  gap: 10px;
}

.config-actions input,
.config-actions select {
  min-height: 36px;
  min-width: 150px;
  padding: 0 10px;
  color: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(8, 8, 14, 0.72);
}

.config-actions input {
  width: 170px;
}

.config-actions select {
  width: 210px;
}

.config-actions input:focus,
.config-actions select:focus {
  outline: none;
  border-color: rgba(3, 245, 216, 0.72);
  box-shadow: 0 0 0 2px rgba(3, 245, 216, 0.16);
}

.config-url-loader {
  display: grid;
  gap: 8px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(14, 12, 22, 0.72);
}

.config-url-loader > label {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.config-url-loader-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.config-url-loader-controls input {
  min-width: 0;
}

.config-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(14, 12, 22, 0.72);
}

.config-tabs button {
  min-height: 36px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
  border: 1px solid transparent;
  background: transparent;
}

.config-tabs button.is-active {
  color: var(--white);
  border-color: rgba(3, 245, 216, 0.32);
  background:
    linear-gradient(135deg, rgba(3, 245, 216, 0.18), rgba(196, 71, 255, 0.16)),
    rgba(20, 16, 30, 0.82);
  box-shadow: 0 0 14px rgba(3, 245, 216, 0.14);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  transition: all 180ms ease;
}

.btn-primary,
.config-actions button,
.config-row-actions button {
  min-height: 36px;
  padding: 0 14px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(3, 245, 216, 0.24), rgba(196, 71, 255, 0.24)),
    rgba(20, 16, 30, 0.88);
  box-shadow: 0 0 12px rgba(196, 71, 255, 0.2);
}

.btn-primary:hover,
.config-actions button:hover,
.config-row-actions button:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 16px rgba(196, 71, 255, 0.3);
  transform: translateY(-1px);
}

.btn-success {
  min-height: 36px;
  padding: 0 14px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(3, 245, 216, 0.3);
  background:
    linear-gradient(135deg, rgba(3, 245, 216, 0.28), rgba(3, 245, 216, 0.12)),
    rgba(3, 50, 48, 0.6);
  box-shadow: 0 0 12px rgba(3, 245, 216, 0.24);
}

.btn-success:hover {
  border-color: rgba(3, 245, 216, 0.5);
  box-shadow: 0 0 16px rgba(3, 245, 216, 0.32);
  transform: translateY(-1px);
}

.btn-secondary {
  min-height: 36px;
  padding: 0 14px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(20, 16, 30, 0.72);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-danger {
  min-height: 36px;
  padding: 0 14px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 107, 107, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.08)),
    rgba(80, 20, 20, 0.5);
  box-shadow: 0 0 12px rgba(255, 107, 107, 0.16);
}

.btn-danger:hover {
  border-color: rgba(255, 107, 107, 0.5);
  box-shadow: 0 0 16px rgba(255, 107, 107, 0.24);
  transform: translateY(-1px);
}

.btn-play {
  min-height: 32px;
  padding: 0 12px;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(3, 245, 216, 0.2);
  background:
    linear-gradient(135deg, rgba(3, 245, 216, 0.16), rgba(3, 245, 216, 0.04)),
    rgba(10, 30, 30, 0.6);
  box-shadow: 0 0 8px rgba(3, 245, 216, 0.16);
}

.btn-play:hover {
  border-color: rgba(3, 245, 216, 0.4);
  box-shadow: 0 0 12px rgba(3, 245, 216, 0.24);
  transform: scale(1.05);
}

.config-globals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.config-field {
  display: grid;
  gap: 6px;
}

.config-field[hidden] {
  display: none;
}

.config-field label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.config-field input,
.config-field select {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(3, 5, 10, 0.64);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.24) inset;
  transition: all 120ms ease;
}

.config-field input:focus,
.config-field select:focus {
  outline: none;
  border-color: rgba(3, 245, 216, 0.4);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.24) inset,
    0 0 12px rgba(3, 245, 216, 0.24);
  background: rgba(3, 5, 10, 0.72);
}

.theme-config-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grouped-config-grid {
  align-items: start;
}

.config-group-heading {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.config-group-heading:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.goal-config-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.goal-field-type {
  grid-column: 1;
  grid-row: 1;
}

.goal-field-live-followers,
.goal-field-label {
  grid-column: 2;
  grid-row: 1;
}

.goal-field-target {
  grid-column: 3;
  grid-row: 1;
}

.goal-field-step {
  grid-column: 4;
  grid-row: 1;
}

.goal-field-start {
  grid-column: 1;
  grid-row: 2;
}

.goal-field-reset {
  grid-column: 2;
  grid-row: 2;
}

.goal-field-width {
  grid-column: 3;
  grid-row: 2;
}

.goal-field-height {
  grid-column: 4;
  grid-row: 2;
}

.goal-field-accent {
  grid-column: 1;
  grid-row: 3;
}

.goal-field-glow {
  grid-column: 2;
  grid-row: 3;
}

.goal-field-text {
  grid-column: 3;
  grid-row: 3;
}

.goal-config-grid.is-followers-goal .goal-field-label {
  grid-column: 3;
  grid-row: 1;
}

.goal-config-grid.is-followers-goal .goal-field-target {
  grid-column: 4;
  grid-row: 1;
}

.goal-config-grid.is-followers-goal .goal-field-step {
  grid-column: 1;
  grid-row: 2;
}

.goal-config-grid.is-followers-goal .goal-field-start {
  grid-column: 2;
  grid-row: 2;
}

.goal-config-grid.is-followers-goal .goal-field-reset {
  grid-column: 3;
  grid-row: 2;
}

.goal-config-grid.is-followers-goal .goal-field-width {
  grid-column: 4;
  grid-row: 2;
}

.goal-config-grid.is-followers-goal .goal-field-height {
  grid-column: 1;
  grid-row: 3;
}

.goal-config-grid.is-followers-goal .goal-field-accent {
  grid-column: 2;
  grid-row: 3;
}

.goal-config-grid.is-followers-goal .goal-field-glow {
  grid-column: 3;
  grid-row: 3;
}

.goal-config-grid.is-followers-goal .goal-field-text {
  grid-column: 4;
  grid-row: 3;
}

.goal-config-grid.grouped-config-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.goal-config-grid.grouped-config-grid > .config-field,
.goal-config-grid.grouped-config-grid.is-followers-goal > .config-field {
  grid-column: auto;
  grid-row: auto;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-header-row .section-title {
  margin-bottom: 0;
}

.preview-toggle-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.preview-test-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(3, 5, 10, 0.54);
}

.preview-test-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}

.color-control {
  display: grid;
  grid-template-columns: 46px minmax(112px, 1fr);
  gap: 8px;
  align-items: center;
}

.config-field .color-control input[type="color"] {
  width: 46px;
  height: 34px;
  min-height: 34px;
  padding: 3px;
  cursor: pointer;
}

.config-field .color-control input[type="text"] {
  width: 100%;
  min-width: 0;
  text-transform: uppercase;
}

.config-field input[type="range"] {
  height: 36px;
  padding: 0;
  accent-color: var(--cyan);
}

.gift-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: 8px;
  max-height: 244px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(3, 5, 10, 0.42);
}

.gift-catalog-card {
  position: relative;
  min-height: 108px;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(10, 8, 18, 0.72);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.22);
}

.gift-catalog-select {
  display: grid;
  grid-template-rows: 56px minmax(24px, auto);
  gap: 5px;
  align-items: center;
  justify-items: center;
  width: 100%;
  min-height: 106px;
  padding: 8px 6px;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gift-favorite-toggle {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: rgba(3, 5, 10, 0.74);
  cursor: pointer;
}

.gift-favorite-toggle:hover,
.gift-catalog-card.is-favorite .gift-favorite-toggle {
  color: #ffd83d;
  border-color: rgba(255, 216, 61, 0.48);
  box-shadow: 0 0 10px rgba(255, 216, 61, 0.22);
}

.gift-catalog-card:hover,
.gift-catalog-card.is-selected {
  border-color: rgba(3, 245, 216, 0.46);
  box-shadow:
    0 0 14px rgba(3, 245, 216, 0.18),
    0 0 10px rgba(196, 71, 255, 0.16);
  transform: translateY(-1px);
}

.gift-catalog-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.46));
}

.gift-catalog-card strong {
  width: 100%;
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
}

.gift-catalog-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 700;
}

.field-hint {
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.reward-list-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reward-count {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 700;
}

.overlay-preview-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(3, 245, 216, 0.08), rgba(196, 71, 255, 0.1)),
    rgba(3, 5, 10, 0.5);
  box-shadow:
    0 0 18px rgba(196, 71, 255, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.overlay-preview-frame iframe {
  display: block;
  border: 0;
  background: transparent;
}

.overlay-preview-frame-carousel {
  min-height: 360px;
}

.overlay-preview-frame-carousel iframe {
  width: 180px;
  height: 340px;
}

.overlay-preview-frame-rows {
  min-height: 300px;
  padding: 18px;
}

.overlay-preview-frame-rows iframe {
  width: min(1080px, 100%);
  height: 260px;
}

.overlay-preview-frame-side-gifts {
  min-height: var(--side-gifts-preview-height, 360px);
  padding: 14px;
}

.overlay-preview-frame-side-gifts iframe {
  width: min(var(--side-gifts-preview-width, 1080px), 100%);
  height: var(--side-gifts-preview-height, 360px);
  transform: none;
}

.overlay-preview-frame-goal {
  min-height: 140px;
  padding: 18px;
}

.overlay-preview-frame-goal iframe {
  width: min(1080px, 100%);
  height: 84px;
}

.overlay-preview-frame-top-likers {
  min-height: 340px;
  padding: 18px;
}

.overlay-preview-frame-top-likers iframe {
  width: min(430px, 100%);
  height: 300px;
}

.reward-config-list {
  display: grid;
  gap: 8px;
}

.reward-insert-control {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 22px;
  padding: 0;
  color: var(--cyan);
  background: transparent;
  border: 0;
}

.reward-insert-control::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(3, 245, 216, 0.34), transparent);
}

.reward-insert-control span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 18px;
  border: 1px solid rgba(3, 245, 216, 0.42);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(3, 245, 216, 0.16), rgba(196, 71, 255, 0.16)),
    rgba(12, 10, 20, 0.94);
  box-shadow: 0 0 10px rgba(3, 245, 216, 0.12);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.reward-insert-control:hover span {
  color: var(--white);
  border-color: rgba(3, 245, 216, 0.72);
  box-shadow:
    0 0 14px rgba(3, 245, 216, 0.22),
    0 0 10px rgba(196, 71, 255, 0.18);
  transform: translateY(-1px);
}

.rows-gift-board {
  display: grid;
  gap: 14px;
  overflow: visible;
  padding: 2px;
}

.rows-gift-column {
  display: grid;
  grid-template-rows: auto minmax(180px, auto);
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(3, 245, 216, 0.08), rgba(196, 71, 255, 0.1)),
    rgba(12, 10, 20, 0.58);
  box-shadow:
    0 0 16px rgba(196, 71, 255, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.rows-gift-column-header {
  display: flex;
  align-items: center;
  justify-content: start;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  padding: 0 2px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rows-gift-column-header strong {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.rows-gift-column-header span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 800;
}

.rows-gift-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
  min-width: 0;
}

.rows-gift-column-header > button {
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  margin-left: 2px;
}

.rows-gift-settings label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.rows-gift-settings span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.rows-gift-settings input,
.rows-gift-settings select {
  width: 64px;
  min-height: 28px;
  padding: 0 7px;
  color: var(--white);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(3, 5, 10, 0.64);
}

.rows-gift-settings select {
  width: 78px;
}

.rows-gift-settings input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  justify-self: start;
  accent-color: var(--magenta);
}

.rows-gift-dropzone {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(336px, 380px);
  align-items: start;
  gap: 10px;
  min-height: 160px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  border-radius: 6px;
  scroll-snap-type: x proximity;
}

.rows-gift-dropzone.is-drag-over {
  outline: 1px dashed rgba(3, 245, 216, 0.62);
  outline-offset: 3px;
  background: rgba(3, 245, 216, 0.06);
}

.rows-gift-new-row {
  min-height: 190px;
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(3, 245, 216, 0.05), rgba(196, 71, 255, 0.07)),
    rgba(10, 8, 18, 0.38);
}

.rows-gift-board .reward-editor {
  min-width: 0;
  padding: 10px;
  cursor: grab;
  scroll-snap-align: start;
}

.rows-gift-board .reward-editor.is-dragging {
  cursor: grabbing;
  opacity: 0.5;
}

.rows-gift-board .reward-editor.is-drop-before::before,
.rows-gift-board .reward-editor.is-drop-after::after {
  top: 10px;
  bottom: 10px;
  width: 3px;
  height: auto;
}

.rows-gift-board .reward-editor.is-drop-before::before {
  left: -8px;
  right: auto;
}

.rows-gift-board .reward-editor.is-drop-after::after {
  left: auto;
  right: -8px;
}

.rows-gift-board .reward-editor-header {
  align-items: start;
  margin-bottom: 10px;
}

.rows-gift-board .reward-editor-title {
  gap: 8px;
}

.rows-gift-board .config-row-actions {
  flex: 0 0 auto;
  gap: 6px;
}

.rows-gift-board .config-row-actions button {
  min-width: 30px;
  min-height: 30px;
  padding: 0;
}

.rows-gift-board .reward-editor-details {
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
}

.rows-gift-board .reward-editor-preview {
  grid-template-columns: 1fr;
}

.rows-gift-board .preview-area {
  min-height: 86px;
}

.rows-gift-board .reward-preview-image {
  width: 74px;
  height: 74px;
}

.rows-gift-board .gift-catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  max-height: 194px;
}

.rows-gift-board .gift-catalog-card {
  min-height: 92px;
}

.rows-gift-board .gift-catalog-select {
  grid-template-rows: 46px minmax(22px, auto);
  min-height: 90px;
}

.rows-gift-board .gift-catalog-card img {
  width: 44px;
  height: 44px;
}

.reward-add-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 138px;
  padding: 16px;
  color: rgba(255, 255, 255, 0.82);
  border: 1px dashed rgba(3, 245, 216, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(3, 245, 216, 0.08), rgba(196, 71, 255, 0.1)),
    rgba(10, 8, 18, 0.48);
  box-shadow: 0 0 14px rgba(3, 245, 216, 0.08);
}

.reward-add-card:hover {
  color: var(--white);
  border-color: rgba(3, 245, 216, 0.58);
  box-shadow:
    0 0 18px rgba(3, 245, 216, 0.16),
    0 0 14px rgba(196, 71, 255, 0.12);
  transform: translateY(-1px);
}

.reward-add-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--cyan);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  border: 1px solid rgba(3, 245, 216, 0.36);
  border-radius: 999px;
  background: rgba(3, 245, 216, 0.1);
}

.reward-add-card strong {
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.rows-gift-board .reward-add-card {
  min-width: 0;
  min-height: 100%;
  scroll-snap-align: start;
}

.reward-editor {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(20, 18, 32, 0.7);
  box-shadow: 0 0 16px rgba(196, 71, 255, 0.1);
  padding: 14px;
  transition: all 180ms ease;
}

.reward-editor:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 20px rgba(196, 71, 255, 0.14);
}

.reward-editor.is-dragging {
  opacity: 0.42;
  cursor: grabbing;
}

.reward-editor.is-drop-before,
.reward-editor.is-drop-after {
  position: relative;
}

.reward-editor.is-drop-before::before,
.reward-editor.is-drop-after::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 3px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24),
    0 0 14px rgba(3, 245, 216, 0.74);
  pointer-events: none;
}

.reward-editor.is-drop-before::before {
  top: -8px;
}

.reward-editor.is-drop-after::after {
  bottom: -8px;
}

.reward-editor.is-disabled {
  opacity: 0.56;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(20, 18, 32, 0.5);
}

.reward-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.reward-editor-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.config-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  cursor: pointer;
}

.config-checkbox input {
  width: 100%;
  height: 100%;
  accent-color: var(--magenta);
  cursor: pointer;
}

.reward-title-input {
  flex: 1;
  min-width: 0;
  min-height: 32px;
  padding: 0 10px;
  color: var(--white);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(3, 5, 10, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
  transition: all 120ms ease;
}

.reward-title-input:focus {
  outline: none;
  border-color: rgba(3, 245, 216, 0.3);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2) inset,
    0 0 8px rgba(3, 245, 216, 0.2);
}

.reward-index {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 auto;
}

.config-row-actions {
  gap: 6px;
  flex: 0 0 auto;
}

.config-row-actions button {
  min-height: 30px;
  padding: 0 8px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(10, 8, 18, 0.6);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.config-row-actions button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.16);
}

.reward-editor-details {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  max-height: 1000px;
  overflow: hidden;
  opacity: 1;
  transition: all 300ms ease;
}

.reward-editor-details.collapsed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  display: none;
}

.reward-editor-preview {
  display: grid;
  gap: 10px;
}

.preview-area {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 1;
}

.reward-preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.audio-preview {
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

.config-field .audio-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  justify-content: stretch;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  aspect-ratio: auto;
}

.volume-slider {
  width: 100%;
  cursor: pointer;
}

.volume-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  text-align: center;
}

.config-field .volume-label {
  font-size: 11px;
  text-align: right;
}

.reward-editor-form {
  display: grid;
  gap: 12px;
}

.config-field-group {
  display: grid;
  gap: 10px;
}

.reward-editor [hidden] {
  display: none !important;
}

.config-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background 120ms ease;
}

.config-checkbox-label:hover {
  background: rgba(255, 255, 255, 0.04);
}

.config-checkbox-label input {
  width: 18px;
  height: 18px;
  min-height: auto;
  accent-color: var(--magenta);
  cursor: pointer;
}

.config-checkbox-label span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}

.cloud-config-panel {
  padding: 16px;
  border: 1px solid rgba(3, 245, 216, 0.35);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(3, 245, 216, 0.08), rgba(196, 71, 255, 0.09));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.cloud-config-heading,
.cloud-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cloud-config-heading h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.cloud-config-heading h2 span {
  color: var(--cyan);
}

.cloud-config-heading p,
.cloud-config-message {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.cloud-manager-link {
  text-decoration: none;
  white-space: nowrap;
}

.cloud-config-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cloud-config-message {
  margin-top: 12px;
}

.cloud-config-message code {
  color: var(--cyan);
}

.cloud-auth-form,
.cloud-variant-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) repeat(2, auto);
  gap: 8px;
  margin-top: 12px;
}

.cloud-variant-controls {
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr) repeat(4, auto);
}

.cloud-account-row {
  grid-column: 1 / -1;
  justify-content: flex-start;
  gap: 6px;
}

.cloud-account-row span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.cloud-account-row strong {
  overflow-wrap: anywhere;
}

.cloud-auth-form input,
.cloud-variant-controls input,
.cloud-variant-controls select {
  min-height: 38px;
}

.cloud-live-toggle {
  grid-column: 1 / -1;
  justify-self: start;
}

.cloud-live-toggle input {
  min-height: auto;
}

.cloud-config-panel [hidden] {
  display: none !important;
}

/* Keep the signed-out view account-only. */
.cloud-auth-required:not(.cloud-authenticated) .reward-config-app > :not(.studio-sidebar) {
  display: none !important;
}

.cloud-auth-required:not(.cloud-authenticated) .reward-config-header {
  align-items: center;
}

.cloud-auth-required:not(.cloud-authenticated) .reward-config-header #config-state {
  display: none;
}

.obs-dock-manager-source {
  min-height: 100vh;
  overflow: auto;
  padding: 0;
  color: #f7f8ff;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(3, 245, 216, .13), transparent 31rem),
    radial-gradient(circle at 94% 4%, rgba(196, 71, 255, .14), transparent 34rem),
    linear-gradient(145deg, #0a0d13 0%, #11111a 52%, #15121c 100%);
}

.obs-dock-manager {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.obs-dock-manager-header,
.dock-manager-account-row,
.dock-list-heading,
.dock-panel-heading,
.dock-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.obs-dock-manager-header {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 20px;
  background:
    linear-gradient(110deg, rgba(3, 245, 216, .1), transparent 38%, rgba(196, 71, 255, .09)),
    rgba(11, 14, 21, .9);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .27), inset 0 1px rgba(255, 255, 255, .05);
}

.obs-dock-manager-header::after {
  position: absolute;
  top: -55px;
  right: 19%;
  width: 190px;
  height: 100px;
  border-radius: 50%;
  background: rgba(3, 245, 216, .12);
  filter: blur(40px);
  content: "";
  pointer-events: none;
}

.obs-dock-manager h1,
.dock-manager-panel h2 {
  margin: 0;
  color: #f7f8ff;
  line-height: 1.15;
}

.obs-dock-manager h1 {
  margin: 4px 0 7px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -.8px;
}

.dock-manager-panel h2 {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.25px;
}

.obs-dock-manager-header p,
.dock-manager-panel p {
  margin: 0;
  color: rgba(224, 228, 242, .66);
  font-size: 13px;
  line-height: 1.5;
}

#dock-manager-status {
  color: #91f5e8;
  font-size: 12px;
  font-weight: 700;
}

.dock-panel-kicker {
  display: block;
  color: #72eadc;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.obs-editor-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border-color: rgba(3, 245, 216, .25);
  text-decoration: none;
}

.dock-manager-panel {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .035), transparent 45%),
    rgba(10, 12, 18, .84);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 15px 40px rgba(0, 0, 0, .16);
}

.dock-manager-panel[hidden],
.dock-manager-account[hidden] {
  display: none;
}

.dock-manager-setup {
  background:
    linear-gradient(110deg, rgba(3, 245, 216, .055), transparent 42%),
    rgba(10, 12, 18, .84);
}

.dock-connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(3, 245, 216, .18);
  border-radius: 999px;
  color: #a6f7ed;
  background: rgba(3, 245, 216, .07);
  font-size: 10px;
  font-weight: 800;
}

.dock-connection-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #03f5d8;
  box-shadow: 0 0 10px rgba(3, 245, 216, .8);
}

.dock-setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.dock-setup-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

.dock-setup-steps li > span {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(3, 245, 216, .22);
  border-radius: 9px;
  color: #a6f7ed;
  background: rgba(3, 245, 216, .08);
  font-size: 11px;
  font-weight: 900;
}

.dock-setup-steps strong {
  display: block;
  margin: 1px 0 4px;
  color: #f3f5ff;
  font-size: 12px;
}

.dock-setup-steps p {
  font-size: 11px;
}

.dock-manager-auth,
.dock-create-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}

.dock-auth-intro,
.dock-create-intro {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.dock-manager-auth .dock-field {
  grid-column: span 4;
}

.dock-manager-auth > button {
  grid-column: span 2;
  min-height: 46px;
}

.dock-auth-privacy {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: rgba(224, 228, 242, .55);
  font-size: 11px;
}

.dock-auth-privacy a,
.dock-account-links a {
  color: var(--cyan);
}

.dock-account-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dock-account-links a {
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.dock-manager-account-row {
  margin-bottom: 18px;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(3, 245, 216, .13);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(3, 245, 216, .09), rgba(196, 71, 255, .045));
}

.dock-account-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.dock-account-avatar {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(3, 245, 216, .3);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #9af8ed 0 13%, transparent 14%),
    radial-gradient(ellipse at 50% 82%, #9af8ed 0 25%, transparent 26%),
    rgba(3, 245, 216, .1);
  box-shadow: 0 0 18px rgba(3, 245, 216, .12);
}

.dock-account-identity small,
.dock-account-identity strong {
  display: block;
}

.dock-account-identity small {
  margin-bottom: 2px;
  color: rgba(224, 228, 242, .53);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.dock-account-identity strong {
  overflow: hidden;
  color: #f4f7ff;
  font-size: 12px;
  text-overflow: ellipsis;
}

.dock-create-form {
  padding: 24px;
}

.dock-field,
.dock-card-fields label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: rgba(224, 228, 242, .6);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .65px;
  text-transform: uppercase;
}

.dock-create-name,
.dock-create-variant {
  grid-column: span 3;
}

.dock-create-kind,
.dock-dimensions,
.dock-create-submit {
  grid-column: span 2;
}

.dock-dimensions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 7px;
}

.dock-dimension-divider {
  padding-bottom: 13px;
  color: rgba(224, 228, 242, .38);
  font-size: 13px;
}

.dock-create-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
}

.obs-dock-manager input,
.obs-dock-manager select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  outline: none;
  color: #f3f5ff;
  background: rgba(5, 7, 12, .78);
  font: 600 12px Inter, Arial, sans-serif;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.obs-dock-manager input::placeholder {
  color: rgba(224, 228, 242, .34);
}

.obs-dock-manager input:focus,
.obs-dock-manager select:focus {
  border-color: rgba(3, 245, 216, .5);
  background: rgba(8, 13, 18, .95);
  box-shadow: 0 0 0 3px rgba(3, 245, 216, .09);
}

.obs-dock-manager select option {
  color: #f3f5ff;
  background: #10131a;
}

.dock-library-panel {
  min-height: 190px;
}

.dock-manager-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.dock-card {
  padding: 16px;
  border: 1px solid rgba(3, 245, 216, .18);
  border-radius: 14px;
  background: linear-gradient(125deg, rgba(3, 245, 216, .045), rgba(255, 255, 255, .02));
}

.dock-card-heading > input {
  width: min(420px, 70%);
  font-weight: 800;
}

.dock-revision {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
}

.dock-card-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, .8fr) repeat(2, minmax(80px, .35fr));
  gap: 8px;
  margin-top: 10px;
}

.dock-url-row {
  margin-top: 8px;
}

.dock-url-row input {
  width: 100%;
  color: rgba(255, 255, 255, .66);
  font-family: Consolas, monospace;
  font-size: 11px;
}

.dock-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.dock-empty-state {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 28px 18px 22px;
  border: 1px dashed rgba(255, 255, 255, .11);
  border-radius: 14px;
  background: rgba(255, 255, 255, .018);
  text-align: center;
}

.dock-empty-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border: 1px solid rgba(3, 245, 216, .22);
  border-radius: 13px;
  color: #7cf3e5;
  background: rgba(3, 245, 216, .07);
  font-size: 21px;
  font-weight: 500;
}

.dock-empty-state strong {
  color: #eef1fb;
  font-size: 14px;
}

.dock-empty-state p {
  max-width: 520px;
}

.dock-empty-state .btn-secondary {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  text-decoration: none;
}

#dock-manager-status.is-error,
#cloud-config-status.is-error {
  color: #ff8a9a;
}

@media (max-width: 960px) {
  .reward-config-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .config-actions {
    width: 100%;
  }

  .config-globals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goal-config-grid,
  .goal-config-grid.is-followers-goal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goal-config-grid > .config-field,
  .goal-config-grid.is-followers-goal > .config-field {
    grid-column: auto;
    grid-row: auto;
  }

  .reward-editor-details {
    grid-template-columns: 1fr;
  }

  .cloud-auth-form,
  .cloud-variant-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dock-setup-steps {
    grid-template-columns: 1fr;
  }

  .dock-manager-auth,
  .dock-create-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dock-auth-intro,
  .dock-create-intro {
    grid-column: 1 / -1;
  }

  .dock-manager-auth .dock-field,
  .dock-manager-auth > button,
  .dock-create-name,
  .dock-create-variant,
  .dock-create-kind,
  .dock-dimensions {
    grid-column: span 1;
  }

  .dock-create-submit {
    grid-column: 1 / -1;
  }

  .dock-card-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .reward-config-app {
    width: 100%;
    gap: 12px;
  }

  .config-url-loader-controls {
    grid-template-columns: 1fr;
  }

  .config-section {
    padding: 14px;
  }

  .section-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .reward-config-header {
    padding: 12px;
  }

  .config-header-content h1 {
    font-size: 20px;
  }

  .config-actions {
    flex-direction: column;
    width: 100%;
  }

  .config-actions button,
  .config-actions input,
  .config-actions select {
    width: 100%;
  }

  .config-globals {
    grid-template-columns: 1fr;
  }

  .goal-config-grid,
  .goal-config-grid.is-followers-goal {
    grid-template-columns: 1fr;
  }

  .reward-list-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .reward-editor-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reward-editor-title {
    width: 100%;
  }

  .config-row-actions {
    width: 100%;
  }

  .config-row-actions button {
    flex: 1;
  }

  .reward-editor-details {
    grid-template-columns: 1fr;
  }

  .cloud-config-heading,
  .cloud-account-row {
    align-items: stretch;
    flex-direction: column;
  }

  .cloud-config-heading-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cloud-auth-form,
  .cloud-variant-controls {
    grid-template-columns: 1fr;
  }

  .cloud-account-row,
  .cloud-live-toggle {
    grid-column: 1;
  }

  .obs-dock-manager-header,
  .dock-manager-account-row,
  .dock-list-heading,
  .dock-panel-heading,
  .dock-card-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .dock-manager-auth,
  .dock-create-form {
    grid-template-columns: 1fr;
  }

  .dock-auth-intro,
  .dock-create-intro,
  .dock-manager-auth .dock-field,
  .dock-manager-auth > button,
  .dock-create-name,
  .dock-create-variant,
  .dock-create-kind,
  .dock-dimensions,
  .dock-create-submit {
    grid-column: 1 / -1;
  }

  .dock-card-fields {
    grid-template-columns: 1fr;
  }

  .dock-card-heading > input {
    width: 100%;
  }
}

/* Composite OBS output designer */
.cloud-output-assignment {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(190px, .7fr) minmax(150px, .55fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 5px;
  padding: 12px;
  border: 1px solid rgba(3, 245, 216, .18);
  border-radius: 10px;
  background: rgba(3, 245, 216, .045);
}

.cloud-output-assignment > div {
  display: grid;
  align-self: center;
  gap: 3px;
}

.cloud-output-assignment strong {
  color: var(--cyan);
  font-size: 12px;
}

.cloud-output-assignment span {
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
}

.dock-manager-optional {
  margin-top: 14px !important;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.dock-output-create-form .dock-output-name,
.dock-output-create-form .dock-output-preset {
  grid-column: span 3;
}

.dock-output-create-form .dock-output-dimensions {
  grid-column: span 4;
}

.dock-output-create-form .dock-create-submit {
  grid-column: span 2;
}

.dock-output-title {
  display: grid;
  flex: 1;
  gap: 7px;
}

.dock-output-title > input {
  width: min(520px, 100%);
  min-height: 42px;
  padding-left: 0;
  border-color: transparent;
  background: transparent;
  font-size: 18px;
  font-weight: 850;
}

.dock-output-title > input:focus {
  padding-left: 11px;
}

.dock-output-meta {
  display: flex;
  gap: 7px;
}

.dock-output-meta span {
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  color: rgba(230, 234, 247, .6);
  background: rgba(255, 255, 255, .035);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.dock-expand-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dock-expand-button[aria-expanded="true"] span {
  transform: rotate(180deg);
}

.dock-output-fields {
  grid-template-columns: minmax(120px, .22fr) minmax(120px, .22fr) minmax(300px, 1fr);
  align-items: end;
}

.dock-output-fields .dock-url-row {
  margin-top: 0;
}

.dock-composer {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.dock-composer[hidden] {
  display: none;
}

.dock-composer-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.dock-composer-toolbar h3 {
  margin: 4px 0 3px;
  color: #f4f6ff;
  font-size: 17px;
}

.dock-composer-toolbar p {
  margin: 0;
  color: rgba(224, 228, 242, .58);
  font-size: 11px;
}

.dock-preview-test-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 8px 11px;
  border: 1px solid rgba(3, 245, 216, .22);
  border-radius: 10px;
  background: rgba(3, 245, 216, .06);
  color: rgba(244, 246, 255, .9);
  cursor: pointer;
}

.dock-preview-test-toggle input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--cyan);
}

.dock-preview-test-toggle span {
  display: grid;
  gap: 1px;
}

.dock-preview-test-toggle strong {
  font-size: 10px;
}

.dock-preview-test-toggle small {
  color: rgba(224, 228, 242, .54);
  font-size: 9px;
}

.dock-add-layer-controls {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(140px, .7fr) auto;
  align-items: end;
  gap: 8px;
}

.dock-add-layer-controls button {
  min-height: 46px;
}

.dock-composer-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  min-height: 500px;
}

.dock-canvas-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 500px;
  max-height: 680px;
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  background-color: #11151c;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, .025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, .025) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, .025) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, .025) 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.dock-layout-canvas {
  position: relative;
  flex: 0 0 auto;
  max-width: 100%;
  max-height: 620px;
  overflow: visible;
  border: 1px solid rgba(3, 245, 216, .32);
  background: rgba(2, 3, 7, .82);
  box-shadow: 0 0 0 1px rgba(3, 245, 216, .06), 0 20px 50px rgba(0, 0, 0, .35);
}

.dock-canvas-overhang-shade {
  position: absolute;
  z-index: 2000;
  display: block;
  pointer-events: none;
  background: rgba(128, 128, 128, .88);
  mix-blend-mode: saturation;
  opacity: .72;
}

.dock-layout-canvas.is-interacting .dock-canvas-overhang-shade {
  opacity: 0;
}

.dock-canvas-overhang-shade.is-left,
.dock-canvas-overhang-shade.is-right {
  top: calc(-1 * var(--dock-overhang-top, 0%));
  bottom: calc(-1 * var(--dock-overhang-bottom, 0%));
}

.dock-canvas-overhang-shade.is-left { right: 100%; width: var(--dock-overhang-left, 0%); }
.dock-canvas-overhang-shade.is-right { left: 100%; width: var(--dock-overhang-right, 0%); }

.dock-canvas-overhang-shade.is-top,
.dock-canvas-overhang-shade.is-bottom {
  right: calc(-1 * var(--dock-overhang-right, 0%));
  left: calc(-1 * var(--dock-overhang-left, 0%));
}

.dock-canvas-overhang-shade.is-top { bottom: 100%; height: var(--dock-overhang-top, 0%); }
.dock-canvas-overhang-shade.is-bottom { top: 100%; height: var(--dock-overhang-bottom, 0%); }

.dock-canvas-layer {
  position: absolute;
  min-width: 6px;
  min-height: 6px;
  overflow: visible;
  border: 1px solid rgba(124, 243, 229, .55);
  background: rgba(3, 245, 216, .045);
  cursor: move;
  touch-action: none;
  transition: border-color 100ms ease, box-shadow 100ms ease, opacity 100ms ease;
}

.dock-canvas-layer.is-dragging {
  will-change: transform;
  transition: none;
}

.dock-canvas-layer iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  transform-origin: top left;
}

.dock-canvas-layer.is-selected {
  border-color: #03f5d8;
  box-shadow: 0 0 0 2px rgba(3, 245, 216, .18), 0 0 16px rgba(3, 245, 216, .25);
}

.dock-canvas-layer.is-hidden-layer {
  opacity: .28;
}

.dock-canvas-layer.is-locked {
  border-style: dashed;
  cursor: not-allowed;
}

.dock-layer-label {
  position: absolute;
  left: -1px;
  bottom: calc(100% + 3px);
  max-width: 210px;
  overflow: hidden;
  padding: 3px 5px;
  border-radius: 4px;
  color: #d9fff9;
  background: rgba(3, 18, 20, .92);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.dock-layer-resize {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 11px;
  height: 11px;
  border: 2px solid #061112;
  border-radius: 3px;
  background: #03f5d8;
  cursor: nwse-resize;
}

.dock-layer-panel {
  align-self: stretch;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  background: rgba(5, 7, 12, .76);
}

.dock-layer-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
  color: #f1f4ff;
  font-size: 12px;
}

.dock-layer-panel-heading span {
  color: var(--cyan);
}

.dock-layer-order-hint {
  margin: 0 0 10px;
  color: rgba(224, 228, 242, .48);
  font-size: 9px;
  line-height: 1.4;
}

.dock-layer-panel-empty {
  color: rgba(224, 228, 242, .54);
  font-size: 11px;
  line-height: 1.5;
}

.dock-layer-list {
  display: grid;
  gap: 6px;
  max-height: 190px;
  overflow: auto;
  margin-bottom: 14px;
}

.dock-layer-list-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .075);
  color: rgba(238, 241, 251, .72);
  background: rgba(255, 255, 255, .025);
  cursor: grab;
  text-align: left;
}

.dock-layer-list-item:active { cursor: grabbing; }

.dock-layer-list-item.is-dragging {
  opacity: .4;
}

.dock-layer-list-item.is-drop-before::before,
.dock-layer-list-item.is-drop-after::after {
  position: absolute;
  right: 3px;
  left: 3px;
  height: 2px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(3, 245, 216, .6);
  content: '';
}

.dock-layer-list-item.is-drop-before::before { top: -4px; }
.dock-layer-list-item.is-drop-after::after { bottom: -4px; }

.dock-layer-list-item.is-active {
  border-color: rgba(3, 245, 216, .34);
  color: #f5f7ff;
  background: rgba(3, 245, 216, .075);
}

.dock-layer-list-item > span:nth-child(2),
.dock-layer-list-item strong,
.dock-layer-list-item small {
  display: block;
  min-width: 0;
}

.dock-layer-list-item strong,
.dock-layer-list-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-layer-list-item strong { font-size: 10px; }
.dock-layer-list-item small { margin-top: 2px; color: rgba(224, 228, 242, .48); font-size: 8px; }
.dock-layer-visibility { color: var(--cyan); font-size: 8px; }
.dock-layer-grip { color: rgba(224, 228, 242, .38); font-size: 17px; line-height: 1; }

.dock-layer-inspector {
  display: grid;
  gap: 9px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.dock-layer-geometry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.dock-layer-geometry label:last-child {
  grid-column: 1 / -1;
}

.dock-scale-field {
  grid-column: 1 / -1;
}

.dock-scale-readout {
  color: rgba(224, 228, 242, .5);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.dock-layer-toggles,
.dock-layer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dock-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(224, 228, 242, .68);
  font-size: 10px;
  font-weight: 700;
}

.dock-toggle input {
  width: 15px;
  min-height: 15px;
  accent-color: var(--cyan);
}

.dock-layer-actions button {
  flex: 1;
}

@media (max-width: 1050px) {
  .dock-composer-toolbar { align-items: stretch; flex-direction: column; }
  .dock-add-layer-controls { width: 100%; }
  .dock-composer-workspace { grid-template-columns: 1fr; }
  .dock-layer-panel { min-height: auto; }
}

@media (max-width: 760px) {
  .cloud-output-assignment { grid-template-columns: 1fr; }
  .dock-output-create-form .dock-output-name,
  .dock-output-create-form .dock-output-preset,
  .dock-output-create-form .dock-output-dimensions,
  .dock-output-create-form .dock-create-submit { grid-column: 1 / -1; }
  .dock-output-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dock-output-fields .dock-url-row { grid-column: 1 / -1; }
  .dock-add-layer-controls { grid-template-columns: 1fr; }
  .dock-canvas-viewport { min-height: 380px; padding: 12px; }
}

/* King Gumption Studio editor shell */
.reward-config-source {
  display: block;
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(circle at 82% 0%, rgba(156, 68, 255, .16), transparent 34rem),
    radial-gradient(circle at 18% 26%, rgba(3, 245, 216, .08), transparent 30rem),
    linear-gradient(145deg, #080a11 0%, #10101a 54%, #15101d 100%);
}

.reward-config-source::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .18;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.reward-config-app {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 28px 0 60px 248px;
}

.reward-config-app > :not(.studio-sidebar) {
  width: min(1180px, calc(100% - 56px));
  margin-right: auto;
  margin-left: auto;
}

.reward-config-app > .reward-config-header,
.reward-config-app > .cloud-config-panel,
.reward-config-app > .config-section {
  margin-bottom: 16px;
}

.studio-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  width: 248px;
  flex-direction: column;
  padding: 24px 18px 18px;
  border-right: 1px solid rgba(255, 255, 255, .1);
  background:
    linear-gradient(180deg, rgba(3, 245, 216, .055), transparent 28%, rgba(196, 71, 255, .055)),
    rgba(8, 10, 17, .88);
  box-shadow: 18px 0 55px rgba(0, 0, 0, .22), inset -1px 0 rgba(255, 255, 255, .025);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.studio-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  color: #f7f8ff;
  text-decoration: none;
}

.studio-brand-mark {
  display: grid;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(3, 245, 216, .32);
  border-radius: 50%;
  background: rgba(12, 13, 22, .94);
  box-shadow: 0 0 24px rgba(3, 245, 216, .11), inset 0 1px rgba(255, 255, 255, .11);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.08em;
}

.studio-brand > span:last-child {
  display: grid;
  line-height: 1;
}

.studio-brand strong {
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.2px;
}

.studio-brand small {
  margin-top: 5px;
  color: var(--cyan);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.studio-sidebar-content {
  margin-top: 42px;
}

.studio-nav-label {
  display: block;
  margin: 0 10px 10px;
  color: rgba(224, 228, 242, .38);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.45px;
  text-transform: uppercase;
}

.studio-workspace-label {
  margin-top: 31px;
}

.studio-sidebar .config-tabs {
  display: grid;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.studio-sidebar .config-tabs button,
.studio-nav-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(224, 228, 242, .64);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
  text-decoration: none;
}

.studio-sidebar .config-tabs button:hover,
.studio-nav-link:hover {
  color: #f3f6ff;
  background: rgba(255, 255, 255, .04);
}

.studio-sidebar .config-tabs button.is-active {
  border-color: rgba(3, 245, 216, .22);
  color: #f7f8ff;
  background:
    linear-gradient(110deg, rgba(3, 245, 216, .13), rgba(196, 71, 255, .075)),
    rgba(19, 19, 31, .82);
  box-shadow: 0 0 22px rgba(3, 245, 216, .075), inset 0 1px rgba(255, 255, 255, .045);
}

.studio-nav-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  color: rgba(224, 228, 242, .54);
  background: rgba(255, 255, 255, .025);
  font-size: 12px;
  font-weight: 500;
}

.studio-sidebar .config-tabs button.is-active .studio-nav-icon {
  border-color: rgba(3, 245, 216, .2);
  color: var(--cyan);
  background: rgba(3, 245, 216, .08);
}

.studio-nav-link b {
  color: rgba(224, 228, 242, .36);
  font-size: 11px;
}

.studio-sidebar-footer {
  display: grid;
  gap: 9px;
  margin-top: 13px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .075);
}

.studio-account-panel {
  margin-top: auto;
}

.studio-account-panel [hidden] {
  display: none !important;
}

.studio-sidebar .studio-sidebar-auth {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 0;
  padding: 15px 0 2px;
  border-top: 1px solid rgba(255, 255, 255, .075);
}

.studio-sidebar-auth .studio-nav-label {
  margin-bottom: 3px;
}

.studio-sidebar-auth input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 8px;
  outline: none;
  color: #f3f5ff;
  background: rgba(4, 6, 11, .68);
  font: 600 10px Inter, Arial, sans-serif;
}

.studio-sidebar-auth input:focus {
  border-color: rgba(3, 245, 216, .42);
  box-shadow: 0 0 0 3px rgba(3, 245, 216, .075);
}

.studio-sidebar-auth .btn-primary {
  width: 100%;
  min-height: 36px;
  margin-top: 2px;
}

.studio-account-secondary {
  min-height: 31px;
  color: rgba(224, 228, 242, .54);
  background: transparent;
  font-size: 9px;
}

.studio-account-secondary:hover {
  color: var(--cyan);
}

.studio-auth-status {
  margin: 3px 0 1px;
  padding: 8px 9px;
  border: 1px solid rgba(3, 245, 216, .16);
  border-radius: 8px;
  color: #baf8f0;
  background: rgba(3, 245, 216, .055);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.4;
}

.studio-auth-status.is-error {
  border-color: rgba(255, 91, 116, .24);
  color: #ff9bad;
  background: rgba(255, 70, 103, .07);
}

.studio-privacy-note {
  grid-column: 1 / -1;
  margin: 1px 0 0;
  color: rgba(224, 228, 242, .43);
  font-size: 8px;
  line-height: 1.45;
}

.studio-privacy-note a,
.studio-account-actions a {
  color: rgba(26, 232, 211, .78);
}

.studio-account-session {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, .075);
  border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.studio-account-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(3, 245, 216, .22);
  border-radius: 50%;
  color: #a6f7ed;
  background: rgba(3, 245, 216, .07);
  font-size: 8px;
  font-weight: 850;
}

.studio-account-session div {
  min-width: 0;
}

.studio-account-session small,
.studio-account-session strong {
  display: block;
}

.studio-account-session small {
  margin-bottom: 2px;
  color: rgba(224, 228, 242, .38);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.studio-account-session strong {
  overflow: hidden;
  color: rgba(243, 246, 255, .72);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-account-session button {
  grid-column: 1 / -1;
  min-height: 28px;
  padding: 0;
  color: rgba(224, 228, 242, .48);
  background: transparent;
  font-size: 9px;
  text-align: left;
}

.studio-account-session button:hover {
  color: #ff95a4;
}

.studio-account-menu {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.studio-account-menu summary {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  color: rgba(224, 228, 242, .5);
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  list-style: none;
}

.studio-account-menu summary::-webkit-details-marker { display: none; }

.studio-account-menu summary::after {
  content: '+';
  color: rgba(224, 228, 242, .3);
  font-size: 12px;
}

.studio-account-menu[open] summary::after { content: '−'; }
.studio-account-menu summary:hover { color: var(--cyan); }

.studio-account-actions {
  display: grid;
  gap: 1px;
  padding: 4px 0 2px 10px;
  border-left: 1px solid rgba(26, 232, 211, .16);
}

.studio-account-actions button,
.studio-account-actions a {
  min-height: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 8px;
  font-weight: 750;
  text-align: left;
  text-decoration: none;
}

.studio-account-actions button {
  color: rgba(224, 228, 242, .48);
}

.studio-account-actions button:hover {
  color: var(--cyan);
}

.studio-account-actions button.is-danger {
  color: rgba(255, 126, 145, .67);
}

.studio-sidebar-footer .config-status {
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: rgba(224, 228, 242, .48);
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-sidebar-footer .config-status::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(3, 245, 216, .7);
  content: "";
}

.studio-reset-button {
  min-height: 34px;
  padding: 0;
  color: rgba(255, 149, 164, .62);
  background: transparent;
  font-size: 10px;
  font-weight: 750;
  text-align: left;
}

.studio-reset-button:hover {
  color: #ff95a4;
}

.reward-config-header {
  min-height: auto;
  padding: 9px 2px 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.studio-page-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.55px;
  text-transform: uppercase;
}

.config-header-content h1 {
  color: #f7f8ff;
  font-family: "Space Grotesk", Inter, Arial, sans-serif;
  font-size: clamp(28px, 3.4vw, 39px);
  font-weight: 700;
  letter-spacing: -1px;
}

.config-header-content p {
  margin-top: 8px;
  color: rgba(224, 228, 242, .55);
  font-size: 12px;
}

.cloud-config-panel {
  padding: 18px;
  border-color: rgba(255, 255, 255, .1);
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(3, 245, 216, .055), transparent 43%, rgba(196, 71, 255, .055)),
    rgba(12, 14, 22, .82);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .035);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.cloud-config-heading {
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.cloud-config-heading h2 {
  margin-bottom: 3px;
  color: #f2f4fc;
  font-size: 14px;
  font-weight: 800;
}

.cloud-config-heading p,
.cloud-config-message {
  color: rgba(224, 228, 242, .5);
  font-size: 10px;
}

.cloud-variant-controls {
  grid-template-columns: minmax(170px, .85fr) minmax(220px, 1.15fr) repeat(3, auto);
  align-items: center;
  gap: 9px;
  margin-top: 13px;
}

.cloud-account-row {
  margin-bottom: 1px;
  color: rgba(224, 228, 242, .6);
  font-size: 10px;
}

.cloud-account-row strong {
  color: rgba(243, 246, 255, .82);
  font-size: 10px;
}

.cloud-live-toggle,
.cloud-output-assignment,
.studio-advanced {
  grid-column: 1 / -1;
}

.cloud-output-assignment {
  grid-template-columns: minmax(230px, 1fr) minmax(210px, .75fr) auto;
  margin-top: 4px;
  padding: 12px;
  border-color: rgba(3, 245, 216, .12);
  border-radius: 10px;
  background: rgba(3, 245, 216, .035);
}

.cloud-output-assignment > div {
  gap: 1px;
}

.cloud-output-assignment strong {
  color: #c9fff8;
  font-size: 10px;
}

.cloud-output-assignment span {
  font-size: 9px;
}

.studio-advanced {
  margin-top: 2px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.studio-advanced summary {
  width: max-content;
  padding: 11px 0 2px;
  color: rgba(224, 228, 242, .45);
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .75px;
  list-style: none;
  text-transform: uppercase;
}

.studio-advanced summary::-webkit-details-marker {
  display: none;
}

.studio-advanced summary::after {
  margin-left: 7px;
  content: "+";
}

.studio-advanced[open] summary::after {
  content: "−";
}

.studio-advanced-content {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.studio-advanced .config-url-loader {
  padding: 12px;
  background: rgba(5, 7, 12, .38);
}

.studio-migration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 8px;
  background: rgba(5, 7, 12, .3);
}

.studio-migration-row strong,
.studio-migration-row span {
  display: block;
}

.studio-migration-row strong {
  color: rgba(243, 246, 255, .8);
  font-size: 10px;
}

.studio-migration-row span {
  color: rgba(224, 228, 242, .45);
  font-size: 9px;
}

.config-section {
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)),
    rgba(12, 12, 20, .8);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .14), inset 0 1px rgba(255, 255, 255, .035);
}

.config-collapse summary {
  min-height: 64px;
  padding: 18px 21px;
}

.section-title {
  color: #f0f3fb;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.1px;
  text-transform: none;
}

.config-collapse summary .section-title::before,
.section-header-row .section-title::before,
.config-section > .section-title::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(3, 245, 216, .7);
  vertical-align: 2px;
  content: "";
}

.config-collapse .collapse-indicator {
  color: rgba(224, 228, 242, .38);
  font-size: 9px;
  letter-spacing: .6px;
}

/* The account panel stays available before sign-in; editing navigation does not. */
.cloud-auth-required:not(.cloud-authenticated) .reward-config-app > .studio-sidebar {
  display: flex !important;
}

.cloud-auth-required:not(.cloud-authenticated) .studio-sidebar .sidebar-auth-only {
  display: none !important;
}

.cloud-auth-required:not(.cloud-authenticated) .reward-config-app > :not(.studio-sidebar) {
  display: none !important;
}

.cloud-auth-required:not(.cloud-authenticated) .studio-account-panel {
  margin: 44px 0 auto;
}

@media (max-width: 1050px) {
  .reward-config-app {
    padding-left: 218px;
  }

  .studio-sidebar {
    width: 218px;
    padding-inline: 14px;
  }

  .cloud-variant-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cloud-account-row,
  .cloud-live-toggle,
  .cloud-output-assignment,
  .studio-advanced {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .reward-config-app {
    padding: 0 0 45px;
  }

  .reward-config-app > :not(.studio-sidebar) {
    width: min(100% - 28px, 1180px);
  }

  .studio-sidebar {
    position: sticky;
    top: 0;
    bottom: auto;
    z-index: 40;
    width: 100%;
    height: auto;
    padding: 11px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .studio-brand {
    min-height: 40px;
  }

  .studio-brand-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .studio-sidebar-content {
    margin-top: 11px;
  }

  .cloud-authenticated .studio-account-panel {
    position: absolute;
    top: 11px;
    right: 14px;
    margin: 0;
  }

  .cloud-authenticated .studio-account-session {
    display: block;
    padding: 0;
    border: 0;
  }

  .cloud-authenticated .studio-account-session > .studio-account-avatar,
  .cloud-authenticated .studio-account-session > div {
    display: none;
  }

  .cloud-authenticated .studio-account-session > button {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    text-align: center;
  }

  .cloud-authenticated .studio-account-menu {
    min-width: 130px;
  }

  .cloud-auth-required:not(.cloud-authenticated) .studio-account-panel {
    margin-top: 13px;
  }

  .studio-nav-label,
  .studio-nav-link,
  .studio-sidebar-footer {
    display: none;
  }

  .studio-sidebar .config-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 1px;
  }

  .studio-sidebar .config-tabs button {
    display: flex;
    width: auto;
    min-width: max-content;
    padding: 0 11px 0 7px;
  }

  .reward-config-header {
    padding-top: 24px;
  }

  .cloud-output-assignment {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .studio-sidebar .config-tabs button {
    min-height: 38px;
    font-size: 10px;
  }

  .studio-nav-icon {
    width: 23px;
    height: 23px;
    font-size: 10px;
  }

  .cloud-variant-controls {
    grid-template-columns: 1fr;
  }

  .cloud-account-row,
  .cloud-live-toggle,
  .cloud-output-assignment,
  .studio-advanced {
    grid-column: 1;
  }

  .studio-migration-row {
    align-items: stretch;
    flex-direction: column;
  }
}

body.cloud-auth-required:not(.cloud-authenticated) .reward-config-header,
body.cloud-auth-required:not(.cloud-authenticated) #cloud-config-panel {
  display: none !important;
}

body.cloud-auth-required:not(.cloud-authenticated) .studio-account-panel {
  margin-top: 44px !important;
  margin-bottom: auto !important;
}

body.cloud-auth-required:not(.cloud-authenticated) .studio-brand {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
