body.tree-overlay {
  .mobile-header,
  .ha-centre-card,
  .tree-footer,
  h4.services {
    display: none;
  }

  .touch-point {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    gap: 20px;
    cursor: pointer;

    span {
      --pulse-step: 4px;
    }

    .title {
      padding-left: 0;
      margin-left: 0;
      margin-top: 0;
      text-align: center;
      font-size: 14px;
      display: flex;
      height: auto;
      width: auto;
    }

    > p {
      display: none;
    }

    &.back {
      flex-direction: row;

      .title {
        height: 30px;
        text-align: left;
        align-items: center;

        span {
          height: auto;
        }
      }
    }

    &.brave {
      flex-direction: row-reverse;

      & > span {
        transform: rotate(180deg);
      }

      .title {
        height: 30px;
        text-align: right;
      }
    }
  }

  .tree-house {
    p.notice {
      position: absolute;
      z-index: 100;
      text-align: center;
      width: 100%;
      top: 43%;
    }

    .footnote {
      position: absolute;
      z-index: 100;
      bottom: 0;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;

      p {
        font-size: 12px;
        line-height: 18px;
        width: 500px;
      }
    }

    .details {
      position: absolute;
      left: 50%;
      top: 50%;
      translate: -50% -35vh;

      .copy {
        width: auto;
        margin-top: 0;
        padding-left: 0;
        padding: 20px;
        -ms-overflow-style: none;
        scrollbar-width: none;

        &::--webkit-scrollbar {
          display: none;
        }
      }
    }
  }
}

