:root {
  --pf-violet: #3b145a;
  --pf-violet-soft: #68477d;
  --pf-violet-wash: #f4effa;
  --pf-rose: #eb9ea9;
  --pf-rose-deep: #e2818e;
  --pf-blush: #ffeef0;
  --pf-ink: #2d3436;
  --pf-muted: #636e72;
  --pf-blue: #a4bfeb;
  --pf-mint: #b3eeb2;
  --pf-gold: #f6d52c;
}

body {
  color: var(--pf-ink);
  background: #fff4f6 !important;
}

body.bg-gradient-to-br {
  background: #fff4f6 !important;
  background-image: none !important;
}

#cta-banner {
  display: flex !important;
  background: #db2777 !important;
  background-image: none !important;
}

nav.fixed {
  top: 0 !important;
  border-color: rgba(59, 20, 90, 0.1) !important;
  background: #fffdfd !important;
  box-shadow: 0 10px 28px rgba(59, 20, 90, 0.05) !important;
}

nav[aria-label="Hauptnavigation"] a:not([class*="bg-gradient"]):not([class*="bg-pink"]):not([class*="rounded-full"]),
nav[aria-label="Hauptnavigation"] button {
  color: var(--pf-violet-soft) !important;
}

/* The primary call to action keeps sufficient contrast in the shared navigation. */
.pf-site-header nav[aria-label="Hauptnavigation"] .pf-site-cta,
.pf-site-header .pf-mobile-menu .pf-site-cta {
  color: #fff !important;
}

nav[aria-label="Hauptnavigation"] a:hover,
nav[aria-label="Hauptnavigation"] button:hover {
  color: var(--pf-violet) !important;
}

.site-nav-group {
  position: relative;
}

.site-nav-group summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  color: var(--pf-violet-soft);
  font-size: inherit;
  font-weight: 500;
  list-style: none;
}

.site-nav-group summary::-webkit-details-marker {
  display: none;
}

.site-nav-group[open] summary {
  color: var(--pf-violet);
}

.site-nav-group summary span {
  transition: transform 0.2s ease;
}

.site-nav-group[open] summary span {
  transform: rotate(180deg);
}

.site-nav-dropdown {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 50%;
  display: none;
  min-width: 10.5rem;
  padding: 0.5rem;
  border: 1px solid rgba(59, 20, 90, 0.13);
  border-radius: 1rem;
  background: #fffdfd;
  box-shadow: 0 18px 38px rgba(59, 20, 90, 0.13);
  transform: translateX(-50%);
}

.site-nav-group[open] > .site-nav-dropdown {
  display: grid;
  gap: 0.15rem;
}

nav[aria-label="Hauptnavigation"] .site-nav-dropdown a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  color: var(--pf-violet-soft) !important;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

nav[aria-label="Hauptnavigation"] .site-nav-dropdown a:hover,
nav[aria-label="Hauptnavigation"] .site-nav-dropdown a[aria-current="page"] {
  color: var(--pf-violet) !important;
  background: var(--pf-violet-wash);
}

nav[aria-label="Hauptnavigation"] a[class*="bg-gradient"],
main a[class*="bg-gradient"]:not(h1):not(h2):not(h3),
main button[class*="bg-gradient"]:not(h1):not(h2):not(h3) {
  background: #db2777 !important;
  background-image: none !important;
  box-shadow: 0 14px 28px rgba(219, 39, 119, 0.25) !important;
}

nav a[class*="bg-gradient"],
main a[class*="bg-gradient"]:not(h1):not(h2):not(h3),
main button[class*="bg-gradient"]:not(h1):not(h2):not(h3) {
  background-color: #db2777 !important;
  background-image: none !important;
}

main {
  padding-top: 8.5rem !important;
}

main h1[class*="bg-gradient"],
main h2[class*="bg-gradient"] {
  background: none !important;
  background-image: none !important;
  color: var(--pf-violet) !important;
  -webkit-text-fill-color: var(--pf-violet) !important;
}

main h1,
main h2,
main h3 {
  color: var(--pf-violet);
  letter-spacing: -0.045em;
}

