/* Shared look for the guest app, host panel and QR posters. */
@font-face {
  font-family: 'Unbounded';
  src: url('/vendor/fonts/unbounded-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Unbounded';
  src: url('/vendor/fonts/unbounded-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Unbounded';
  src: url('/vendor/fonts/unbounded-latin-900-normal.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg: #07050f;
  --surface: #151028;
  --surface-2: #1f1838;
  --line: #2e2552;
  --text: #f4f0ff;
  --muted: #9a8fc0;
  --pink: #ff2e97;
  --cyan: #22e3ff;
  --yellow: #ffe14a;
  --lime: #9dff4a;
  --red: #ff5263;
  --grad: linear-gradient(100deg, #ff2e97, #a855f7 50%, #22e3ff);
  --display: 'Unbounded', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 18px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(900px 500px at 110% -10%, rgba(255, 46, 151, 0.22), transparent 60%),
    radial-gradient(800px 500px at -20% 20%, rgba(34, 227, 255, 0.14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100dvh;
}

h1,
h2,
h3 {
  font-family: var(--display);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  touch-action: manipulation;
}

button:disabled {
  cursor: default;
  opacity: 0.45;
}

[hidden] {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
}
.btn:active:not(:disabled) {
  transform: scale(0.96);
}
.btn.primary {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  box-shadow: 0 6px 28px -8px rgba(255, 46, 151, 0.7);
}
.btn.danger {
  border-color: rgba(255, 82, 99, 0.5);
  color: var(--red);
}
.btn.small {
  padding: 0.5em 0.95em;
  font-size: 0.88rem;
}

.field {
  width: 100%;
  padding: 0.9em 1.1em;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  outline: none;
}
.field:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 227, 255, 0.18);
}

.card {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--muted);
}

#toasts {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(env(safe-area-inset-top) + 10px);
  z-index: 50;
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
  padding: 0 14px;
}
.toast {
  max-width: 460px;
  padding: 0.75em 1.1em;
  border-radius: 16px;
  background: #261d47;
  border: 1px solid #45377c;
  box-shadow: 0 12px 40px -10px #000;
  font-weight: 600;
  font-size: 0.95rem;
  animation: toast-in 0.25s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.toast.bad {
  background: #3a1522;
  border-color: #7c2a3e;
}
.toast.good {
  background: linear-gradient(100deg, #7a1650, #3b1d7a 60%, #0f5a73);
  border-color: transparent;
}
.toast.out {
  animation: toast-out 0.3s ease both;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.94);
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
