/* ===== GTA VI "Vice City sunset" header — scattered palms ===== */
header,
body.headerimage header,
body.homepage header {
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 140% at 50% 120%, rgba(255, 190, 90, .55) 0%, rgba(255, 190, 90, 0) 60%),
    linear-gradient(100deg,
      rgba(58, 14, 92, .88)   0%,
      rgba(196, 33, 124, .82) 28%,
      rgba(255, 70, 140, .80) 46%,
      rgba(255, 140, 66, .80) 62%,
      rgba(214, 45, 120, .82) 80%,
      rgba(58, 14, 92, .88)   100%);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #ff3d9a, #ffb347, #2de2e6, #ff3d9a) 1;
  box-shadow: 0 4px 24px rgba(255, 61, 154, .35);
}

/* palm trees scattered across the whole width */
header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(45, 226, 230, .12), rgba(45, 226, 230, 0) 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='xMinYMax meet'%3E%3Cdefs%3E%3Cg id='k'%3E%3Cpath d='M14 38Q-8 22-30 34Q-8 28 14 40Z'/%3E%3Cpath d='M14 38Q-2 12-22 10Q-4 18 13 39Z'/%3E%3Cpath d='M14 38Q20 8 40 2Q24 16 15 39Z'/%3E%3Cpath d='M14 38Q40 20 62 30Q40 26 15 40Z'/%3E%3Cpath d='M14 38Q36 34 48 56Q34 40 14 40Z'/%3E%3Cpath d='M14 38Q-6 40-16 60Q-2 44 14 40Z'/%3E%3Ccircle cx='12' cy='42' r='2.6'/%3E%3Ccircle cx='17' cy='43' r='2.4'/%3E%3C/g%3E%3Cg id='a'%3E%3Cpath d='M0 100C2 78 6 58 14 38' fill='none' stroke='%231a0628' stroke-width='4.5' stroke-linecap='round'/%3E%3Cuse href='%23k' transform='translate(14 38) rotate(0) scale(1) translate(-14 -38)'/%3E%3C/g%3E%3Cg id='b'%3E%3Cpath d='M0 100C4 80 18 62 36 48' fill='none' stroke='%231a0628' stroke-width='4.5' stroke-linecap='round'/%3E%3Cuse href='%23k' transform='translate(36 48) rotate(12) scale(1) translate(-14 -38)'/%3E%3C/g%3E%3Cg id='c'%3E%3Cpath d='M0 100C7 80-4 60-14 36' fill='none' stroke='%231a0628' stroke-width='4' stroke-linecap='round'/%3E%3Cuse href='%23k' transform='translate(-14 36) rotate(-10) scale(1) translate(-14 -38)'/%3E%3C/g%3E%3Cg id='d'%3E%3Cpath d='M0 100C-3 72 1 42 12 18' fill='none' stroke='%231a0628' stroke-width='4' stroke-linecap='round'/%3E%3Cuse href='%23k' transform='translate(12 18) rotate(4) scale(0.9) translate(-14 -38)'/%3E%3C/g%3E%3Cg id='e'%3E%3Cpath d='M0 100C2 80 10 62 22 42' fill='none' stroke='%231a0628' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M0 100C-2 84-10 70-20 56' fill='none' stroke='%231a0628' stroke-width='3.5' stroke-linecap='round'/%3E%3Cuse href='%23k' transform='translate(22 42) rotate(8) scale(0.85) translate(-14 -38)'/%3E%3Cuse href='%23k' transform='translate(-20 56) rotate(-12) scale(0.7) translate(-14 -38)'/%3E%3C/g%3E%3Cg id='f'%3E%3Cpath d='M0 100C10 90 22 80 26 62C28 54 27 48 24 40' fill='none' stroke='%231a0628' stroke-width='4' stroke-linecap='round'/%3E%3Cuse href='%23k' transform='translate(24 40) rotate(-6) scale(1) translate(-14 -38)'/%3E%3C/g%3E%3C/defs%3E%3Cg fill='%231a0628'%3E%3Cuse href='%23a' transform='translate(30 10) scale(0.9 0.9)'/%3E%3Cuse href='%23c' transform='translate(130 25) scale(0.75 0.75)'/%3E%3Cuse href='%23b' transform='translate(200 40) scale(-0.6 0.6)'/%3E%3Cuse href='%23e' transform='translate(300 10) scale(0.9 0.9)'/%3E%3Cuse href='%23d' transform='translate(400 20) scale(-0.8 0.8)'/%3E%3Cuse href='%23f' transform='translate(470 35) scale(0.65 0.65)'/%3E%3Cuse href='%23a' transform='translate(560 45) scale(-0.55 0.55)'/%3E%3Cuse href='%23b' transform='translate(640 5) scale(0.95 0.95)'/%3E%3Cuse href='%23c' transform='translate(760 30) scale(-0.7 0.7)'/%3E%3Cuse href='%23e' transform='translate(850 30) scale(-0.7 0.7)'/%3E%3Cuse href='%23d' transform='translate(950 5) scale(0.95 0.95)'/%3E%3Cuse href='%23f' transform='translate(1040 20) scale(-0.8 0.8)'/%3E%3Cuse href='%23a' transform='translate(1130 30) scale(0.7 0.7)'/%3E%3C/g%3E%3C/svg%3E") 120px bottom / auto 100% repeat-x;
  opacity: .8;
}

/* phones: tone it down so the menu buttons stay readable */
@media (max-width: 768px) {
  header::after { opacity: .55; }
}

/* x99 override: homepage header stays themed: 08-homepage.css turns it white until the page is scrolled; a themed header must look the same at the top of the page */
body.homepage:not(.hero-scrolled) header.mobile {
  background:
    radial-gradient(ellipse 60% 140% at 50% 120%, rgba(255, 190, 90, .55) 0%, rgba(255, 190, 90, 0) 60%),
    linear-gradient(100deg,
      rgba(58, 14, 92, .88)   0%,
      rgba(196, 33, 124, .82) 28%,
      rgba(255, 70, 140, .80) 46%,
      rgba(255, 140, 66, .80) 62%,
      rgba(214, 45, 120, .82) 80%,
      rgba(58, 14, 92, .88)   100%) !important;
  box-shadow: 0 4px 24px rgba(255, 61, 154, .35) !important;
}

body.homepage:not(.hero-scrolled) header.mobile .mainlogo a.logopair .logo-white {
  opacity: 1;
}

body.homepage:not(.hero-scrolled) header.mobile .mainlogo a.logopair .logo-navy {
  opacity: 0;
}

body.homepage:not(.hero-scrolled) header.mobile * {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .25) !important;
}

body.homepage:not(.hero-scrolled) header.mobile .fsm-root {
  --fsm-trigger-bg: #fff;
  --fsm-trigger-fg: #024187;
}