/* Legal pages also receive layout rules at runtime. Keep the legal typography
   solid and readable even if an older cached layout script is present. */
.legal-page main h1,
.legal-page main h2,
.legal-page main h3 {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: var(--pf-violet) !important;
  color: var(--pf-violet) !important;
  font-family: inherit !important;
}

.legal-page main p,
.legal-page main li {
  color: #4b5563 !important;
}

main [class*="text-pink-"],
main [class*="text-purple-"] {
  color: var(--pf-violet) !important;
}

main [class*="bg-pink-50"],
main [class*="bg-purple-50"] {
  background-color: #fff7fa !important;
}

main [class*="bg-gradient"]:not(h1):not(h2):not(h3) {
  background-color: #fff7fa !important;
  background-image: none !important;
}

main a[class*="bg-gradient"],
main button[class*="bg-gradient"] {
  background-color: #db2777 !important;
  color: #fff !important;
}

/* Primary actions use the same high-contrast treatment as the Download button. */
main a.rounded-full[class*="bg-gradient"],
main button.rounded-full[class*="bg-gradient"] {
  background-color: #db2777 !important;
  background-image: none !important;
  color: #fff !important;
}

main .game-cta {
  background: #fffdfd !important;
  background-image: none !important;
  border: 1px solid rgba(59, 20, 90, 0.14) !important;
  color: #3b145a !important;
}

main .game-cta > p:first-of-type {
  color: #db2777 !important;
}

main .game-cta > h2 {
  color: #3b145a !important;
}

main .game-cta > p:last-of-type {
  color: #5d5967 !important;
}

main .wealth-cta {
  background: rgba(255, 255, 255, 0.88) !important;
  background-image: none !important;
  color: var(--pf-violet) !important;
  border: 1px solid rgba(111, 61, 153, 0.16);
}

.wealth-hero {
  display: grid;
  gap: 1.5rem;
}

.wealth-hero-copy,
.wealth-hero-visual {
  min-width: 0;
}

.wealth-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.wealth-hero-visual {
  display: flex;
  min-height: 17rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.5rem;
}

.wealth-hero-visual img {
  max-height: 16rem;
  transform: scaleX(-1);
}

.damian-portrait {
  object-position: center 35%;
  transform: scale(0.88);
}

.group:hover .damian-portrait {
  transform: scale(0.93);
}

.contact-page main,
.support-page main,
.career-page main {
  background: #fff4f6 !important;
  background-image: none !important;
}

.contact-page .animate-float-slow,
.support-page .animate-float-slow,
.career-page .animate-float-slow,
.career-page .animate-float {
  display: none !important;
}

.wealth-hero-section {
  padding-top: 1.75rem !important;
  padding-bottom: 2.75rem !important;
}

main#main-content:has(.wealth-hero) {
  padding-top: 5rem !important;
}

@media (min-width: 1024px) {
  .wealth-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    align-items: stretch;
    gap: 2rem;
  }

  .wealth-hero-visual {
    min-height: 24rem;
  }

  .wealth-hero-visual img {
    max-height: 21rem;
  }
}

main [class*="rounded-full"][class*="bg-gradient"] {
  background-color: var(--pf-rose) !important;
  color: var(--pf-violet) !important;
}

main .animate-float-slow {
  background-color: var(--pf-rose) !important;
  background-image: none !important;
}

main a[class*="bg-gradient"],
main button[class*="bg-gradient"] {
  background-color: #db2777 !important;
  color: #fff !important;
}

main [class*="border-pink"],
main [class*="border-purple"] {
  border-color: rgba(59, 20, 90, 0.13) !important;
}

main [class*="shadow-pink"],
main [class*="shadow-purple"] {
  --tw-shadow-color: rgba(59, 20, 90, 0.13) !important;
}

main .rounded-2xl,
main .rounded-3xl {
  border-color: rgba(59, 20, 90, 0.1);
}

