.text3d-site {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: #070a10;
}

.text3d-site.has-scroll-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--site-scroll-background-image);
  background-size: cover;
  background-position: center;
  opacity: var(--site-scroll-background-opacity, 0.45);
  filter: saturate(0.9) brightness(0.78);
}

.text3d-site::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 215, 106, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(3, 6, 11, 0.32), rgba(3, 6, 11, 0.62));
}

.text3d-site > * {
  position: relative;
  z-index: 1;
}

.text3d-shell {
  width: min(1760px, calc(100vw - 40px));
  margin: 30px auto 46px;
  padding: 14px;
  border: 1px solid rgba(255, 215, 106, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(14, 19, 28, 0.88), rgba(7, 10, 15, 0.9)),
    rgba(7, 10, 15, 0.86);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.text3d-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 10px 16px;
}

.text3d-topbar p {
  margin: 0 0 4px;
  color: #ffd76a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text3d-topbar h1 {
  margin: 0;
  color: #f4f8ff;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.08;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.36);
}

.text3d-open-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #241800;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(180deg, #ffefa7 0%, #ffd76a 48%, #f0b13e 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 30px rgba(255, 196, 70, 0.24);
}

.text3d-app-frame-wrap {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #070a10;
  box-shadow: inset 0 0 0 1px rgba(255, 215, 106, 0.08);
}

.text3d-app-frame {
  display: block;
  width: 100%;
  height: clamp(720px, calc(100vh - 210px), 940px);
  min-height: 680px;
  border: 0;
  background: #070a10;
}

.text3d-license {
  margin: 14px 10px 4px;
  color: rgba(228, 235, 248, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.text3d-license a {
  color: #ffd76a;
  text-decoration: none;
}

.text3d-license a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .text3d-shell {
    width: min(100vw - 20px, 100%);
    margin-top: 18px;
    padding: 10px;
  }

  .text3d-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .text3d-app-frame {
    min-height: 760px;
    height: 78vh;
  }
}
