
:root {
  --ios-chrome-top: #220b12;
  --ios-chrome-bottom: #2a0d16;
}

.ios26-edge-sample { display: none; }

@supports (-webkit-touch-callout: none) {
  @media (hover: none) and (pointer: coarse) {
    html {
      background-color: var(--ios-chrome-top);
      background-image: none;
    }

    body {
      background-color: var(--ios-chrome-top);
    }

    .ios26-edge-sample {
      display: block;
      position: fixed;
      left: 0;
      right: 0;
      width: 100%;
      height: 11px;
      z-index: 2147483647;
      pointer-events: none;
      user-select: none;
      border: 0;
      outline: 0;
      box-shadow: none;
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
    }

    .ios26-edge-top {
      top: 0;
      background-color: var(--ios-chrome-top);
    }

    .ios26-edge-bottom {
      bottom: 0;
      background-color: var(--ios-chrome-bottom);
    }

    html.ios26-refresh-edge .ios26-edge-sample {
      height: 12px;
    }

    .backgroundShade::before,
    .backgroundShade::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      pointer-events: none;
      z-index: 0;
    }

    .backgroundShade::before {
      top: 0;
      height: clamp(115px, 17dvh, 215px);
      background: linear-gradient(
        180deg,
        #220b12 0%,
        rgb(34 11 18 / 98%) 5%,
        rgb(34 11 18 / 83%) 18%,
        rgb(34 11 18 / 51%) 45%,
        rgb(34 11 18 / 14%) 76%,
        rgb(34 11 18 / 0%) 100%
      );
    }

    .backgroundShade::after {
      bottom: 0;
      height: clamp(140px, 21dvh, 245px);
      background: linear-gradient(
        0deg,
        #2a0d16 0%,
        rgb(42 13 22 / 98%) 5%,
        rgb(42 13 22 / 82%) 20%,
        rgb(42 13 22 / 52%) 45%,
        rgb(42 13 22 / 13%) 78%,
        rgb(42 13 22 / 0%) 100%
      );
    }
  }
}
