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

/* ---------- the galaxy ---------- */
.fp-gal { width: min(100%, 320px); height: auto; display: block; overflow: visible; }
.fp-gal.fp-small { width: min(100%, 190px); }
.fp-gal.fp-live { cursor: pointer; }
.fp-stars circle { fill: #6d7496; transition: fill .25s, r .25s; }
.fp-stars circle.on { fill: var(--gold); }
.fp-stars circle.origin { fill: #fff; filter: drop-shadow(0 0 4px var(--gold)); }
.fp-lines line { stroke: var(--gold); stroke-width: .7; stroke-opacity: .55; }
.fp-front { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-opacity: 0; }
.fp-front.on { stroke-opacity: .35; }
.fp-sun circle { fill: none; stroke: var(--violet-bright); stroke-width: 2.2; }
.fp-sun text { fill: var(--violet-bright); font: 700 15px var(--sans); }

.fp-clock { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fp-clock span { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.fp-clock b { font: 600 20px var(--mono); color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------- the galaxy's day ---------- */
.fp-day { width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.fp-dlab { font-size: 13px; font-weight: 700; color: var(--dim); text-align: center; }
.fp-dtrack { position: relative; height: 16px; border-radius: 8px; background: linear-gradient(90deg, #1c2340, #2c2a5e 50%, #3a2f6a); margin-top: 4px; }
.fp-day.marks .fp-dtrack { margin-top: 22px; margin-bottom: 20px; }
.fp-dmark { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; border-radius: 2px; display: none; }
.fp-day.marks .fp-dmark { display: block; }
.fp-dmark em { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; white-space: nowrap; }
.fp-dearth { background: #6fc3ff; }
.fp-dearth em { color: #6fc3ff; bottom: auto; top: calc(100% + 4px); }
.fp-dold { background: var(--violet-bright); }
.fp-dold em { color: var(--violet-bright); }
.fp-dticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); font-weight: 600; }
.fp-drow { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 3px 8px; }
.fp-dspan { grid-column: 1 / -1; grid-row: 2; }
.fp-drow span { font-size: 12.5px; font-weight: 700; color: var(--dim); }
.fp-drow b { font-size: 14px; color: var(--text); min-height: 18px; }
.fp-dspan { height: 10px; border-radius: 5px; background: rgba(255,255,255,.05); position: relative; overflow: hidden; }
.fp-dspan i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 5px; background: var(--gold); box-shadow: 0 0 8px rgba(252,192,80,.7); transition: width .4s; }
.fp-drow.slow .fp-dspan i { background: #ff9f5a; }
.fp-drow.fast b { color: var(--gold); }
.fp-drow.slow b { color: #ffb27a; }

/* ---------- photos ---------- */
.fp-photo img { width: 100%; max-width: 340px; max-height: 34vh; object-fit: cover; border-radius: 14px; display: block; }
.fp-face img { width: 220px; aspect-ratio: 1; }

/* ---------- the chain ---------- */
.fp-chain { width: 100%; display: grid; grid-template-columns: 1fr 104px; grid-template-rows: repeat(5, auto); column-gap: 8px; row-gap: 6px; }
.fp-link { grid-column: 1; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; line-height: 1.25; }
.fp-link i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--mono); font-style: normal; background: var(--raised); color: var(--text); }
.fp-brk { grid-column: 2; display: flex; align-items: center; padding-left: 10px; border-left: 3px solid; font-size: 13px; line-height: 1.2; }
.fp-brk.fp-ka { grid-row: 1 / 4; border-color: var(--violet-bright); color: var(--violet-bright); }
.fp-brk.fp-kb { grid-row: 4; border-color: var(--gold); color: var(--gold); }
.fp-brk.fp-kc { grid-row: 5; border-color: #6fc3ff; color: #6fc3ff; }
.fp-link.fp-ka i { background: rgba(169,155,255,.2); color: var(--violet-bright); }
.fp-link.fp-kb i { background: rgba(252,192,80,.2); color: var(--gold); }
.fp-link.fp-kc i { background: rgba(111,195,255,.2); color: #6fc3ff; }

/* ---------- the ocean and the tub ---------- */
.fp-ocean { position: relative; width: 100%; max-width: 340px; height: 190px; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #1d4f86, #0b2447); }
.fp-waves { position: absolute; inset: 0; background: repeating-linear-gradient(170deg, rgba(255,255,255,.06) 0 2px, transparent 2px 18px); }
.fp-oclab { position: absolute; left: 12px; bottom: 10px; font-size: 13px; font-weight: 700; color: #cfe6ff; }
.fp-tub { position: absolute; right: 18px; top: 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fp-tub i { width: 18px; height: 12px; border-radius: 4px; background: var(--gold); box-shadow: 0 0 10px rgba(252,192,80,.8); }
.fp-tub span { font-size: 12px; font-weight: 700; color: var(--gold); }

@media (max-height: 700px) {
  .fp-gal { width: min(100%, 200px); }
  .fp-gal.fp-small { width: min(100%, 110px); }
  .fp-hero img { max-height: 28vh; }
  .fp-photo img { max-height: 26vh; }
  .fp-face img { width: 160px; }
  .fp-ocean { height: 150px; }
  .fp-link { padding: 6px 10px; font-size: 13.5px; }
  .fp-day { padding: 8px 10px 10px; gap: 6px; }
}
