.games-index-hero p {
  max-width: 1180px;
}

.game-jump-grid.is-preview {
  position: relative;
  max-height: 364px;
  overflow: hidden;
  margin-top: 6px;
  padding-top: 8px;
}

.game-jump-grid.is-preview::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 92px;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 13, 31, 0), var(--bg));
}

.compact-library-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.compact-library-hero p {
  font-size: 17px;
}

.library-preview-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.library-preview-actions .wide-library-cta {
  width: 100%;
}

.filter-panel {
  width: min(100%, 1180px);
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.segmented-filter {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 6px;
}

.access-filter-control {
  width: auto;
  min-width: 0;
  padding: 0 10px;
}

.segmented-filter button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
}

.segmented-filter button.is-active {
  border-color: rgba(34, 211, 238, 0.62);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(34, 211, 238, 0.64));
  color: #fff;
}

select option {
  background: #f8fafc;
  color: #06152c;
}

.library-promo-gallery .homepage-gallery-card img.homepage-gallery-image-free {
  transform: translate(16px, 18px) scale(1.2075);
}

.library-promo-gallery .homepage-gallery-card:hover img.homepage-gallery-image-free {
  transform: translate(16px, 15px) scale(1.26);
}

.library-promo-gallery .homepage-gallery-card img.homepage-gallery-image-library {
  transform: translate(0, 8px) scale(0.75075);
}

.library-promo-gallery .homepage-gallery-card:hover img.homepage-gallery-image-library {
  transform: translate(0, 5px) scale(0.8085);
}

.summary-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.summary-label svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: var(--blue-2);
}

a.help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.thank-you-page {
  min-height: 100vh;
}

.thank-you-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  align-content: center;
  gap: 28px;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.thank-you-brand {
  justify-self: start;
}

.thank-you-panel {
  display: grid;
  gap: 22px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.12), transparent 38%),
    rgba(7, 26, 53, 0.92);
  box-shadow: var(--shadow);
  padding: clamp(26px, 5vw, 56px);
}

.thank-you-panel h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.02;
}

.thank-you-panel > p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
}

.thank-you-primary {
  width: min(100%, 560px);
  min-height: 82px;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 22px 54px rgba(37, 99, 235, 0.36), 0 0 34px rgba(34, 211, 238, 0.22);
}

.thank-you-activation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 28px;
  padding: 26px 0;
  border-top: 1px solid rgba(96, 165, 250, 0.16);
  border-bottom: 1px solid rgba(96, 165, 250, 0.16);
}

.thank-you-activation[hidden] {
  display: none;
}

.thank-you-warning {
  flex: 1 0 100%;
  margin: 0;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
  padding: 14px 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.thank-you-secondary {
  min-height: 58px;
  padding: 0 22px;
  font-weight: 800;
}

.thank-you-steps {
  display: grid;
  gap: 14px;
}

.thank-you-steps div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px 14px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 18px;
}

.thank-you-steps span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-weight: 900;
}

.thank-you-steps strong {
  align-self: center;
  font-size: 17px;
}

.thank-you-steps p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.thank-you-discord {
  display: inline-flex;
  width: 100%;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(125, 211, 252, 0.5);
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.12);
  color: #eff6ff;
  padding: 12px 20px;
}

.thank-you-discord svg {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.thank-you-discord span {
  display: grid;
  gap: 1px;
}

.thank-you-discord strong {
  font-size: 18px;
  line-height: 1.05;
}

.thank-you-discord em {
  color: var(--blue-2);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 760px) {
  .thank-you-steps {
    grid-template-columns: 1fr;
  }
}

.game-script-intro p {
  max-width: none;
}

.script-related-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(34, 211, 238, 0.46);
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.12);
  color: #ecfeff;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 900;
}

.script-related-button svg {
  width: 20px;
  height: 20px;
  transform: rotate(-90deg);
}

.discord-pill svg,
.ghost-button svg,
.account-button svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.account-button {
  border-color: rgba(125, 211, 252, 0.52);
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  color: #eff6ff;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.08);
}
