/* The third chapter: a floating, pillow-soft stage for the pyjama crew. */
.pyjama-section {
  padding: 84px 0 76px;
  min-height: 0;
  position: relative;
  isolation: isolate;
}
.pyjama-section > .container {
  width: min(1220px, calc(100% - 100px));
}
.pyjama-section .section-intro {
  max-width: 870px;
  margin-bottom: 12px;
  position: relative;
  z-index: 3;
}
.pyjama-section .section-intro h2 {
  font-size: clamp(2.7rem, 4.6vw, 4.4rem);
}
.pyjama-section .section-intro p {
  font-size: 1.08rem;
}
.cosy-stage {
  position: relative;
  height: 610px;
  max-width: 1160px;
  margin: 0 auto;
  isolation: isolate;
}
.cosy-bubble-frame {
  position: absolute;
  inset: 32px 7% 30px;
  border-radius: 48% 52% 47% 53%;
  background: radial-gradient(
    ellipse at 45% 35%,
    var(--cream) 0%,
    #fff9f0c9 55%,
    #fff9f069 100%
  );
  border: 2px solid #fff9f0bd;
  box-shadow: inset 0 0 0 16px #ffffff17;
  transform: rotate(-3deg);
  transition:
    background-color 400ms,
    box-shadow 400ms;
  z-index: -2;
}
.cosy-canopy {
  position: absolute;
  top: 6px;
  left: 3%;
  width: 94%;
  height: 145px;
  overflow: visible;
  z-index: 1;
}
.cosy-canopy-string {
  stroke: #5a8293;
  stroke-width: 1.4;
  stroke-dasharray: 3 6;
}
.cosy-canopy-drop {
  stroke: #7999a2;
  stroke-width: 1.3;
}
.cosy-lantern {
  color: var(--yellow);
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: 50% 0;
}
.cosy-lantern:nth-of-type(2n) {
  color: var(--pink);
}
.cosy-dress-tag,
.cosy-age-tag {
  position: absolute;
  z-index: 4;
  color: var(--navy);
}
.cosy-dress-tag {
  left: 0;
  top: 51px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 29px;
  border-radius: var(--radius-card);
  background: var(--yellow);
  transform: rotate(-8deg);
  box-shadow: 0 12px 20px #39788915;
}
.cosy-dress-tag > .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.5;
}
.cosy-dress-tag > span {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}
.cosy-dress-tag strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  line-height: 1.12;
  font-weight: 500;
  margin-top: 5px;
}
.cosy-age-tag {
  right: 15px;
  top: 61px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  width: 149px;
  height: 149px;
  border-radius: 50%;
  background: var(--pink);
  transform: rotate(8deg);
  box-shadow: 0 12px 20px #39788915;
}
.cosy-age-tag strong {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
  font-weight: 500;
}
.cosy-age-tag > span:not(.sr-only) {
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 7px;
}
.pyjama-section .pyjama-scene {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  width: 82%;
  max-width: 950px;
  padding: 0;
  margin: auto;
  height: auto;
  z-index: 2;
}
.pyjama-section .pyjama-scene::before {
  display: none;
}
.pyjama-section .pyjama-ensemble {
  width: 100%;
  max-width: 100%;
  margin: 0;
  filter: drop-shadow(0 18px 12px #3167781a);
  position: relative;
  z-index: 2;
}
.cosy-cloud {
  position: absolute;
  width: 110%;
  height: 130px;
  left: -5%;
  bottom: -17px;
  z-index: 0;
  fill: var(--cream);
  filter: drop-shadow(0 11px 7px #3978890d);
}
.cosy-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.cosy-sparkles > svg {
  position: absolute;
  width: 23px;
  height: 23px;
  color: var(--yellow);
  opacity: 0.58;
  transform: rotate(8deg);
  transition: opacity 350ms;
}
.cosy-sparkles > svg:nth-child(1) {
  left: 25%;
  top: 21%;
  width: 20px;
  height: 20px;
}
.cosy-sparkles > svg:nth-child(2) {
  left: 48%;
  top: 30%;
  color: var(--pink);
}
.cosy-sparkles > svg:nth-child(3) {
  right: 22%;
  top: 18%;
  width: 30px;
  height: 30px;
}
.cosy-sparkles > svg:nth-child(4) {
  left: 2%;
  top: 48%;
  color: var(--pink);
  width: 32px;
  height: 32px;
}
.cosy-sparkles > svg:nth-child(5) {
  right: 3%;
  top: 53%;
}
.cosy-sparkles > svg:nth-child(6) {
  left: 8%;
  bottom: 11%;
  width: 16px;
  height: 16px;
}
.cosy-sparkles > svg:nth-child(7) {
  right: 7%;
  bottom: 10%;
  color: var(--pink);
  width: 18px;
  height: 18px;
}
.cosy-sparkles > svg:nth-child(8) {
  left: 63%;
  top: 12%;
  width: 15px;
  height: 15px;
}
.cosy-orb {
  position: absolute;
  width: 45px;
  height: 45px;
  border: 1.5px solid #ffffffbf;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 25%,
    #ffffffaf 0 7%,
    #ffffff05 18% 65%,
    #5bbcc130
  );
  box-shadow: inset -3px -4px 4px #49899512;
  pointer-events: none;
}
.cosy-orb-one {
  left: 9%;
  top: 37%;
}
.cosy-orb-two {
  right: 6%;
  top: 41%;
  width: 30px;
  height: 30px;
}
.cosy-orb-three {
  left: 44%;
  top: 15%;
  width: 22px;
  height: 22px;
}
.cosy-stage-note {
  position: absolute;
  left: -6px;
  bottom: 76px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.35;
  color: #315e75;
  transform: rotate(-8deg);
  margin: 0;
  z-index: 4;
}
.cosy-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  position: relative;
  z-index: 5;
  margin-top: 16px;
}
.cosy-twinkle {
  background: var(--cream);
  padding: 14px 22px;
  font-size: 0.9rem;
  min-height: 50px;
  box-shadow: none;
}
.cosy-twinkle .icon {
  fill: currentColor;
  stroke: none;
  width: 19px;
  height: 19px;
}
.cosy-twinkle[aria-pressed="true"] {
  background: var(--yellow);
}
.cosy-actions > .text-link {
  font-size: 0.92rem;
}
.pyjama-section.is-twinkling .cosy-bubble-frame {
  background-color: #ffd75b30;
  box-shadow: inset 0 0 0 16px #fff9f03b;
}
.pyjama-section.is-twinkling .cosy-sparkles > svg {
  animation: cosy-twinkle 2.5s ease-in-out infinite alternate;
  opacity: 1;
}
.pyjama-section.is-twinkling .cosy-sparkles > svg:nth-child(2n) {
  animation-delay: -0.8s;
}
.pyjama-section.is-twinkling .cosy-sparkles > svg:nth-child(3n) {
  animation-delay: -1.7s;
}
.pyjama-section.is-twinkling .cosy-lantern {
  animation: cosy-lantern 3.8s ease-in-out infinite alternate;
}
.pyjama-section.is-twinkling .cosy-lantern:nth-of-type(2n) {
  animation-delay: -2s;
}
@keyframes cosy-twinkle {
  from {
    opacity: 0.4;
    transform: scale(0.8) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: scale(1.2) rotate(15deg);
  }
}
@keyframes cosy-lantern {
  from {
    transform: rotate(-7deg);
  }
  to {
    transform: rotate(7deg);
  }
}
@media (max-width: 1199px) {
  .cosy-stage {
    height: 540px;
  }
  .cosy-dress-tag {
    left: 0;
    top: 45px;
    padding: 18px 23px;
    gap: 10px;
  }
  .cosy-dress-tag strong {
    font-size: 1.5rem;
  }
  .cosy-dress-tag > .icon {
    width: 28px;
    height: 28px;
  }
  .cosy-age-tag {
    width: 130px;
    height: 130px;
    right: 0;
    top: 58px;
  }
  .cosy-age-tag strong {
    font-size: 2.7rem;
  }
  .cosy-age-tag > span:not(.sr-only) {
    font-size: 0.78rem;
  }
  .cosy-stage-note {
    font-size: 1.1rem;
    left: -10px;
    bottom: 62px;
  }
  .pyjama-section .pyjama-scene {
    width: 85%;
  }
}
@media (max-width: 899px) {
  .pyjama-section {
    padding: 65px 0 65px;
  }
  .pyjama-section > .container {
    width: calc(100% - 60px);
  }
  .pyjama-section .section-intro h2 {
    font-size: 3rem;
  }
  .pyjama-section .section-intro p {
    font-size: 1rem;
  }
  .cosy-stage {
    height: 480px;
  }
  .cosy-bubble-frame {
    inset: 45px 3% 25px;
  }
  .cosy-canopy {
    left: 0;
    width: 100%;
    top: 18px;
    height: 110px;
  }
  .cosy-dress-tag {
    top: 45px;
    padding: 17px 21px;
  }
  .cosy-dress-tag strong {
    font-size: 1.35rem;
  }
  .cosy-dress-tag > span {
    font-size: 0.75rem;
  }
  .cosy-age-tag {
    top: 60px;
    width: 117px;
    height: 117px;
  }
  .cosy-age-tag strong {
    font-size: 2.5rem;
  }
  .cosy-age-tag > span:not(.sr-only) {
    font-size: 0.73rem;
  }
  .pyjama-section .pyjama-scene {
    width: 94%;
    bottom: 27px;
  }
  .cosy-stage-note {
    left: 0;
    font-size: 0.95rem;
    bottom: 28px;
  }
  .cosy-sparkles > svg:nth-child(4) {
    left: -1%;
  }
  .cosy-actions {
    margin-top: 12px;
    gap: 27px;
  }
}
@media (max-width: 699px) {
  .pyjama-section {
    padding: 58px 0 59px;
  }
  .pyjama-section > .container {
    width: calc(100% - 36px);
  }
  .pyjama-section .section-intro {
    margin-bottom: 2px;
  }
  .pyjama-section .section-intro h2 {
    font-size: 2.45rem;
    line-height: 1.15;
    margin-bottom: 20px;
  }
  .pyjama-section .section-intro p {
    font-size: 1rem;
    line-height: 1.75;
    max-width: 350px;
  }
  .cosy-stage {
    height: 365px;
    max-width: 450px;
  }
  .cosy-bubble-frame {
    inset: 58px -4px 26px;
    border-width: 1.5px;
    box-shadow: inset 0 0 0 9px #ffffff17;
  }
  .cosy-canopy {
    height: 92px;
    top: 10px;
    width: 112%;
    left: -6%;
  }
  .cosy-dress-tag {
    left: 3px;
    top: 38px;
    padding: 13px 16px;
    gap: 10px;
    border-radius: 20px;
    transform: rotate(-7deg);
  }
  .cosy-dress-tag > .icon {
    width: 24px;
    height: 24px;
  }
  .cosy-dress-tag > span {
    font-size: 0.75rem;
  }
  .cosy-dress-tag strong {
    font-size: 1.25rem;
    margin-top: 3px;
  }
  .cosy-age-tag {
    right: 4px;
    top: 55px;
    width: 97px;
    height: 97px;
  }
  .cosy-age-tag strong {
    font-size: 2.2rem;
  }
  .cosy-age-tag > span:not(.sr-only) {
    font-size: 0.68rem;
    line-height: 1.2;
    margin-top: 5px;
  }
  .pyjama-section .pyjama-scene {
    width: 110%;
    max-width: none;
    left: -5%;
    right: -5%;
    bottom: 28px;
  }
  .pyjama-section .pyjama-ensemble {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .cosy-cloud {
    height: 70px;
    bottom: -9px;
    width: 106%;
    left: -3%;
  }
  .cosy-stage-note {
    display: none;
  }
  .cosy-sparkles > svg {
    width: 18px;
    height: 18px;
  }
  .cosy-sparkles > svg:nth-child(1) {
    left: 37%;
    top: 39%;
    width: 13px;
    height: 13px;
  }
  .cosy-sparkles > svg:nth-child(2) {
    left: 48%;
    top: 46%;
    width: 15px;
    height: 15px;
  }
  .cosy-sparkles > svg:nth-child(3) {
    right: 33%;
    top: 22%;
    width: 19px;
    height: 19px;
  }
  .cosy-sparkles > svg:nth-child(4) {
    left: 0;
    top: 50%;
    width: 18px;
    height: 18px;
  }
  .cosy-sparkles > svg:nth-child(5) {
    right: 0;
    top: 52%;
    width: 15px;
    height: 15px;
  }
  .cosy-sparkles > svg:nth-child(6) {
    left: 5%;
    bottom: 2%;
    width: 13px;
    height: 13px;
  }
  .cosy-sparkles > svg:nth-child(7) {
    right: 3%;
    bottom: 4%;
    width: 15px;
    height: 15px;
  }
  .cosy-sparkles > svg:nth-child(8) {
    left: 56%;
    top: 10%;
    width: 14px;
    height: 14px;
  }
  .cosy-orb-one {
    left: 2%;
    top: 45%;
    width: 26px;
    height: 26px;
  }
  .cosy-orb-two {
    right: 4%;
    top: 49%;
    width: 19px;
    height: 19px;
  }
  .cosy-orb-three {
    left: 52%;
    top: 35%;
    width: 16px;
    height: 16px;
  }
  .cosy-actions {
    flex-direction: column;
    gap: 21px;
    margin-top: 9px;
  }
  .cosy-twinkle {
    font-size: 0.87rem;
    min-height: 48px;
    padding: 13px 22px;
  }
  .cosy-actions > .text-link {
    font-size: 0.87rem;
  }
  .pyjama-section.is-twinkling .cosy-bubble-frame {
    box-shadow: inset 0 0 0 9px #fff9f03b;
  }
}
@media (max-width: 374px) {
  .pyjama-section .section-intro h2 {
    font-size: 2.15rem;
  }
  .pyjama-section .section-intro p {
    font-size: 0.95rem;
  }
  .cosy-stage {
    height: 334px;
  }
  .cosy-dress-tag {
    left: 0;
    padding: 12px 13px;
    gap: 8px;
  }
  .cosy-dress-tag strong {
    font-size: 1.15rem;
  }
  .cosy-dress-tag > .icon {
    width: 21px;
    height: 21px;
  }
  .cosy-age-tag {
    width: 88px;
    height: 88px;
    right: 0;
  }
  .cosy-age-tag strong {
    font-size: 2rem;
  }
  .cosy-age-tag > span:not(.sr-only) {
    font-size: 0.65rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cosy-lantern,
  .cosy-sparkles > svg {
    animation: none !important;
  }
  .cosy-bubble-frame {
    transition: none;
  }
}

@media (min-width: 700px) and (max-width: 899px) { .cosy-stage-note { display: none; } }
