/* Drake Equation lesson. All rules scoped under .dq-* */
.dq-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dq-note { font-size: 13px; color: var(--dim); text-align: center; }
.dq-hero img { width: 240px; max-width: 100%; max-height: 34vh; object-fit: contain; display: block; filter: drop-shadow(0 18px 30px rgba(123,92,253,.35)); }

/* ---------- the cafe ---------- */
.dq-cafe { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dq-room { width: min(100%, 340px); height: auto; display: block; }
.dq-floor { fill: #2a2035; stroke: #5b4a3a; stroke-width: 3; }
.dq-door { fill: var(--gold); }
.dq-lab { fill: var(--dim); font: 700 15px var(--sans); }
.dq-p { fill: #F6C48A; stroke: #7a4b20; stroke-width: 1.5; transition: cx .5s ease-out, cy .5s ease-out; }
.dq-read { display: flex; gap: 28px; }
.dq-read div { display: flex; flex-direction: column; align-items: center; }
.dq-read span { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.dq-read b { font: 600 24px var(--mono); color: var(--gold); }

/* ---------- the rule ---------- */
.dq-rule { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.dq-rrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; text-align: center; }
.dq-rrow b { width: 100%; font-size: 16px; }
.dq-rrow span { padding: 4px 10px; border-radius: 8px; background: var(--raised); font-weight: 600; }
.dq-rrow i { font-style: normal; font-weight: 800; color: var(--dim); }
.dq-rrow i:first-of-type { display: none; }
.dq-gold { border-color: rgba(252,192,80,.5); }
.dq-gold b { color: var(--gold); }

/* ---------- the recipe ---------- */
.dq-rec { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.dq-step { display: grid; grid-template-columns: 18px 1fr auto 26px; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; line-height: 1.2; }
.dq-step i { font-style: normal; font-weight: 800; color: var(--dim); text-align: center; }
.dq-step u { text-decoration: none; font: 600 12.5px var(--mono); color: var(--faint); text-align: right; }
.dq-step.dq-life { border-color: rgba(252,192,80,.45); }
.dq-step.dq-eq { background: transparent; border-color: var(--gold); color: var(--gold); }
.dq-tag { font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: 999px; opacity: 0; white-space: nowrap; }
.dq-tag.on { opacity: 1; animation: slotIn .25s cubic-bezier(.34,1.56,.64,1) both; }
.dq-tag.known { color: var(--mint-ink); background: var(--mint); }
.dq-tag.guess { color: var(--text); background: #5b45c8; }

/* ---------- the galaxy of signals ---------- */
.dq-sky { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dq-gal { width: min(100%, 250px); height: auto; display: block; }
.dq-dots circle { fill: #3b3f5c; opacity: .55; transition: fill .2s, opacity .2s; }
.dq-dots circle.on { fill: var(--gold); opacity: 1; }
.dq-earth circle { fill: #6fc3ff; stroke: #fff; stroke-width: 1.2; }
.dq-earth text { fill: #6fc3ff; font: 700 20px var(--sans); }
.dq-n { display: flex; flex-direction: column; align-items: center; }
.dq-n b { font: 600 24px var(--mono); color: var(--gold); }
.dq-n span { font-size: 13px; color: var(--dim); text-align: center; }
.dq-mine { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: 12.5px; color: var(--faint); font-weight: 600; }
.dq-pair { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dq-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dq-col h4 { margin: 0; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.dq-half .dq-gal { width: 100%; }
.dq-half .dq-earth text { display: none; }
.dq-half .dq-n b { font-size: 16px; }
.dq-half .dq-n span { display: none; }
.dq-diff { font-size: 12.5px; color: var(--dim); text-align: center; line-height: 1.35; }

/* ---------- photo ---------- */
.dq-photo img { width: 220px; max-width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; }

@media (max-height: 700px) {
  .dq-gal { width: min(100%, 180px); }
  .dq-room { width: min(100%, 290px); }
  .dq-hero img { max-height: 28vh; }
  .dq-step { padding: 3px 10px; font-size: 13px; }
  .dq-rec { gap: 3px; }
  .dq-tight .dq-step { padding: 2px 10px; }
  .dq-tight .dq-eq { display: none; }
  .dq-dialsky .dq-gal { width: min(100%, 140px); }
  .dq-photo img { width: 160px; }
  .dq-n b { font-size: 20px; }
}
