/* Ditki homepage brain quiz — scoped under .dbq */
.dbq {
  --dbq-ink: #1a2b4a;
  --dbq-muted: #5b6b84;
  --dbq-card: #ffffff;
  --dbq-line: #e4eaf2;
  --dbq-accent: #2f6fed;
  --dbq-good: #1f9d55;
  --dbq-good-bg: #e8f8ee;
  --dbq-bad: #c23b2e;
  --dbq-bad-bg: #fdecea;
  --dbq-glow: rgba(0, 200, 255, 0.85);
  --dbq-shadow: 0 18px 40px rgba(26, 43, 74, 0.14);
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--dbq-ink);
  -webkit-font-smoothing: antialiased;
}

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

.dbq-stage {
  position: relative;
  width: 100%;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.dbq-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(165deg, #f7fbff 0%, #eef4fb 48%, #f9f6f2 100%);
  box-shadow: var(--dbq-shadow);
}

.dbq-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 42%;
  user-select: none;
  pointer-events: none;
}

.dbq-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.dbq-hotspot {
  fill: rgba(255, 120, 140, 0.01);
  stroke: transparent;
  stroke-width: 2;
  cursor: pointer;
  transition: fill 160ms ease, stroke 160ms ease, filter 160ms ease;
  pointer-events: all;
}

.dbq-hotspot.is-lit,
.dbq-hotspot:hover {
  fill: rgba(0, 210, 255, 0.52);
  stroke: rgba(0, 245, 255, 1);
  stroke-width: 3.5;
  filter: drop-shadow(0 0 14px var(--dbq-glow)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
}

.dbq-hotspot.is-correct {
  fill: rgba(31, 157, 85, 0.35);
  stroke: rgba(31, 157, 85, 0.95);
  filter: drop-shadow(0 0 12px rgba(31, 157, 85, 0.55));
}

.dbq-hotspot.is-wrong {
  fill: rgba(194, 59, 46, 0.28);
  stroke: rgba(194, 59, 46, 0.9);
  filter: drop-shadow(0 0 10px rgba(194, 59, 46, 0.45));
}

.dbq-card {
  position: absolute;
  right: 3.5%;
  bottom: -7.25rem;
  z-index: 6;
  width: min(52%, 300px);
  padding: 1rem 1.05rem 0.9rem;
  background: var(--dbq-card);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(20, 35, 60, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.dbq-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.dbq-card h2 {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #15284a;
}

.dbq-progress {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8a97ad;
  white-space: nowrap;
}

.dbq-q {
  margin: 0 0 0.75rem;
  font-size: clamp(0.78rem, 1.9vw, 0.9rem);
  line-height: 1.35;
  color: var(--dbq-muted);
}

.dbq-options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}

.dbq-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.42rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--dbq-ink);
  font: inherit;
  font-size: clamp(0.78rem, 1.9vw, 0.9rem);
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.dbq-option:hover,
.dbq-option.is-lit {
  background: rgba(0, 200, 255, 0.22);
  border-color: rgba(0, 210, 255, 0.55);
}

.dbq-option:focus-visible {
  outline: 2px solid var(--dbq-accent);
  outline-offset: 2px;
}

.dbq-option.is-correct {
  background: var(--dbq-good-bg);
  border-color: rgba(31, 157, 85, 0.35);
  color: #145c32;
}

.dbq-option.is-wrong {
  background: var(--dbq-bad-bg);
  border-color: rgba(194, 59, 46, 0.3);
  animation: dbq-shake 420ms ease;
}

.dbq-option:disabled {
  cursor: default;
}

.dbq-radio {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 2px solid #b7c3d6;
  display: inline-grid;
  place-items: center;
  background: #fff;
}

.dbq-option.is-lit .dbq-radio,
.dbq-option:hover .dbq-radio {
  border-color: #00d2ff;
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.28);
}

.dbq-option.is-correct .dbq-radio {
  border-color: var(--dbq-good);
  background: var(--dbq-good);
  color: #fff;
}

.dbq-option.is-correct .dbq-radio::after {
  content: "✓";
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.dbq-letter {
  flex: 0 0 auto;
  width: 1rem;
  font-weight: 700;
  color: #8a97ad;
}

.dbq-label {
  flex: 1 1 auto;
  font-weight: 550;
}

.dbq-feedback {
  min-height: 1.35rem;
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.3;
}

.dbq-feedback.is-bad {
  color: var(--dbq-bad);
}

.dbq-feedback.is-good {
  color: var(--dbq-good);
}

.dbq-options[hidden] {
  display: none;
}

.dbq-next-cta {
  display: inline-flex;
  margin-top: 0.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: var(--dbq-accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.25;
  transition: transform 0.15s ease, background 0.15s ease;
}

.dbq-next-cta:hover {
  background: #245cd4;
  transform: translateY(-1px);
}

.dbq-next-cta[hidden] {
  display: none;
}

.dbq-stage.is-complete .dbq-hotspot {
  pointer-events: none;
}

.dbq-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.dbq-frame .dbq-canvas {
  border-radius: 18px;
}

@keyframes dbq-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(2px);
  }
}

@media (max-width: 560px) {
  .dbq-card {
    width: min(92%, 320px);
    right: 50%;
    bottom: -6.5rem;
    transform: translateX(50%);
    padding: 0.85rem 0.9rem 0.75rem;
  }

  .dbq-frame {
    aspect-ratio: 4 / 5;
  }
}