.tablet-layer-explorer {
  position: relative;
  min-height: 420vh;
  margin: 0;
  color: #142027;
  background: #f7f9fb;
  overflow: clip;
}

.tablet-layer-explorer,
.tablet-layer-explorer * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.tle-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247, 249, 251, 0.96), rgba(233, 244, 242, 0.9)),
    linear-gradient(135deg, #ffffff, #eef6f2 54%, #f7f9fb);
}

.tle-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 32, 39, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 32, 39, 0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}

.tle-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tle-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.tle-copy {
  position: absolute;
  z-index: 4;
  top: 10vh;
  left: max(22px, calc((100vw - 1200px) / 2));
  width: min(420px, calc(100% - 44px));
  pointer-events: none;
}

.tle-kicker {
  margin: 0 0 12px;
  color: #007c89;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.tle-copy h2 {
  margin: 0;
  max-width: 410px;
  color: #142027;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 48px;
  line-height: 1.03;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.tle-copy p {
  max-width: 390px;
  margin: 16px 0 0;
  color: #33464e;
  font-size: 16px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.tle-layer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  pointer-events: auto;
}

.tle-layer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  max-width: 100%;
  padding: 0 13px;
  border: 1px solid rgba(20, 32, 39, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #142027;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(28, 80, 92, 0.09);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tle-layer-pill span {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(20, 32, 39, 0.18);
  border-radius: 999px;
  background: var(--tle-layer-color);
  flex: 0 0 auto;
}

.tle-layer-pill:hover,
.tle-layer-pill:focus-visible,
.tle-layer-pill.is-active {
  border-color: rgba(0, 124, 137, 0.58);
  background: #ffffff;
  transform: translateY(-2px);
  outline: none;
}

.tle-note {
  width: min(340px, 100%);
  padding-top: 2px;
  color: #526268;
  font-size: 14px;
}

.tle-tooltip {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  width: min(260px, calc(100vw - 32px));
  padding: 14px 15px;
  border: 1px solid rgba(20, 32, 39, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #142027;
  box-shadow: 0 20px 46px rgba(19, 57, 68, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.tle-tooltip.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.tle-tooltip span {
  display: block;
  color: #007c89;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tle-tooltip strong {
  display: block;
  margin-top: 6px;
  color: #142027;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.tle-tooltip p {
  margin: 8px 0 0;
  color: #42545b;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.tle-fallback {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 28px;
  background: #f7f9fb;
}

.tablet-layer-explorer.is-fallback .tle-scene {
  display: none;
}

.tablet-layer-explorer.is-fallback .tle-fallback {
  display: flex;
}

.tle-fallback img {
  width: min(330px, 42vw);
  border-radius: 8px;
  filter: drop-shadow(0 18px 32px rgba(19, 57, 68, 0.15));
}

.tle-fallback-grid {
  display: grid;
  gap: 12px;
  width: min(390px, 100%);
}

.tle-fallback-grid article {
  padding: 14px;
  border: 1px solid rgba(20, 32, 39, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.tle-fallback-grid span {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(20, 32, 39, 0.18);
  border-radius: 999px;
  background: var(--tle-layer-color);
}

.tle-fallback-grid strong {
  display: block;
  margin-top: 9px;
  font-size: 17px;
  line-height: 1.2;
}

.tle-fallback-grid p {
  margin: 6px 0 0;
  color: #42545b;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .tablet-layer-explorer {
    min-height: 460vh;
  }

  .tle-stage {
    min-height: 100vh;
    min-height: 100svh;
  }

  .tle-stage::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0 0 auto;
    height: 39vh;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(247, 249, 251, 0.92), rgba(247, 249, 251, 0));
  }

  .tle-copy {
    top: 26px;
    left: 16px;
    width: calc(100% - 32px);
    max-width: 360px;
  }

  .tle-kicker {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .tle-copy h2 {
    max-width: 330px;
    font-size: 32px;
    line-height: 1.08;
  }

  .tle-copy p {
    max-width: 330px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.48;
  }

  .tle-layer-list {
    margin-top: 14px;
    gap: 8px;
  }

  .tle-layer-pill {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .tle-note {
    display: none;
  }

  .tle-tooltip {
    width: min(230px, calc(100vw - 28px));
  }

  .tle-fallback {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px 16px;
  }

  .tle-fallback img {
    width: min(270px, 76vw);
  }
}

@media (max-width: 420px) and (max-height: 740px) {
  .tle-copy h2 {
    font-size: 27px;
  }

  .tle-copy p {
    font-size: 12px;
  }

  .tle-layer-pill {
    min-height: 32px;
    font-size: 11px;
  }

}
