/* Quick Request: shared styles for guest, admin, and demo views.
   "Booth at night": deep ink, one amber booth light, status colors for the queue. */

:root {
  color-scheme: dark;
  --bg: #0b0a0e;
  --bg-2: #121118;
  --card: #17161e;
  --card-2: #1e1c26;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);
  --ink: #f4f1ea;
  --ink-2: #b9b4c4;
  --ink-3: #7a7589;

  --amber: #ffc53d;
  --amber-ink: #1b1300;
  --amber-soft: rgb(255 197 61 / 0.12);
  --cyan: #56d4ff;
  --green: #5ee39a;
  --red: #ff6b6b;

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
[hidden] { display: none !important; }

.mono { font-family: var(--mono); }
.eyebrow {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Fields */

.field { display: grid; gap: 8px; }
.field > span { font-weight: 600; font-size: 14px; }
.field > span small { color: var(--ink-3); font-weight: 400; }
.input, .textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.textarea { resize: vertical; min-height: 96px; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--card-2);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s, opacity 0.2s;
}
.btn:hover { background: #26232f; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.btn-primary { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: #ffd366; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-ghost { background: transparent; }

/* Status chips */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  color: var(--ink-3);
  white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip[data-s="pending"], .chip[data-s="open"] { color: var(--amber); }
.chip[data-s="accepted"] { color: var(--cyan); }
.chip[data-s="played"] { color: var(--green); }
.chip[data-s="skipped"], .chip[data-s="closed"] { color: var(--ink-3); }
.chip[data-s="open"]::before { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* Album art */

.art {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--card-2) center / cover no-repeat;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font: 600 14px var(--display);
  overflow: hidden;
}

/* Toggle switch */

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #33303d;
  position: relative;
  transition: background 0.2s;
  flex: none;
}
.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s var(--ease);
}
.switch input:checked + .track { background: var(--amber); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  max-width: min(92vw, 420px);
  padding: 12px 18px;
  border-radius: 999px;
  background: #24212d;
  border: 1px solid var(--line-2);
  box-shadow: 0 16px 40px -12px rgb(0 0 0 / 0.8);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgb(255 107 107 / 0.5); }

/* Ervic Labs mark */

.el-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
}
.el-mark:hover { color: var(--ink); }
.el-mark i { width: 6px; height: 6px; background: #e2461b; }

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