/*
 * D&D 5R — Full-bleed watercolor Hero review overlay, version 4
 * INTEGRATION CANDIDATE ONLY. Add AFTER existing 3 CSS imports on home.html.
 * No changes to Creator State, Nav routes, JSON/PDF/FVTT, class icons or 5RTools.
 * The original source illustration is independent WebP; CSS modifies only its display.
 */
body.wcs-demo.wcs-home {
  --wcs-v4-art-saturation: .82;
}
/* Keep the existing canonical navigation, 20 watercolor PNG icons, and home cards. */
body.wcs-demo.wcs-home .wcs-shell {
  overflow: visible;
}
body.wcs-demo.wcs-home .wcs-hero {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  min-height: clamp(515px, 48vw, 650px);
  margin: 0 0 38px calc(50% - 50vw);
  padding: 76px max(26px, calc((100vw - 1120px) / 2));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  color: #f7ede0;
  overflow: hidden;
  text-shadow: none;
  background: #223539;
}
body.wcs-demo.wcs-home .wcs-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: url("./watercolor-fullbleed-creatures-v4.webp");
  background-position: 53% center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(var(--wcs-v4-art-saturation));
  pointer-events: none;
}
body.wcs-demo.wcs-home .wcs-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(10, 29, 34, .91) 0%,
    rgba(10, 29, 34, .77) 23%,
    rgba(10, 29, 34, .40) 45%,
    rgba(10, 29, 34, .04) 84%);
  pointer-events: none;
}
body.wcs-demo.wcs-home .wcs-hero .wcs-kicker {
  color: #f0ca91;
  margin: 0 0 14px;
  font-size: 14px;
  text-align: left;
}
body.wcs-demo.wcs-home .wcs-hero .wcs-hero-title {
  color: #fff5e6;
  font-size: clamp(38px, 4.8vw, 66px);
  font-weight: 750;
  line-height: 1.24;
  letter-spacing: .07em;
  text-shadow: 0 2px 11px #0a2024a0;
  margin: 6px 0 19px;
}
body.wcs-demo.wcs-home .wcs-hero .wcs-hero-title::before,
body.wcs-demo.wcs-home .wcs-hero .wcs-hero-title::after { display: none; }
body.wcs-demo.wcs-home .wcs-hero .wcs-hero-sub {
  max-width: 540px;
  margin: 0;
  color: #fff2de;
  font-size: 17px;
  line-height: 1.95;
  font-weight: 500;
  text-shadow: 0 2px 8px #091b21af;
  text-align: left;
}
body.wcs-demo.wcs-home .wcs-hero .academy-home-shortcuts {
  margin-top: 26px !important;
  align-self: flex-start;
}
body.wcs-demo.wcs-home .wcs-hero .academy-home-shortcuts a {
  color: #f8eddf !important;
  border-color: #f4cf9c !important;
  background: rgba(21, 48, 46, .86) !important;
  backdrop-filter: blur(2px);
}
body.wcs-demo.wcs-home .wcs-hero .academy-home-shortcuts a:first-child {
  background: #d0a66b !important;
  color: #302517 !important;
}
@media (max-width: 760px) {
  /* Preserve the WHOLE creature scene above text: no mobile center-crop. */
  body.wcs-demo.wcs-home .wcs-hero {
    min-height: 0;
    margin-bottom: 27px;
    padding: calc(100vw * 941 / 1672 + 24px) 20px 28px;
    background: #f8f0e3;
    color: #302a23;
  }
  body.wcs-demo.wcs-home .wcs-hero::before {
    inset: 0 0 auto;
    height: calc(100vw * 941 / 1672);
    background-position: center;
    background-size: 100% 100%;
  }
  body.wcs-demo.wcs-home .wcs-hero::after { display: none; }
  body.wcs-demo.wcs-home .wcs-hero .wcs-kicker {
    font-size: 12px;
    color: #85633a;
  }
  body.wcs-demo.wcs-home .wcs-hero .wcs-hero-title {
    font-size: clamp(31px, 7.1vw, 43px);
    color: #342b26;
    text-shadow: none;
    line-height: 1.32;
    margin: 4px 0 12px;
  }
  body.wcs-demo.wcs-home .wcs-hero .wcs-hero-sub {
    font-size: 15px;
    line-height: 1.82;
    color: #594c3d;
    text-shadow: none;
  }
  body.wcs-demo.wcs-home .wcs-hero .academy-home-shortcuts {
    width: 100%;
    margin: 18px 0 0 !important;
  }
  body.wcs-demo.wcs-home .wcs-hero .academy-home-shortcuts a {
    min-height: 46px;
    background: #f7eddb !important;
    color: #2c4d45 !important;
    border-color: #648777 !important;
  }
  body.wcs-demo.wcs-home .wcs-hero .academy-home-shortcuts a:first-child {
    color: #fff8ed !important;
    background: #335b4e !important;
    border-color: #335b4e !important;
  }
}
@media (max-width: 350px) {
  body.wcs-demo.wcs-home .wcs-hero { padding-inline: 15px; }
  body.wcs-demo.wcs-home .wcs-hero .wcs-hero-title { font-size: 30px; }
  body.wcs-demo.wcs-home .wcs-hero .academy-home-shortcuts a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body.wcs-demo.wcs-home .wcs-hero .academy-home-shortcuts a { transition: none !important; }
}

