html,
body,
body.custom-bg {
  background-color: #5a2499 !important;
  background-image:
    radial-gradient(72% 40% at 16% 8%, rgba(196, 146, 250, 0.32) 0%, rgba(120, 70, 196, 0.16) 36%, rgba(0, 0, 0, 0) 74%),
    radial-gradient(68% 42% at 88% 12%, rgba(244, 128, 206, 0.24) 0%, rgba(154, 56, 150, 0.14) 38%, rgba(0, 0, 0, 0) 76%),
    linear-gradient(180deg, #200838 0%, #2f0f56 18%, #5e2b97 38%, #7a37ad 62%, #9448b4 82%, #a55cad 100%) !important;
  background-attachment: fixed !important;
  overflow-x: hidden;
}

body {
  position: relative;
}

.wrap {
  position: relative;
  z-index: 2;
}

/* Remove heavy dark veil and keep contents floating on the gradient */
.wrap {
  background: transparent !important;
  box-shadow: none !important;
}

/* Header */
.public-head,
.public-head.public-head--border {
  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(10px);
  border-top: 4px solid #8a4dff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38) !important;
}

/* Menu/buttons/cards: semi-transparent glass style */
.chip-link,
.push-card-mini,
.user-banner,
.login-card,
.card:not(#pushGuideCard) {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  box-shadow: 0 8px 24px rgba(20, 8, 40, 0.2) !important;
  backdrop-filter: blur(8px);
}

#pushGuideCard,
#pushGuideCard .env-hint,
#pushGuideCard #envHintInline,
#pushGuideCard #envHintInlineBody,
#pushGuideCard #pushControls,
#pushGuideCard .env-hint__block {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.push-thumb {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Menu titles/readability */
.title-label,
.push-title-mini,
.push-meta-mini,
.push-body,
.info-section,
.user-banner .label,
.user-banner .name,
.chip-link,
.push-card-arrow {
  color: #ffffff !important;
}

/* Push guide title should follow theme text color, not forced white */
#pushGuideCard .info-top h1,
#pushGuideCard .info-top h2,
#pushGuideCard .info-top h3,
#pushGuideCard .info-top h4,
#pushGuideCard .info-top h5,
#pushGuideCard .info-lead h1,
#pushGuideCard .info-lead h2,
#pushGuideCard .info-lead h3,
#pushGuideCard .info-lead h4,
#pushGuideCard .info-lead h5 {
  color: var(--text) !important;
}
#pushGuideCard .info-top,
#pushGuideCard .info-lead {
  color: var(--text) !important;
}
#pushGuideCard .info-top p,
#pushGuideCard .info-lead p {
  color: color-mix(in srgb, var(--text) 65%, #9aa3a6) !important;
}
#pushGuideCard .info-lead {
  text-align: left !important;
}
#pushGuideCard #pushBtn {
  margin-top: 20px !important;
}

/* Footer links/text on custom top page */
.public-foot a,
.public-foot .foot-note,
.public-foot {
  color: #ffffff !important;
}

.custom-test-section {
  margin: 10px 0;
}

.custom-test-section__inner {
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
}

.custom-test-section__count {
  letter-spacing: 0.06em;
}

.custom-test-section__tiny {
  font-size: 12px;
  line-height: 1.35;
}

.custom-test-section--1 .custom-test-section__inner {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
}

.custom-test-section--1 .custom-test-section__inner::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
  transform: translateX(-50%);
}

.custom-test-section--1 .custom-test-section__col {
  padding: 0 14px;
  text-align: center;
  font-size: 10px;
  line-height: 1.4;
}

.custom-test-section__split-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.custom-test-section__split-text {
  text-align: center;
  line-height: 1.6;
  font-size: inherit;
}

.custom-test-section__split-text > div {
  white-space: nowrap;
}

.custom-test-section__yt-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.custom-test-section__yt-line i {
  font-size: 1.1em;
  line-height: 1;
  color: #ffffff;
}

.custom-test-section__rare-links {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.custom-test-section__rare-links a {
  display: block;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.35;
  word-break: break-all;
  transform: translateZ(0) scale(1);
  transition: transform 220ms cubic-bezier(0.22, 0.78, 0.22, 1), box-shadow 220ms ease, background-color 220ms ease;
  box-shadow: 0 4px 12px rgba(32, 12, 64, 0.18);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.custom-test-section__rare-links a.custom-tap-ease-card {
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease, background-color 220ms ease;
}

.custom-test-section__rare-links a:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 10px 20px rgba(28, 10, 58, 0.22);
  background: rgba(255, 255, 255, 0.2);
}

.custom-test-section__rare-links a:active {
  transform: scale(0.955);
  box-shadow: 0 3px 8px rgba(28, 10, 58, 0.14);
}

@media (max-width: 640px) {
  .custom-test-section__tiny {
    font-size: 9px;
  }
  .custom-test-section--1 .custom-test-section__col {
    font-size: 9px;
    line-height: 1.35;
  }
  .custom-test-section__split-text {
    font-size: inherit;
  }
  .custom-test-section__rare-links a {
    font-size: 10px;
  }
}
