:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #141013;
  color: #fff7fa;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body { margin: 0; }

[hidden] { display: none !important; }

.stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: radial-gradient(ellipse at 50% 35%, #2c1e28 0, #141013 70%);
}

#background-video,
.shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#background-video {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.shade {
  z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / 75%), rgb(0 0 0 / 65%) 110px, transparent 45%, transparent 55%, rgb(0 0 0 / 85%));
}

.invitation {
  width: 100%;
  align-self: center;
  padding: 72px calc(24px + env(safe-area-inset-right)) calc(27px + env(safe-area-inset-bottom)) calc(24px + env(safe-area-inset-left));
  text-align: center;
}

.chat-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 360px);
  min-height: 60px;
  margin-inline: auto;
  padding: 18px 26px;
  border: 2px solid rgb(255 255 255 / 90%);
  border-radius: 999px;
  background: rgb(242 122 159 / 7%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 14%), inset 0 1px 0 rgb(255 160 191 / 10%);
  text-shadow: 0 1px 5px rgb(0 0 0 / 55%);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.chat-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.chat-copy-second {
  padding-left: 16px;
  font-size: 0.88em;
  font-weight: 500;
}

.age-badge {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .chat-link {
    -webkit-backdrop-filter: blur(3px) saturate(108%);
    backdrop-filter: blur(3px) saturate(108%);
  }
}

.chat-link:hover {
  border-color: #ffffff;
  background: rgb(242 122 159 / 10%);
  box-shadow: 0 10px 28px rgb(0 0 0 / 18%), inset 0 1px 0 rgb(255 160 191 / 14%);
}

a:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 5px;
}

@media (min-aspect-ratio: 3/4) {
  #background-video { object-fit: contain; }
}
