.placement-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.placement-overlay.open {
  display: flex;
}

.placement-panel {
  width: min(720px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  color: #e2e8f0;
}

.placement-head {
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.placement-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.placement-head p {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.placement-body {
  padding: 1.25rem;
}

.placement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
}

.placement-meta span {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
}

.placement-q {
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.placement-options {
  display: grid;
  gap: 0.5rem;
}

.placement-opt {
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.placement-opt:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(30, 41, 59, 0.9);
}

.placement-opt.selected {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.18);
}

.placement-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.placement-btn {
  border: 0;
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.placement-btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

.placement-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.placement-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.placement-result-score {
  font-size: 2.5rem;
  font-weight: 800;
  color: #a5b4fc;
  line-height: 1;
}

.placement-result-box {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 1rem;
  padding: 1rem;
  margin-top: 1rem;
}

.placement-result-box h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.placement-result-box p {
  margin: 0;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.placement-celebrate {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(52, 211, 153, 0.25);
  margin-bottom: 1rem;
}

.placement-celebrate__emoji {
  font-size: 2rem;
  margin: 0 0 0.35rem;
  line-height: 1;
}

.placement-celebrate__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.45;
}

.placement-celebrate__title strong {
  color: #6ee7b7;
}

.placement-celebrate__sub {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.placement-path-card {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}

.placement-path-card__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.placement-path-card__title {
  margin: 0.35rem 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #f8fafc;
}

.placement-path-card__hint {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.placement-cta-line {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fde68a;
  text-align: center;
}

.placement-btn-celebrate {
  background: linear-gradient(135deg, #10b981, #6366f1);
}

.placement-review-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
  max-height: 220px;
  overflow: auto;
}

.placement-review-item {
  font-size: 0.78rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.placement-review-item.ok {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.placement-review-item.bad {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}
