.demo-unlock-panel {
  position: fixed;
  z-index: 30;
  top: max(1rem, env(safe-area-inset-top));
  left: 50%;
  width: min(44rem, calc(100vw - 2rem));
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(63, 185, 80, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(63, 185, 80, 0.16), rgba(1, 7, 5, 0.78)),
    rgba(1, 7, 5, 0.92);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.demo-unlock-copy {
  min-width: 0;
}

.demo-unlock-label {
  color: #dff7e7;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.15;
}

.demo-unlock-label::before {
  content: "";
  display: inline-block;
  width: 0.56rem;
  aspect-ratio: 1;
  margin-right: 0.48rem;
  border-radius: 50%;
  background: #3fb950;
  box-shadow: 0 0 14px rgba(63, 185, 80, 0.68);
  vertical-align: 0.02em;
}

.demo-unlock-note {
  margin: 0.28rem 0 0;
  color: rgba(223, 247, 231, 0.76);
  font-size: 0.82rem;
  line-height: 1.35;
}

.demo-unlock-key-row {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}

.demo-unlock-key {
  display: flex;
  align-items: center;
  min-width: 9rem;
  border: 1px solid rgba(104, 181, 255, 0.22);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.50), rgba(255, 255, 255, 0.018)),
    rgba(0, 2, 5, 0.90);
  color: #d8f6df;
  padding: 0.52rem 0.62rem;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.demo-unlock-button {
  flex: 0 0 auto;
  border: 1px solid rgba(63, 185, 80, 0.48);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.08)),
    rgba(18, 53, 31, 0.92);
  color: #ffffff;
  min-height: 2.6rem;
  padding: 0 0.86rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.demo-unlock-button:hover {
  border-color: #3fb950;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.06)),
    rgba(22, 69, 39, 0.96);
  transform: translateY(-1px);
}

.demo-unlock-button:focus-visible {
  outline: 2px solid #3fb950;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .demo-unlock-panel {
    top: max(0.75rem, env(safe-area-inset-top));
    width: min(24rem, calc(100vw - 1.5rem));
    gap: 0.62rem;
    padding: 0.72rem;
  }

  .demo-unlock-label {
    font-size: 0.88rem;
  }

  .demo-unlock-note {
    font-size: 0.78rem;
  }

  .demo-unlock-key-row {
    gap: 0.45rem;
  }

  .demo-unlock-key {
    min-width: 0;
    flex: 1 1 auto;
    padding: 0.5rem;
    font-size: 0.74rem;
  }

  .demo-unlock-button {
    min-height: 2.45rem;
    padding: 0 0.75rem;
    font-size: 0.78rem;
  }
}