/* QA shadow fix: suppress old mobile mural and gap; do not edit owning project. */
body.wcs-demo.wcs-home .wcs-mobile-mural{display:none!important}
body.wcs-demo.wcs-home .wcs-shell{padding-top:0}

/* Home entrance watercolor feather: extend the artwork downward and blend
   the painted lower edge into the matching parchment instead of a hard cut.
   Only the desktop/tablet home backdrop changes; mobile retains its own mural. */
@media (min-width: 701px) {
  body.wcs-demo.wcs-home {
    background-color: #f8ebd8;
    background-image:
      linear-gradient(
        to bottom,
        rgba(248, 235, 216, 0) min(780px, 50vw),
        #f8ebd8 min(1050px, 67vw)
      ),
      linear-gradient(
        90deg,
        rgba(248,235,216,.13) 0%,
        rgba(251,243,229,.62) 24%,
        rgba(252,246,236,.72) 50%,
        rgba(251,243,229,.62) 76%,
        rgba(248,235,216,.13) 100%
      ),
      var(--ill-scene);
    background-position: center top, center 155px, center 155px;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-size: 100% 100%, cover, min(1800px, 100vw) auto;
  }
}

/* Seamless home hero-to-portal crossfade.
   Both sections show distinct watercolor images; without coordinated fades
   the bottom of the hero makes a visible straight cut at the portal.
   Preserve the mobile scene, which uses its own illustration layout. */
@media (min-width: 761px) {
  body.wcs-demo.wcs-home .wcs-hero::after {
    background:
      linear-gradient(to bottom,
        rgba(248,235,216,0) 78%,
        rgba(248,235,216,.52) 92%,
        #f8ebd8 100%),
      linear-gradient(90deg,
        rgba(10,29,34,.91) 0%,
        rgba(10,29,34,.77) 23%,
        rgba(10,29,34,.40) 45%,
        rgba(10,29,34,.04) 84%);
  }
  body.wcs-demo.wcs-home .wcs-section[aria-labelledby="wcs-portal-title"] {
    position: relative;
    isolation: isolate;
  }
  body.wcs-demo.wcs-home .wcs-section[aria-labelledby="wcs-portal-title"]::before {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    top: -40px;
    left: calc(50% - 50vw);
    width: 100vw;
    height: 230px;
    background: linear-gradient(to bottom,
      #f8ebd8 0%,
      #f8ebd8 12%,
      rgba(248,235,216,0) 100%);
  }
  body.wcs-demo.wcs-home .wcs-section[aria-labelledby="wcs-portal-title"] > * {
    position: relative;
    z-index: 1;
  }
}
