.fbq-launch-wrap {
  display: flex;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.fbq-launch {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #854b50, #907970);
  color: #f6eded;
  cursor: pointer;
  font: 600 16px/1.2 var(--fbq-body);
  padding: 14px 26px;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.fbq-launch:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.fbq-shell[hidden] {
  display: none !important;
}

.fbq-shell:not(.is-inline) {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 999999;
}

.fbq-backdrop {
  background: rgba(10, 9, 12, 0.78);
  inset: 0;
  position: absolute;
}

.fbq-dialog {
  background: #16151a;
  border: 1px solid rgba(202, 193, 176, 0.18);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
  max-height: min(88vh, 920px);
  max-width: 850px;
  overflow: auto;
  position: relative;
  width: 100%;
  z-index: 1;
}

.fbq-shell.is-inline .fbq-dialog {
  max-height: none;
  max-width: 850px;
  overflow: visible;
}

.fbq-close {
  align-items: center;
  appearance: none;
  background: rgba(22, 21, 26, 0.72);
  border: 1px solid rgba(202, 193, 176, 0.25);
  border-radius: 999px;
  color: #d9dee2;
  cursor: pointer;
  display: flex;
  font: 25px/1 Arial, sans-serif;
  height: 38px;
  justify-content: center;
  padding: 0 0 2px;
  position: sticky;
  float: right;
  right: 14px;
  top: 14px;
  width: 38px;
  z-index: 5;
}

body.fbq-modal-open {
  overflow: hidden;
}

.fbq-app {
  --fbq-sand: #cac1b0;
  --fbq-sand-dim: #a79e8c;
  --fbq-slate: #8693a0;
  --fbq-slate-bright: #adb7c1;
  --fbq-wine: #854b50;
  --fbq-wine-bright: #c67f84;
  --fbq-taupe: #907970;
  --fbq-taupe-bright: #b39d93;
  --fbq-bg-1: #16151a;
  --fbq-bg-2: #1d1b1f;
  --fbq-card: rgba(144, 121, 112, 0.14);
  --fbq-line: rgba(202, 193, 176, 0.16);
  --fbq-radius: 14px;
  --fbq-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --fbq-body: "Spectral", Georgia, "Times New Roman", serif;
  background:
    radial-gradient(ellipse at 15% -10%, rgba(133, 75, 80, 0.22), transparent 55%),
    radial-gradient(ellipse at 90% 5%, rgba(134, 147, 160, 0.16), transparent 45%),
    linear-gradient(180deg, var(--fbq-bg-1), var(--fbq-bg-2) 45%, var(--fbq-bg-1));
  color: var(--fbq-sand);
  font-family: var(--fbq-body);
  min-height: 650px;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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

.fbq-app .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.fbq-stars {
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, var(--fbq-wine-bright) 40%, transparent 41%),
    radial-gradient(1px 1px at 80% 15%, var(--fbq-sand) 40%, transparent 41%),
    radial-gradient(1px 1px at 60% 70%, var(--fbq-slate-bright) 40%, transparent 41%),
    radial-gradient(1.5px 1.5px at 30% 85%, var(--fbq-sand) 40%, transparent 41%),
    radial-gradient(1px 1px at 90% 60%, var(--fbq-wine-bright) 40%, transparent 41%),
    radial-gradient(1px 1px at 45% 40%, var(--fbq-slate-bright) 40%, transparent 41%);
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
}

.fbq-wrap {
  margin: 0 auto;
  max-width: 800px;
  padding: 42px 28px 58px;
  position: relative;
  z-index: 1;
}

.fbq-eyebrow {
  color: var(--fbq-wine-bright);
  font: 500 12px/1.4 var(--fbq-body);
  letter-spacing: 0.22em;
  margin-bottom: 14px;
  text-align: center;
  text-transform: uppercase;
}

.fbq-app h2 {
  background: linear-gradient(180deg, var(--fbq-sand), var(--fbq-taupe-bright) 75%);
  background-clip: text;
  color: transparent;
  font: 700 clamp(31px, 5.2vw, 49px)/1.08 var(--fbq-serif);
  margin: 0 0 16px;
  text-align: center;
  -webkit-background-clip: text;
}

.fbq-sub {
  color: var(--fbq-sand-dim);
  font: 400 16px/1.6 var(--fbq-body);
  margin: 0 auto 32px;
  max-width: 610px;
  text-align: center;
}

.fbq-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 36px;
}

.fbq-progress .fbq-dot {
  background: rgba(202, 193, 176, 0.14);
  border-radius: 2px;
  height: 4px;
  transition: background 0.3s ease;
  width: 34px;
}

.fbq-progress .fbq-dot.is-active {
  background: var(--fbq-wine-bright);
}

.fbq-progress .fbq-dot.is-done {
  background: var(--fbq-slate);
}

.fbq-screen {
  display: none;
}

.fbq-screen.is-active {
  animation: fbq-rise 0.38s ease both;
  display: block;
}

@keyframes fbq-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.fbq-app h3 {
  color: var(--fbq-sand);
  font: 600 clamp(23px, 3.4vw, 29px)/1.25 var(--fbq-serif);
  margin: 0 0 7px;
  text-align: center;
}

.fbq-hint {
  color: var(--fbq-sand-dim);
  font: 400 14px/1.5 var(--fbq-body);
  margin: 0 0 28px;
  text-align: center;
}

.fbq-genre-grid,
.fbq-pill-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fbq-book-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fbq-options {
  display: grid;
  gap: 12px;
}

.fbq-choice,
.fbq-book-card,
.fbq-option,
.fbq-pill {
  appearance: none;
  background: var(--fbq-card);
  border: 1px solid var(--fbq-line);
  color: var(--fbq-sand);
  cursor: pointer;
  font-family: inherit;
  margin: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}

.fbq-choice {
  align-items: center;
  border-radius: var(--fbq-radius);
  display: flex;
  gap: 14px;
  padding: 21px 19px;
  text-align: left;
}

.fbq-choice:hover,
.fbq-book-card:hover,
.fbq-pill:hover {
  border-color: var(--fbq-wine-bright);
  transform: translateY(-2px);
}

.fbq-option:hover {
  border-color: var(--fbq-wine-bright);
  transform: translateX(3px);
}

.fbq-choice.is-selected,
.fbq-book-card.is-selected,
.fbq-option.is-selected,
.fbq-pill.is-selected {
  background: linear-gradient(90deg, rgba(133, 75, 80, 0.23), rgba(134, 147, 160, 0.08));
  border-color: var(--fbq-wine-bright);
  box-shadow: 0 0 0 1px var(--fbq-wine-bright) inset;
}

.fbq-choice-emoji {
  font-size: 26px;
}

.fbq-choice-name {
  font: 600 19px/1.3 var(--fbq-serif);
}

.fbq-book-card {
  border-radius: var(--fbq-radius);
  padding: 14px 12px 16px;
  text-align: center;
  user-select: none;
}

.fbq-book-cover {
  align-items: center;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  color: rgba(22, 21, 26, 0.97);
  display: flex;
  font-family: var(--fbq-serif);
  font-weight: 700;
  justify-content: center;
  line-height: 1.18;
  margin-bottom: 10px;
  overflow: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  padding: 12px;
  position: relative;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.16);
}

