.demo-rl-maze {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.demo-rl-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 520px) {
  .demo-rl-compare { grid-template-columns: 1fr; }
}

.demo-rl-transition {
  margin: 0.65rem 0;
  padding: 0.65rem 0.8rem;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.65;
}

.demo-rl-chip {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  margin: 0.1rem 0.05rem;
  border-radius: 5px;
  background: #f0f3f7;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.demo-rl-chip.pos {
  background: #d8efed;
  color: #0a524f;
}

.demo-rl-chip.neg {
  background: #fde8e4;
  color: #8b2e1f;
}

.demo-rl-arrow {
  color: var(--muted);
  margin: 0 0.15rem;
}

.demo-rl-qpanel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0.55rem 0.7rem;
  background: var(--code-bg, #f0f3f7);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.demo-rl-qtitle {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.demo-rl-qval {
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--line);
}

.demo-rl-qval.best {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.demo-rl-qhint {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  width: 100%;
}
