:root {
  color-scheme: dark;
  --bg: #07080c;
  --bg-soft: #0d0f16;
  --panel: rgba(19, 21, 31, 0.82);
  --panel-solid: #141720;
  --panel-light: #1b1e2a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f7fb;
  --muted: #989cab;
  --muted-light: #c6c8d1;
  --violet: #a98bff;
  --violet-strong: #8c62ff;
  --pink: #ff76bd;
  --cyan: #75e6ff;
  --lime: #c7ff78;
  --green: #75efb2;
  --amber: #ffc96b;
  --danger: #ff7894;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(169, 139, 255, 0.16), transparent 42rem),
    linear-gradient(180deg, #0a0b10 0%, var(--bg) 48%, #090a0f 100%);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  touch-action: manipulation;
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.11;
  pointer-events: none;
}

.ambient-one {
  top: -18rem;
  right: -10rem;
  background: var(--violet);
}

.ambient-two {
  bottom: -24rem;
  left: -18rem;
  background: var(--pink);
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, 1380px);
  margin: 0 auto;
  padding-top: max(24px, env(safe-area-inset-top));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark i {
  display: block;
  width: 2px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--pink), var(--violet));
}

.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 12px; }
.brand-mark i:nth-child(4) { height: 21px; }

.brand-name {
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.brand-name span {
  color: var(--violet);
}

.product-badge,
.status-pill,
.event-state,
.mini-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-light);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.product-badge {
  padding: 8px 12px;
}

.product-badge i,
.event-state span,
.status-pill i,
.mini-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(117, 239, 178, 0.1), 0 0 16px rgba(117, 239, 178, 0.5);
}

.shell {
  width: min(100% - 40px, 1380px);
  margin: 0 auto;
  padding: 74px 0 70px;
}

.view {
  animation: view-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: center;
  min-height: calc(100dvh - 250px);
}

.hero {
  max-width: 760px;
}

.eyebrow,
.card-kicker {
  margin: 0;
  color: var(--violet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--pink), var(--violet));
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(49px, 6.4vw, 94px);
  font-weight: 720;
  line-height: 0.98;
  letter-spacing: -0.067em;
}

h1 span {
  display: block;
  width: fit-content;
  color: transparent;
  background: linear-gradient(100deg, var(--violet) 5%, var(--pink) 92%);
  background-clip: text;
  -webkit-background-clip: text;
}

h2 {
  margin-bottom: 6px;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.feature-row span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-light);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  font-weight: 650;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
}

.setup-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.setup-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 120px;
  background: radial-gradient(circle at 78% 0, rgba(169, 139, 255, 0.16), transparent 64%);
  pointer-events: none;
}

.card-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 27px;
}

.card-heading h2 {
  margin: 2px 0 0;
}

.card-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 47px;
  height: 47px;
  border: 1px solid rgba(169, 139, 255, 0.26);
  border-radius: 15px;
  color: var(--violet);
  background: rgba(169, 139, 255, 0.09);
  font-size: 25px;
  font-weight: 300;
}

.stack-form,
.detail-content {
  display: grid;
  gap: 16px;
}

.field {
  display: block;
}

.field > span {
  display: block;
  margin: 0 0 8px 2px;
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 700;
}

input,
textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: rgba(5, 6, 10, 0.54);
  color: var(--text);
  padding: 14px 15px;
  font-size: 16px;
  caret-color: var(--violet);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #686c7b;
}

