/* 20 November: one continuous, extremely restrained colour field between
   the Platform Map banner, the charcoal chapter menu, the DD-purple details,
   the demo and the already-approved About gradient. Homepage only. */
@media(min-width:761px){
  html:not(.dd-pm-physical-mobile) #main-page #platform-map{
    position:relative;
    isolation:isolate;
    background:
      radial-gradient(ellipse 9% 62% at 70% 57%,rgba(143,81,208,.085),transparent 92%),
      linear-gradient(180deg,rgba(38,24,55,.15) 0%,rgba(13,10,19,.57) 18%,rgba(12,9,18,.79) 68%,rgba(8,7,12,.1) 100%)!important;
    box-shadow:none!important;
    border:0!important;
    margin-bottom:0!important;
  }
  /* One-sixth viewport-wide violet thread, not a full-width saturated block. */
  html:not(.dd-pm-physical-mobile) #main-page #platform-map::before{
    content:"";display:block;position:absolute;
    z-index:-1;pointer-events:none;
    left:57%;width:clamp(130px,16.67vw,340px);
    top:clamp(135px,16vh,200px);bottom:-135px;
    background:linear-gradient(180deg,
      rgba(144,90,204,.12) 0%,
      rgba(127,71,188,.11) 36%,
      rgba(132,78,186,.09) 67%,
      rgba(125,67,173,.065) 85%,
      transparent 100%);
    filter:blur(46px);
    -webkit-mask-image:linear-gradient(180deg,transparent,#000 14%,#000 78%,transparent 100%);
    mask-image:linear-gradient(180deg,transparent,#000 14%,#000 78%,transparent 100%);
  }
  /* The left menu continues the banner down into almost black. */
  html:not(.dd-pm-physical-mobile) #main-page #platform-map .dd-pm-split-menu{
    border:0!important;
    background:linear-gradient(180deg,
      rgba(35,23,50,.77) 0%,
      rgba(19,15,30,.95) 17%,
      rgba(11,10,17,.98) 44%,
      #08080d 100%)!important;
    box-shadow:none!important;
  }
  /* The details remain DD purple, shaded softly into the surrounding field.
     Keep its cards, independent scroll and changing chapter treatments. */
  html:not(.dd-pm-physical-mobile) #main-page #platform-map .dd-pm-split-detail{
    border:0!important;
    background:
      radial-gradient(ellipse 79% 83% at 73% 25%,rgba(136,77,198,.20),transparent 78%),
      linear-gradient(156deg,#2d1b43 0%,#261833 36%,#1c1428 73%,rgba(24,17,33,.87) 100%)!important;
    box-shadow:none!important;
  }
  html:not(.dd-pm-physical-mobile) #main-page #platform-map .dd-pm-split-grid{
    position:relative;isolation:isolate;
    background:linear-gradient(90deg,
      rgba(11,10,18,.19) 0%,
      rgba(12,10,20,.14) 31%,
      rgba(53,31,76,.09) 49%,
      rgba(71,37,101,.07) 68%,
      transparent 100%);
    border-radius:10px;
  }
  html:not(.dd-pm-physical-mobile) #main-page #platform-map .dd-pm-demo{
    position:relative;
    border-top-color:rgba(180,139,215,.11)!important;
    background:radial-gradient(ellipse 16% 75% at 68% 30%,rgba(119,69,168,.085),transparent 88%);
  }
  html:not(.dd-pm-physical-mobile) #main-page #platform-map .dd-pm-demo-side{
    position:relative;
  }
  html:not(.dd-pm-physical-mobile) #main-page #platform-map .dd-pm-demo-side>div{
    background:linear-gradient(155deg,rgba(41,29,58,.74),rgba(16,14,25,.89))!important;
  }
}
/* The straight seam in the annotated image was the TOP EDGE of this
   oversized translucent pseudo-element. Fade that edge out: never paint a
   crisp rectangle under the demo information cards again. */
#main-page main > .dd-home-about::before{
  -webkit-mask-image:linear-gradient(to bottom,
    transparent 0%,rgba(0,0,0,.35) 14%,#000 31%,#000 71%,transparent 100%);
  mask-image:linear-gradient(to bottom,
    transparent 0%,rgba(0,0,0,.35) 14%,#000 31%,#000 71%,transparent 100%);
}
/* The About background itself keeps its approved gradient and typography.
   The overlap is subpixel to avoid a 1px horizontal line at zoom levels. */
#main-page main > .dd-home-about{
  margin-top:-1px!important;
}
@media(max-width:760px){
  /* No desktop ribbons behind Companion; retain clear touch targets. */
  #main-page main > .dd-home-about::before{
    -webkit-mask-image:linear-gradient(to bottom,transparent,#000 32%,#000 70%,transparent);
    mask-image:linear-gradient(to bottom,transparent,#000 32%,#000 70%,transparent);
  }
}
