: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: space-between;
  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%));
}

.topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: calc(22px + env(safe-area-inset-top)) calc(24px + env(safe-area-inset-right)) 24px calc(24px + env(safe-area-inset-left));
}

h1 {
  margin: 0;
  padding-block: 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.video-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 999px;
  background: #211b20;
  color: #fff7fa;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.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-radius: 999px;
  background: #fff0f6;
  color: #28121e;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.chat-link:hover { background: #ffffff; }

button:hover { background: #372b34; }

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

.invitation p {
  margin: 14px 0 0;
  color: #e6dce2;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 380px) {
  .topline { flex-wrap: wrap; }
  .video-controls { margin-left: auto; }
}