input:focus,
textarea:focus {
  border-color: rgba(169, 139, 255, 0.68);
  background: rgba(7, 8, 13, 0.75);
  box-shadow: 0 0 0 4px rgba(169, 139, 255, 0.1);
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  color: var(--text);
  background: var(--panel-light);
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 13px 18px;
  font-weight: 760;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

.action-button b {
  font-size: 19px;
  font-weight: 450;
}

.primary {
  color: #0b0712;
  background: linear-gradient(110deg, #c1a9ff 0%, #ff9bcc 100%);
  box-shadow: 0 12px 38px rgba(169, 139, 255, 0.18);
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.microcopy {
  margin: 15px 0 0;
  color: #747887;
  font-size: 11px;
  text-align: center;
}

.result,
.feedback {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(117, 239, 178, 0.22);
  border-radius: var(--radius-md);
  background: rgba(117, 239, 178, 0.075);
  color: var(--muted-light);
}

.result strong,
.feedback strong {
  color: var(--text);
}

.result p:last-child,
.feedback p:last-child {
  margin-bottom: 0;
}

.result a {
  color: var(--text);
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}

.result .primary.inline {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 13px;
  color: #0b0712;
  text-decoration: none;
}

.feedback.error {
  border-color: rgba(255, 120, 148, 0.26);
  background: rgba(255, 120, 148, 0.08);
}

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

/* Guest experience */
.guest-shell {
  width: min(100%, 620px);
  margin: 0 auto;
}

.guest-header {
  padding: 8px 8px 30px;
  text-align: center;
}

.guest-header .event-state {
  margin: 0 auto 28px;
}

.event-state {
  padding: 7px 11px;
}

.guest-header .eyebrow {
  display: block;
  margin-bottom: 10px;
}

.guest-header h1 {
  margin-bottom: 12px;
  font-size: clamp(43px, 11vw, 69px);
}

.guest-header p:last-child {
  margin-bottom: 0;
  font-size: 15px;
}

.request-card {
  padding: 27px;
}

.guest-gate,
.guest-unavailable {
  padding: 30px;
  text-align: center;
}

.guest-gate h2,
.guest-unavailable h2 {
  margin: 8px 0 10px;
  font-size: clamp(25px, 6vw, 34px);
}

.guest-gate > .muted,
.guest-unavailable > .muted {
  max-width: 430px;
  margin: 0 auto 24px;
}

.gate-icon,
.unavailable-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 17px;
  border: 1px solid rgba(169, 139, 255, 0.24);
  border-radius: 18px;
  color: var(--violet);
  background: rgba(169, 139, 255, 0.08);
  font-size: 25px;
}

.unavailable-icon {
  color: var(--muted-light);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  transform: rotate(45deg);
}

.gate-form {
  display: grid;
  gap: 12px;
  max-width: 390px;
  margin: 0 auto;
}

.gate-form input {
  height: 66px;
  text-align: center;
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.gate-error {
  margin: 14px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.event-state.closed span {
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(152, 156, 171, 0.1);
}

.request-intro {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 22px;
}

.request-intro h2 {
  margin-bottom: 5px;
}

.request-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(169, 139, 255, 0.22);
  border-radius: 11px;
  color: var(--violet);
  background: rgba(169, 139, 255, 0.07);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.search-field {
  position: relative;
  display: block;
}

.search-field input {
  height: 62px;
  padding-left: 52px;
  border-color: var(--line-strong);
  border-radius: 18px;
  background: rgba(3, 4, 7, 0.68);
  font-size: 17px;
}

.search-symbol {
  position: absolute;
  z-index: 1;
  top: 21px;
  left: 20px;
  width: 17px;
  height: 17px;
  border: 2px solid #868a99;
  border-radius: 50%;
  pointer-events: none;
}

.search-symbol::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #868a99;
  transform: rotate(45deg);
}

.suggestions {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
}

.catalog-source {
  margin: 8px 2px 0;
  color: #717583;
  font-size: 10px;
  text-align: right;
}

.suggestion {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  text-align: left;
}

.suggestion-art,
.track-art {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(145deg, #6e5be9, #d46eab);
  font-weight: 800;
}

.suggestion-art {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  font-size: 13px;
}

.suggestion.tone-1 .suggestion-art { background: linear-gradient(145deg, #357da1, #60d4c3); }
.suggestion.tone-2 .suggestion-art { background: linear-gradient(145deg, #b35c38, #e9b55b); }
.suggestion.tone-3 .suggestion-art { background: linear-gradient(145deg, #744fa3, #5584d9); }

.suggestion-copy {
  min-width: 0;
}

.suggestion strong,
.suggestion small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion strong {
  font-size: 14px;
}

.suggestion small {
  color: var(--muted);
  font-size: 11px;
}

.suggestion-arrow {
  color: var(--muted);
  font-size: 18px;
  text-align: center;
}

.no-results {
  padding: 12px 4px 4px;
  color: var(--muted);
  font-size: 12px;
}

.selected-track {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid rgba(169, 139, 255, 0.24);
  border-radius: 16px;
  background: rgba(169, 139, 255, 0.075);
}

.track-art {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  font-size: 18px;
}

.selected-copy {
  min-width: 0;
}

.selected-copy strong,
.selected-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-copy small {
  margin-top: 2px;
  color: var(--muted);
}

.icon-button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 13px;
  color: var(--muted-light);
  background: rgba(255, 255, 255, 0.05);
  font-size: 21px;
}

.form-details {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.form-details summary {
  position: relative;
  padding: 17px 28px 16px 1px;
  color: var(--muted-light);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.form-details summary::-webkit-details-marker {
  display: none;
}

.form-details summary::after {
  content: "+";
  position: absolute;
  top: 13px;
  right: 2px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 300;
}

.form-details[open] summary::after {
  content: "−";
}

.form-details summary span {
  color: #666b79;
  font-weight: 500;
}

.detail-content {
  padding: 1px 0 5px;
}

.two-col {
  grid-template-columns: 1fr 1fr;
}

.guest-submit {
  margin-top: 18px;
}

.guest-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 6px 0;
  color: #686c79;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.guest-trust i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #4d515e;
}

/* DJ cockpit */
.dj-view {
  max-width: 1380px;
  margin: 0 auto;
}

.dj-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.dj-header .event-state {
  margin-bottom: 20px;
}

.dj-header .eyebrow {
  margin-bottom: 8px;
}

.dj-header h1 {
  margin-bottom: 9px;
  font-size: clamp(45px, 5vw, 76px);
}

.dj-header p:last-child {
  margin-bottom: 0;
}

.status-pill {
  margin-bottom: 8px;
  padding: 10px 13px;
}

.status-pill.online {
  border-color: rgba(117, 239, 178, 0.18);
  color: var(--green);
  background: rgba(117, 239, 178, 0.06);
}

.status-pill.warning {
  border-color: rgba(255, 201, 107, 0.2);
  color: var(--amber);
  background: rgba(255, 201, 107, 0.06);
}

.status-pill.warning i {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 201, 107, 0.1), 0 0 16px rgba(255, 201, 107, 0.4);
}

.dj-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.queue-card,
.qr-card {
  padding: 24px;
}

.queue-toolbar,
.qr-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.queue-toolbar h2,
.qr-heading h2 {
  margin: 4px 0 0;
}

.count {
  display: inline-grid;
  place-items: center;
  min-width: 29px;
  height: 29px;
  margin-left: 4px;
  padding: 0 8px;
  border-radius: 999px;
  color: #140d21;
  background: var(--violet);
  font-size: 13px;
  vertical-align: 3px;
}

.quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  color: var(--muted-light);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 700;
}

.quiet-button span {
  font-size: 17px;
}

.queue {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.empty-state {
  place-items: center;
  min-height: 360px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  margin-top: 16px;
  color: var(--muted-light);
  font-size: 16px;
}

.empty-state span {
  max-width: 320px;
  margin-top: -12px;
  font-size: 12px;
}

.empty-visual {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}

.empty-visual i {
  display: block;
  width: 4px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--violet), var(--pink));
  opacity: 0.65;
}

.empty-visual i:nth-child(1) { height: 12px; }
.empty-visual i:nth-child(2) { height: 27px; }
.empty-visual i:nth-child(3) { height: 38px; }
.empty-visual i:nth-child(4) { height: 20px; }
.empty-visual i:nth-child(5) { height: 9px; }

.request-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 15px 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(4, 5, 9, 0.42);
  transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.request-item.status-pending {
  border-color: rgba(169, 139, 255, 0.2);
  background: linear-gradient(100deg, rgba(169, 139, 255, 0.07), rgba(4, 5, 9, 0.42) 46%);
}

.request-item.status-accepted {
  border-color: rgba(117, 239, 178, 0.2);
  background: linear-gradient(100deg, rgba(117, 239, 178, 0.06), rgba(4, 5, 9, 0.42) 46%);
}

.request-item.status-later {
  border-color: rgba(255, 201, 107, 0.18);
}

.request-item.status-played,
.request-item.status-rejected {
  opacity: 0.5;
}

.request-main {
  min-width: 0;
}

.request-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.request-title {
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-artist {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.request-message {
  width: fit-content;
  max-width: 100%;
  margin-top: 11px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #c5c7d0;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.request-side {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.request-count,
.status-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.request-count {
  color: #17101f;
  background: var(--violet);
}

.status-label {
  border: 1px solid var(--line);
  color: var(--muted-light);
  background: rgba(255, 255, 255, 0.035);
}

.request-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.request-actions button {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--muted-light);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 720;
}

.request-actions button[data-status="accepted"] {
  color: var(--green);
}

.request-actions button[data-status="played"] {
  color: var(--violet);
}

.request-actions button[data-status="rejected"] {
  margin-left: auto;
  color: var(--danger);
}

.qr-card {
  position: sticky;
  top: 24px;
}

.mini-live {
  padding: 7px 9px;
  color: var(--green);
}

.qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  margin: 22px auto 17px;
  padding: 17px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.qr-frame::before,
.qr-frame::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: var(--violet-strong);
  border-style: solid;
}

.qr-frame::before {
  top: -5px;
  left: -5px;
  border-width: 2px 0 0 2px;
  border-radius: 12px 0 0;
}

.qr-frame::after {
  right: -5px;
  bottom: -5px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 12px;
}

.qr-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.qr-copy {
  margin-bottom: 17px;
  font-size: 12px;
  text-align: center;
}

.qr-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.qr-action {
  min-height: 46px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted-light);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 720;
}

.qr-action b {
  margin-left: 5px;
  color: var(--violet);
}

.url {
  margin: 12px 4px 0;
  overflow-wrap: anywhere;
  color: #686c78;
  font-size: 10px;
  text-align: center;
}

/* Separate QR presentation for a screen or projector */
body.display-mode {
  overflow: auto;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 118, 189, 0.14), transparent 34rem),
    radial-gradient(circle at 10% 90%, rgba(169, 139, 255, 0.18), transparent 38rem),
    #07080c;
}

body.display-mode .topbar,
body.display-mode footer {
  display: none;
}

body.display-mode .shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(28px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left));
}

.display-view,
.display-shell {
  min-height: calc(100vh - 56px);
  min-height: calc(100dvh - 56px);
}

.display-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 42vw);
  align-items: center;
  gap: clamp(42px, 7vw, 120px);
  width: min(100%, 1500px);
  margin: 0 auto;
}

.display-copy h1 {
  max-width: 820px;
  margin: 20px 0 14px;
  font-size: clamp(58px, 8vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.display-dj {
  margin: 0;
  color: var(--violet);
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 760;
}

.display-instruction {
  max-width: 620px;
  margin: 28px 0 22px;
  color: var(--muted-light);
  font-size: clamp(17px, 1.55vw, 24px);
}

.fullscreen-button {
  min-height: 48px;
  padding: 10px 16px;
}

.display-qr-wrap {
  text-align: center;
}

.display-qr-frame {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 38px);
  border-radius: clamp(28px, 4vw, 52px);
  background: #fff;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5), 0 0 80px rgba(169, 139, 255, 0.1);
}

.display-qr-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}

.display-url {
  margin: 22px auto 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: clamp(12px, 1.2vw, 18px);
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100% - 40px, 1380px);
  margin: 0 auto;
  padding: 0 0 max(24px, env(safe-area-inset-bottom));
  color: #5d606c;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #4b4e59;
}

