.setmod-thanks {
  padding: 56px 0;
  background:
    radial-gradient(circle at top right, rgba(31, 94, 255, 0.1), transparent 26%),
    linear-gradient(180deg, #111a28 0%, #0f1724 100%);
}

.setmod-thanks__shell {
  width: min(calc(100% - 40px), 1240px);
  margin: 0 auto;
}

.setmod-thanks__intro {
  max-width: 760px;
  margin-bottom: 28px;
  text-align: left;
}

.setmod-thanks__eyebrow {
  margin: 0 0 10px;
  color: var(--color-primary, #f28a2e);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.setmod-thanks__title {
  margin: 0;
  color: var(--color-on-dark, #f3f6fb);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.setmod-thanks__subtitle {
  margin: 14px 0 0;
  color: rgba(243, 246, 251, 0.72);
  font-size: 17px;
  line-height: 1.7;
}

.setmod-thanks__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.setmod-thanks__card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(243, 246, 251, 0.08);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(31, 94, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow: 0 18px 48px rgba(8, 14, 24, 0.24);
}

.setmod-thanks__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
}

.setmod-thanks__thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  border: 1px solid rgba(243, 246, 251, 0.08);
  object-fit: cover;
}

.setmod-thanks__name {
  color: var(--color-on-dark, #f3f6fb);
  font-size: 17px;
  line-height: 1.4;
}

.setmod-thanks__meta {
  margin: 0;
  color: rgba(243, 246, 251, 0.72);
  font-size: 14px;
}

.setmod-thanks__action {
  width: fit-content;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(242, 138, 46, 0.28);
  border-radius: 999px;
  background: rgba(242, 138, 46, 0.16);
  color: var(--color-on-dark, #f3f6fb);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.setmod-thanks__action:hover,
.setmod-thanks__thumb:hover + .setmod-thanks__name + .setmod-thanks__meta + .setmod-thanks__action {
  background: rgba(242, 138, 46, 0.24);
  transform: translateY(-1px);
}

body.modal-bounce-shell-lock {
  overflow: hidden;
}

.setmod-thanks__modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: none;
}

.setmod-thanks__modal.is-visible {
  display: grid;
  place-items: center;
}

.setmod-thanks__modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 29, 0.76);
}

.setmod-thanks__modal-card {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 500px);
  max-height: calc(100vh - 32px);
  margin: 0 auto;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(31, 94, 255, 0.16), transparent 26%),
    radial-gradient(circle at top left, rgba(242, 138, 46, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(16, 24, 38, 0.985) 0%, rgba(11, 18, 30, 0.985) 100%);
  box-shadow: 0 32px 100px rgba(7, 16, 29, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.setmod-thanks__modal.is-opening .setmod-thanks__modal-card {
  animation: setmod-thanks-bounce-in 0.75s both;
}

.setmod-thanks__modal.is-closing .setmod-thanks__modal-card {
  animation: setmod-thanks-bounce-out-down 0.5s both;
}

.setmod-thanks__modal-content {
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.setmod-thanks__modal-body {
  padding: 28px 28px 22px;
}

.setmod-thanks__modal-close.modal-bounce-shell__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(9, 16, 28, 0.88);
  color: #f3f6fb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0 16px 30px rgba(4, 8, 16, 0.28);
  transition: transform 0.3s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.setmod-thanks__modal-close.modal-bounce-shell__close:hover,
.setmod-thanks__modal-close.modal-bounce-shell__close:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(12, 20, 34, 0.96);
  transform: scale(1.04);
  box-shadow: 0 18px 36px rgba(4, 8, 16, 0.34);
}

.setmod-thanks__modal-close .request-sidebar__close-line {
  position: absolute;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: #f4f7fb;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.setmod-thanks__modal-close .request-sidebar__close-line--left {
  transform: rotate(45deg);
}

.setmod-thanks__modal-close .request-sidebar__close-line--right {
  transform: rotate(-45deg);
}

.setmod-thanks__modal-close.modal-bounce-shell__close:hover .request-sidebar__close-line--left,
.setmod-thanks__modal-close.modal-bounce-shell__close:focus-visible .request-sidebar__close-line--left {
  transform: rotate(-45deg);
}

.setmod-thanks__modal-close.modal-bounce-shell__close:hover .request-sidebar__close-line--right,
.setmod-thanks__modal-close.modal-bounce-shell__close:focus-visible .request-sidebar__close-line--right {
  transform: rotate(45deg);
}

.setmod-thanks__modal-close.modal-bounce-shell__close:hover .request-sidebar__close-line,
.setmod-thanks__modal-close.modal-bounce-shell__close:focus-visible .request-sidebar__close-line {
  background: #7fb0ff;
}

.setmod-thanks__modal-title {
  margin: 0 0 16px;
  padding-right: 72px;
  color: #f3f6fb;
  font-size: 20px;
}

.setmod-thanks__modal-frame {
  display: flex;
  justify-content: center;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.setmod-thanks__modal-image {
  width: auto;
  max-width: 100%;
  max-height: min(62vh, 720px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: contain;
  box-shadow: 0 18px 36px rgba(3, 8, 16, 0.24);
}

@keyframes setmod-thanks-bounce-in {
  0%,
  20%,
  40%,
  60%,
  80%,
  100% {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }

  20% {
    transform: scale3d(1.08, 1.08, 1.08);
  }

  40% {
    transform: scale3d(0.92, 0.92, 0.92);
  }

  60% {
    opacity: 1;
    transform: scale3d(1.02, 1.02, 1.02);
  }

  80% {
    transform: scale3d(0.98, 0.98, 0.98);
  }

  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

@keyframes setmod-thanks-bounce-out-down {
  20% {
    transform: translate3d(0, 10px, 0);
  }

  40%,
  45% {
    opacity: 1;
    transform: translate3d(0, -20px, 0);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, 2000px, 0);
  }
}

@media (max-width: 1100px) {
  .setmod-thanks__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .setmod-thanks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .setmod-thanks {
    padding: 44px 0;
    overflow: hidden;
  }

  .setmod-thanks__shell {
    width: min(calc(100% - 28px), 1240px);
  }

  .setmod-thanks__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .setmod-thanks__card {
    border-radius: 22px;
  }
}

@media (max-width: 560px) {
  .setmod-thanks__grid {
    grid-template-columns: 1fr;
  }

  .setmod-thanks__title {
    font-size: 28px;
  }

  .setmod-thanks__subtitle {
    font-size: 15px;
  }

  .setmod-thanks__modal {
    padding: 12px;
  }

  .setmod-thanks__modal-card {
    width: min(calc(100% - 16px), 500px);
    max-height: calc(100vh - 16px);
    border-radius: 22px;
  }

  .setmod-thanks__modal-content {
    max-height: calc(100vh - 16px);
  }

  .setmod-thanks__modal-body {
    padding: 22px 16px 18px;
  }

  .setmod-thanks__modal-close.modal-bounce-shell__close {
    top: 10px;
    right: 10px;
    width: 46px;
    height: 46px;
  }

  .setmod-thanks__modal-title {
    padding-right: 54px;
  }
}