main input,
main textarea,
main select {
  border-color: rgba(59, 20, 90, 0.18) !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

main input:focus,
main textarea:focus,
main select:focus {
  border-color: var(--pf-violet) !important;
  box-shadow: 0 0 0 3px rgba(59, 20, 90, 0.1) !important;
}

footer {
  border-color: rgba(59, 20, 90, 0.1) !important;
  background: #fff8f9 !important;
}

footer a:hover {
  color: var(--pf-violet) !important;
}

.playfolio-global-footer {
  padding: 54px 24px 26px;
  background: #fff9fa !important;
}

.playfolio-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.35fr);
  gap: 42px 70px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.playfolio-footer-brand img {
  display: block;
  width: auto;
  height: 45px;
}

.playfolio-footer-brand p {
  max-width: 250px;
  margin: 16px 0 0;
  color: var(--pf-violet-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.playfolio-footer-links {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 34px;
}

.playfolio-footer-links nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 9px 18px;
  padding: 18px;
  border: 1px solid rgba(59, 20, 90, 0.11);
  border-radius: 18px;
  background: #fff;
}

.playfolio-footer-links strong {
  display: block;
  flex-basis: 100%;
  margin-bottom: 5px;
  color: var(--pf-violet);
  font-size: 0.9rem;
}

.playfolio-footer-links a,
.playfolio-footer-links button {
  padding: 0;
  border: 0;
  color: var(--pf-violet-soft);
  background: transparent;
  font: inherit;
  font-size: 0.83rem;
  text-align: left;
  text-decoration: none;
}

.playfolio-footer-links button {
  cursor: pointer;
}

.playfolio-footer-copy {
  grid-column: 1 / -1;
  margin: -12px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(59, 20, 90, 0.12);
  color: var(--pf-muted);
  font-size: 0.78rem;
}

@media (max-width: 1023px) {
  #mobile-menu .site-nav-group--mobile {
    display: block;
    margin: 0 1rem;
  }

  #mobile-menu .site-nav-group--mobile summary {
    padding: 0.5rem 0;
  }

  #mobile-menu .site-nav-group--mobile .site-nav-dropdown {
    position: static;
    min-width: 0;
    margin: 0.25rem 0 0.5rem;
    transform: none;
  }
}

@media (max-width: 1023px) {
  main {
    padding-top: 7.5rem !important;
  }

  .playfolio-footer-inner,
  .playfolio-footer-links {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Shared footer: mirrors the footer on the new home page. */
.playfolio-global-footer.home-footer {
  padding: 55px 24px 30px;
  background: linear-gradient(180deg, #fff0f4, #fff8f9) !important;
}

.playfolio-global-footer .home-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(1160px, 100%);
  margin: 0 auto;
  text-align: center;
}

.playfolio-global-footer .home-footer-logo {
  display: block;
  width: auto;
  height: 64px;
}

.playfolio-global-footer .home-footer-social {
  display: flex;
  gap: 16px;
  margin: 27px 0;
}

.playfolio-global-footer .home-footer-social a {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(219, 39, 119, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--pf-violet-soft);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.playfolio-global-footer .home-footer-social a:hover {
  transform: translateY(-3px);
  background: #db2777;
  color: #fff !important;
}

.playfolio-global-footer .home-footer-social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.playfolio-global-footer .home-footer-social a:nth-child(2) svg {
  fill: currentColor;
  stroke: none;
}

.playfolio-global-footer .home-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 13px;
  max-width: 790px;
}

.playfolio-global-footer .home-footer-legal a,
.playfolio-global-footer .home-footer-legal button {
  padding: 0;
  border: 0;
  color: var(--pf-violet-soft);
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  text-decoration: none;
}

.playfolio-global-footer .home-footer-legal button { cursor: pointer; }

.playfolio-global-footer .home-footer-legal a:hover,
.playfolio-global-footer .home-footer-legal button:hover { color: #db2777 !important; }

.playfolio-global-footer .home-footer-copy {
  width: 100%;
  margin: 12px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(219, 39, 119, 0.15);
  color: var(--pf-muted);
  font-size: 0.78rem;
}

.playfolio-global-footer .home-footer-risk {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--pf-muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

@media (max-width: 840px) {
  .playfolio-global-footer.home-footer { padding: 43px 16px 25px; }
  .playfolio-global-footer .home-footer-logo { height: 54px; }
  .playfolio-global-footer .home-footer-social { margin: 22px 0; }
}