@media (hover: hover) {
  .action-button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
  }

  .suggestion:hover,
  .quiet-button:hover,
  .request-actions button:hover,
  .icon-button:hover,
  .qr-action:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.065);
  }
}

@media (max-width: 980px) {
  .shell {
    padding-top: 58px;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: 0;
  }

  .hero {
    max-width: 720px;
  }

  .setup-card {
    width: min(100%, 620px);
  }

  .dj-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .display-shell {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 44vw);
    gap: 36px;
  }
}

@media (max-width: 820px) {
  .dj-layout {
    grid-template-columns: 1fr;
  }

  .qr-card {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 0 24px;
    align-items: center;
  }

  .qr-heading,
  .qr-copy,
  .qr-card .action-button,
  .qr-card .url {
    grid-column: 1;
  }

  .qr-frame {
    grid-column: 2;
    grid-row: 1 / span 5;
    margin: 0;
  }

  .display-shell {
    grid-template-columns: 1fr;
    align-content: center;
    text-align: center;
  }

  .display-copy h1,
  .display-instruction {
    margin-right: auto;
    margin-left: auto;
  }

  .display-copy .event-state {
    margin-right: auto;
    margin-left: auto;
  }

  .display-qr-frame {
    width: min(74vw, 480px);
  }
}

@media (max-width: 640px) {
  .topbar,
  .shell,
  footer {
    width: min(100% - 28px, 100%);
  }

  .topbar {
    padding-top: max(17px, env(safe-area-inset-top));
  }

  .brand-mark {
    width: 33px;
    height: 33px;
    border-radius: 11px;
  }

  .brand-name {
    font-size: 17px;
  }

  .product-badge {
    padding: 7px 9px;
    font-size: 9px;
  }

  .shell {
    padding: 46px 0 56px;
  }

  h1 {
    font-size: clamp(45px, 14vw, 67px);
  }

  .home-grid {
    gap: 36px;
  }

  .feature-row {
    gap: 6px;
  }

  .feature-row span {
    padding: 8px 10px;
    font-size: 10px;
  }

  .card {
    border-radius: 24px;
  }

  .setup-card,
  .request-card,
  .queue-card,
  .qr-card {
    padding: 20px;
  }

  .guest-view {
    margin-top: -12px;
  }

  .guest-header {
    padding-bottom: 24px;
  }

  .guest-header .event-state {
    margin-bottom: 22px;
  }

  .guest-header h1 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .request-intro h2 {
    font-size: 20px;
  }

  .search-field input {
    height: 60px;
    font-size: 16px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .guest-submit {
    position: sticky;
    z-index: 4;
    bottom: max(12px, env(safe-area-inset-bottom));
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4), 0 10px 34px rgba(169, 139, 255, 0.18);
  }

  .guest-trust {
    gap: 7px;
    font-size: 8px;
  }

  .dj-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .dj-header h1 {
    font-size: 44px;
  }

  .status-pill {
    margin: 0;
  }

  .queue-toolbar {
    align-items: flex-start;
  }

  .quiet-button {
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  .quiet-button span {
    font-size: 19px;
  }

  .request-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }

  .request-side {
    grid-row: 1;
    justify-self: end;
  }

  .request-main {
    grid-row: 1;
    padding-right: 88px;
  }

  .request-actions {
    grid-column: 1;
  }

  .request-actions button {
    flex: 1 1 auto;
  }

  .request-actions button[data-status="rejected"] {
    flex: 0 0 44px;
    margin-left: 0;
    overflow: hidden;
    color: transparent;
  }

  .request-actions button[data-status="rejected"]::after {
    content: "×";
    color: var(--danger);
    font-size: 17px;
  }

  .qr-card {
    display: block;
  }

  .qr-actions {
    grid-template-columns: 1fr;
  }

  .qr-frame {
    width: min(100%, 280px);
    margin: 22px auto 17px;
  }

  body.display-mode .shell {
    padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
  }

  .display-shell {
    gap: 30px;
  }

  .display-copy h1 {
    margin-top: 14px;
    font-size: clamp(46px, 15vw, 72px);
  }

  .display-instruction {
    margin-top: 18px;
    font-size: 15px;
  }

  .display-qr-frame {
    width: min(82vw, 420px);
    padding: 18px;
    border-radius: 28px;
  }
}

@media (max-width: 390px) {
  .topbar,
  .shell,
  footer {
    width: calc(100% - 22px);
  }

  .product-badge {
    letter-spacing: 0;
  }

  .setup-card,
  .request-card,
  .queue-card,
  .qr-card {
    padding: 17px;
  }

  .request-intro {
    gap: 10px;
  }

  .guest-trust i,
  .guest-trust span:nth-of-type(2) {
    display: none;
  }
}

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

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
