/* Compound floor plan + recap + Durbar badge */
.compound-plan {
  background: linear-gradient(160deg, #3d5c2e 0%, #2c1810 40%, #4a2e1f 100%);
  border: 3px solid var(--sand);
  border-radius: 16px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}
.plan-label {
  font-size: 0.8rem;
  color: var(--sand-light);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  min-height: 160px;
}
.plan-room {
  border: 2px solid rgba(232,213,181,.35);
  background: rgba(196,165,116,.2);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  transition: transform .15s, background .15s;
}
.plan-room:hover:not(.locked) {
  background: rgba(212,160,23,.25);
  transform: scale(1.03);
}
.plan-room.locked {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(0,0,0,.25);
}
.plan-room.courtyard { grid-column: 1 / -1; min-height: 70px; background: rgba(61,107,53,.35); }
.pr-icon { font-size: 1.4rem; }
.plan-hint { font-size: 0.68rem; color: var(--text-muted); margin-top: 0.5rem; }

.recap-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.recap-modal.open { display: flex; }
.recap-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 1.25rem;
  max-width: 340px;
  width: 100%;
  border: 2px solid var(--sand);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.recap-card h3 { font-family: var(--font-display); color: var(--sand-light); margin-bottom: 0.75rem; }
.recap-card li { margin: 0.35rem 0; font-size: 0.88rem; color: var(--text); }

.durbar-banner {
  text-align: center;
  background: linear-gradient(90deg, #d4a017, #c45c2a);
  color: #1a120b;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.35rem;
  position: relative;
  z-index: 17;
}
.rival-toast { border-color: #a33b2b !important; }