.fbq-book-cover::after {
  color: rgba(22, 21, 26, 0.9);
  content: "✓";
  font-size: 16px;
  opacity: 0;
  position: absolute;
  right: 8px;
  top: 6px;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fbq-book-card.is-selected .fbq-book-cover::after {
  opacity: 1;
  transform: scale(1);
}

.fbq-book-author {
  color: var(--fbq-sand-dim);
  font-size: 12px;
  line-height: 1.35;
}

.fbq-counter {
  color: var(--fbq-sand-dim);
  font-size: 13px;
  margin-top: 11px;
  text-align: center;
}

.fbq-option {
  align-items: center;
  border-radius: var(--fbq-radius);
  display: flex;
  gap: 14px;
  padding: 17px 19px;
  text-align: left;
}

.fbq-option-emoji {
  font-size: 22px;
}

.fbq-option-text strong {
  display: block;
  font: 600 17px/1.3 var(--fbq-serif);
  margin-bottom: 3px;
}

.fbq-option-text small {
  color: var(--fbq-sand-dim);
  display: block;
  font: 400 13px/1.45 var(--fbq-body);
}

.fbq-pill {
  align-items: center;
  border-radius: 999px;
  display: flex;
  font-size: 15px;
  gap: 9px;
  justify-content: center;
  padding: 14px 18px;
}

.fbq-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
}

.fbq-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--fbq-wine-bright);
  border-radius: 999px;
  color: var(--fbq-sand);
  cursor: pointer;
  font: 500 15px/1.25 var(--fbq-body);
  padding: 13px 25px;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.fbq-btn.is-primary {
  background: linear-gradient(90deg, var(--fbq-wine), var(--fbq-taupe));
  border: 0;
  color: #f6eded;
  font-weight: 700;
}

.fbq-btn.is-ghost {
  border-color: transparent;
  color: var(--fbq-sand-dim);
  padding-left: 0;
}

.fbq-btn:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.fbq-btn:not(:disabled):hover {
  filter: brightness(1.15);
}

.fbq-capture,
.fbq-result-card {
  background: linear-gradient(180deg, rgba(133, 75, 80, 0.14), rgba(134, 147, 160, 0.07));
  border: 1px solid var(--fbq-line);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  padding: 34px 28px;
  text-align: center;
}

.fbq-capture > p {
  color: var(--fbq-sand-dim);
  font-size: 15px;
  line-height: 1.6;
  margin: 10px auto 23px;
  max-width: 570px;
}

