.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 2 * var(--gutter));
  padding: 11px 16px;
  border-radius: var(--r-pill);
  background: rgba(22, 22, 30, 0.88);
  border: 1px solid var(--border-2);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform var(--med) var(--ease),
    opacity var(--med) var(--ease);
}
.toast svg {
  width: 16px;
  height: 16px;
  color: var(--live);
}
.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.gate {
  width: min(92vw, 400px);
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.gate::backdrop {
  background: rgba(10, 4, 12, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.gate[open] {
  animation: gateIn 0.35s var(--ease);
}
@keyframes gateIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}
.gate__card {
  margin: 0;
  padding: 26px 22px 22px;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(48, 22, 46, 0.96), rgba(24, 10, 26, 0.98));
  border: 1px solid var(--border-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 80px -30px var(--glow, rgba(255, 111, 181, 0.4));
  text-align: center;
}
.gate__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: var(--tile-bg, var(--surface-2));
  border: 1px solid var(--border-2);
  color: var(--tile-ink, #fff);
  box-shadow: 0 14px 30px -14px var(--glow, transparent);
}
.gate__icon svg {
  width: 30px;
  height: 30px;
}
.gate__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.gate__text {
  margin: 0 0 20px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.gate__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--fast) var(--ease),
    background var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}
.gate__btn:hover {
  transform: translateY(-1px);
}
.gate__btn:active {
  transform: scale(0.97);
}
.gate__btn--exit {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text);
}
.gate__btn--exit:hover {
  background: rgba(255, 190, 226, 0.16);
}
.gate__btn--go {
  background: linear-gradient(135deg, var(--brand, var(--accent)), var(--brand-2, var(--accent-2)));
  border: 1px solid transparent;
  color: var(--arrow-ink, #fff);
  box-shadow: 0 14px 30px -12px var(--glow, rgba(255, 111, 181, 0.4));
}
.gate__btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
