/* ==========================================================
   x99 GTA6 style — extended to the homepage .myvide hero
   APPEND THIS BLOCK to the end of static/css/x99-gta6.css
   (must load after 08-homepage.css and 88-tmp.css)
   ========================================================== */

:root {
  --x99-palms: 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");
}

/* Background: same neon-sunset palette as the header, run top→bottom */
body.homepage #contentskip .myvide {
  isolation: isolate;
  background:
    radial-gradient(70% 90% at 50% 105%, rgba(255,190,90,.55) 0%, rgba(255,190,90,0) 62%),
    linear-gradient(180deg,
      rgba(58,14,92,1)    0%,
      rgba(196,33,124,.95) 34%,
      rgba(255,70,140,.92) 56%,
      rgba(255,140,66,.92) 78%,
      rgba(255,190,90,.95) 100%) !important;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #ff3d9a, #ffb347, #2de2e6, #ff3d9a) 1 / 1 / 0 stretch;
  box-shadow: 0 4px 24px rgba(255,61,154,.35);
}

/* Replace the faint navy ring/dots with the header's palm silhouettes */
body.homepage #contentskip .myvide::before { display: none; }
body.homepage #contentskip .myvide::after {
  content: "";
  display: block;
  position: absolute;
  left: 0; right: 0; bottom: 0; top: auto;
  width: auto; height: 46%;
  border: 0; border-radius: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(0deg, rgba(45,226,230,.18), rgba(45,226,230,0) 45%),
    var(--x99-palms);
  background-position: 0 0, 120px bottom;
  background-size: auto, auto 100%;
  background-repeat: no-repeat, repeat-x;
  opacity: .9;
}

/* Keep the image panel in front of the palms */
body.homepage #contentskip .myvide > div:first-child { z-index: 1 !important; }

/* Headline + buttons readable on the dark gradient */
body.homepage #contentskip .myvide .videtext h2 {
  background: linear-gradient(90deg, #fff 0%, #ffe29a 55%, #2de2e6 100%) 0 0 / cover text;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 14px rgba(255,61,154,.55));
}
body.homepage #contentskip .myvide .videtext p { color: #fff; }
@media (max-width: 768px) {
  body.homepage #contentskip .myvide::after { height: 38%; opacity: .55; }
}

/* ==========================================================
   Header: transparent at the very top (hero design shows
   through); GTA6 header design appears once the page scrolls
   (body.hero-scrolled is toggled by the existing page script)
   ========================================================== */
:root { --x99-hdr-h: 88px; }   /* keep equal to the header height */

body.homepage:not(.hero-scrolled) header,
body.homepage:not(.hero-scrolled) header.mobile {
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border-image: none !important;
  border-bottom-color: transparent !important;
}
body.homepage:not(.hero-scrolled) header::after { opacity: 0 !important; }
header::after { transition: opacity .35s ease; }
header { transition: box-shadow .35s ease; }

/* Pull the hero up underneath the sticky header */
body.homepage #contentskip .myvide {
  margin-top: calc(-1 * var(--x99-hdr-h));
  padding-top: calc(clamp(20px, 3vw, 48px) + var(--x99-hdr-h));
  min-height: calc(clamp(480px, -120px + 100svh, 700px) + var(--x99-hdr-h));
}
@media (min-width: 901px) {
  body.homepage #contentskip .myvide > div:first-child {
    top: calc(clamp(24px, 3vw, 48px) + var(--x99-hdr-h)) !important;
  }
}