.fbq-result-ready {
  font-size: 36px;
  margin-bottom: 9px;
}

.fbq-capture form {
  margin: 0 auto;
  max-width: 570px;
}

.fbq-capture input[type="email"] {
  background: rgba(22, 21, 26, 0.75);
  border: 1px solid var(--fbq-line);
  border-radius: 999px;
  color: var(--fbq-sand);
  font: 400 16px/1.3 var(--fbq-body);
  margin: 0 0 16px;
  outline: none;
  padding: 14px 19px;
  width: 100%;
}

.fbq-capture input[type="email"]:focus {
  border-color: var(--fbq-wine-bright);
  box-shadow: 0 0 0 1px var(--fbq-wine-bright);
}

.fbq-consent {
  align-items: flex-start;
  color: var(--fbq-sand-dim);
  cursor: pointer;
  display: flex;
  font-size: 12.5px;
  gap: 10px;
  line-height: 1.55;
  margin: 0 0 18px;
  text-align: left;
}

.fbq-consent input {
  flex: 0 0 auto;
  height: 17px;
  margin: 2px 0 0;
  width: 17px;
}

.fbq-capture form > .fbq-btn {
  width: 100%;
}

.fbq-honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.fbq-privacy,
.fbq-small {
  color: var(--fbq-sand-dim) !important;
  font-size: 12px !important;
  margin: 14px auto 0 !important;
}

.fbq-privacy a {
  color: var(--fbq-slate-bright);
}

.fbq-form-error {
  color: #ef9ca2;
  font-size: 13px;
  margin: 12px 0 0;
  min-height: 20px;
}

.fbq-confirmed {
  background: rgba(89, 126, 105, 0.18);
  border: 1px solid rgba(143, 196, 166, 0.38);
  border-radius: 10px;
  color: #b7ddc5;
  font-size: 14px;
  margin: 0 0 18px;
  padding: 11px 14px;
  text-align: center;
}

.fbq-result-tag {
  background: rgba(133, 75, 80, 0.16);
  border: 1px solid rgba(198, 127, 132, 0.4);
  border-radius: 999px;
  color: var(--fbq-wine-bright);
  display: inline-block;
  font: 500 12px/1.4 var(--fbq-body);
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  padding: 5px 14px;
  text-transform: uppercase;
}

.fbq-result-cover {
  align-items: center;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  color: rgba(22, 21, 26, 0.95);
  display: flex;
  font-family: var(--fbq-serif);
  font-weight: 700;
  justify-content: center;
  line-height: 1.22;
  margin: 0 auto 20px;
  overflow: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  padding: 14px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
  width: 150px;
}

.fbq-result-title {
  font-size: 29px !important;
  margin-bottom: 4px !important;
}

.fbq-result-author {
  color: var(--fbq-wine-bright);
  font-size: 15px;
  margin-bottom: 17px;
}

.fbq-result-why {
  color: var(--fbq-sand-dim);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 520px;
}

.fbq-alt-heading {
  margin: 26px 0 14px;
}

.fbq-alt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.fbq-alt-item {
  text-align: center;
  width: 100px;
}

.fbq-alt-cover {
  align-items: center;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  color: rgba(22, 21, 26, 0.95);
  display: flex;
  font-family: var(--fbq-serif);
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  margin-bottom: 8px;
  overflow: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  padding: 8px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
  width: 100px;
}

.fbq-alt-title {
  color: var(--fbq-sand-dim);
  font-size: 12px;
  line-height: 1.35;
}

.fbq-restart {
  margin-top: 28px;
  text-align: center;
}

.fbq-restart button {
  appearance: none;
  background: none;
  border: 0;
  color: var(--fbq-sand-dim);
  cursor: pointer;
  font: 400 13px/1.4 var(--fbq-body);
  text-decoration: underline;
}

.fbq-app :focus-visible,
.fbq-close:focus-visible,
.fbq-launch:focus-visible {
  outline: 2px solid var(--fbq-wine-bright);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .fbq-shell:not(.is-inline) {
    align-items: stretch;
    padding: 0;
  }

  .fbq-dialog {
    border-radius: 0;
    max-height: 100vh;
  }

  .fbq-wrap {
    padding: 44px 17px 45px;
  }

  .fbq-genre-grid,
  .fbq-pill-grid {
    grid-template-columns: 1fr;
  }

  .fbq-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fbq-nav {
    gap: 10px;
  }

  .fbq-btn {
    padding-left: 18px;
    padding-right: 18px;
  }

  .fbq-capture,
  .fbq-result-card {
    padding: 28px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fbq-screen.is-active {
    animation: none;
  }

  .fbq-choice,
  .fbq-book-card,
  .fbq-option,
  .fbq-pill,
  .fbq-launch {
    transition: none;
  }
}