@media (max-height: 430px) {
  body.tree-overlay {
    --offset: 0.97;

    .touch-point.trigger {
      left: calc(var(--left-pos, var(--left, initial)) * var(--offset-left-overide, var(--offset)));
      right: calc(var(--right-pos, var(--right, initial)) * var(--offset));
      top: calc(var(--top-pos, var(--top, initial)) * var(--offset-top-overide, var(--offset)));
      bottom: calc(var(--bottom-pos, var(--bottom, initial)) * var(--offset));

      span {
        font-size: 9px;
      }
    }

    p.notice {
      font-size: 10px;
      line-height: 12px;
    }

    .tree-house .footnote {
      display: none !important;
    }
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  body.tree-overlay {
    --pink: #e70077;
    overflow: initial;

    .check-orientation {
      display: none;
    }

    .tree-house {
      .single-drone,
      img.treehouse.main,
      p.notice,
      .footnote {
        display: none;
      }

      .footnote {
        display: none !important;
      }
    }

    h4.services {
      display: block;
      z-index: 3000;
      width: 100%;
      padding-inline: 20px;
      margin: 0;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 14px;
    }

    .tree-house {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      overflow: initial;
      height: initial;

      .details {
        background: #1a0e05;
        border: 1px solid rgba(231, 0, 119, 0.3);
        border-radius: 20px 20px 0 0;
        width: 100%;
        max-height: 80vh;
        overflow-y: auto;
        padding: 28px 24px 40px;
        position: relative;
        color: var(--white);
        box-shadow: 0 -20px 60px rgba(231, 0, 119, 0.2);
        animation: slideUp 0.3s ease;

        left: initial !important;
        top: initial !important;
        bottom: -100%;
        position: fixed;
        z-index: 4002;
        height: fit-content;
        transition: bottom 0.3s ease;
        pointer-events: all;
        translate: none;

        &.open {
          bottom: 0;
        }

        .header {
          opacity: 1;
          transform: initial;
          background-color: transparent;
          height: auto;
          line-height: normal;

          h4 {
            position: relative;
            left: initial;
          }

          .close {
            height: auto;
            background-color: transparent;
            right: -35px;

            span {
              background: rgba(255, 255, 255, 0.5);
            }
          }
        }

        .copy {
          opacity: 1;
          transform: initial;
          height: fit-content;
          max-height: initial;
          padding-left: 0;
        }
      }
    }

    .mobile-overlay {
      position: fixed;
      display: block;
      background: linear-gradient(160deg, #1a0e05 0%, #0d0508 60%, #050210 100%);
      z-index: 3000;
      pointer-events: none;
    }

    .blank-bg {
      display: block;
      opacity: 0;
      pointer-events: none;
      position: fixed;
      inset: 0;
      z-index: 200;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(3px);
      align-items: flex-end;
      justify-content: center;
      z-index: 3001;
      transition: opacity 0.3s ease;

      &.open {
        opacity: 1;
      }
    }

    .mobile-header {
      display: flex;
      height: 70px;
      align-items: center;
      justify-content: space-between;
      padding: 14px 20px;
      background: rgba(0, 0, 0, 0.3);
      z-index: 3002;
      position: relative;
      width: 100%;

      .logo-area {
        display: flex;
        align-items: center;
        gap: 10px;

        img {
          width: 42px;
          height: 42px;
        }

        .logo-text {
          font-size: 11px;
          font-weight: 600;
          line-height: 1.3;
          color: #fff;
        }
      }

      .menu-btn {
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 2px;
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        background: none;
        border: none;

        svg {
          width: 18px;
          height: 12px;

          line {
            stroke: white;
            stroke-width: 2;
          }
        }
      }
    }

    .ha-centre-card {
      display: block;
      background: rgba(231, 0, 119, 0.12);
      border: 1px solid rgba(231, 0, 119, 0.4);
      border-radius: 12px;
      padding: 24px 20px;
      text-align: center;
      margin-block: 28px;
      z-index: 3001;

      .ha-pulse {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(231, 0, 119, 0.6) 0%, transparent 70%);
        margin: 0 auto 14px;
        animation: heartPulse 2.4s ease-in-out infinite;
      }
      h2 {
        font-size: 15px;
        font-weight: 700;
        color: white;
        line-height: 1.5;
      }

      p {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.5);
        margin-top: 6px;
      }
    }

    .tree-container {
      --gap: 20px;

      position: relative;
      top: initial;
      max-width: 100%;
      max-height: fit-content;
      z-index: 3000;
      display: grid;
      grid-template-columns: 1fr 1fr;
      padding-inline: var(--gap);
      gap: var(--gap);
      margin-bottom: 130px;

      .touch-point {
        position: relative;
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 16px 12px;
        cursor: pointer;
        transition:
          background 0.2s,
          border-color 0.2s;
        position: relative;
        overflow: hidden;
        gap: 7px;

        &::before {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          height: 3px;
          background: var(--pink);
          border-radius: 10px 10px 0 0;
        }

        &.back {
          display: none;
        }

        &.trigger {
          left: initial;
          top: initial;

          &.brave {
            display: none;
          }
        }

        > span {
          background-color: initial;
          border: 0;
          transition: initial;
          animation: initial;
          position: relative;

          width: 22px;
          height: 22px;
          border-radius: 50%;
          background-color: var(--pink);
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 14px;
          color: white;
          margin-bottom: 8px;
          background-size: 9px;
          background-repeat: no-repeat;
          background-position: 6px;
        }

        .title {
          margin-top: initial;
          margin-left: initial;
          padding-left: initial;
          height: auto;
          display: block;
          width: auto;
          font-size: 12px;
          font-weight: 700;
          color: white;
          line-height: 1.3;
        }

        p {
          display: block;
          font-size: 10px;
          color: rgba(255, 255, 255, 0.5);
          margin-block: 0;
          line-height: 1.4;
          text-align: center;
        }
      }
    }

    .tree-footer {
      display: flex;
      align-items: center;
      gap: 20px;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 4001;
      background: rgba(60, 10, 35, 0.92);
      backdrop-filter: blur(4px);
      padding: 15px;

      p {
        font-size: 10px;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.8);
      }

      button {
        width: 42px;
        aspect-ratio: 1/1;
        border-radius: 50%;
        background: #19a1af;
        border: none;
        color: white;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 16px;
      }
    }
  }
}

@keyframes heartPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}
