/* Great Filter lesson. All rules scoped under .gf-* */
.gf-sc { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gf-note { font-size: 13px; color: var(--dim); text-align: center; }
.gf-hero img { width: 260px; max-width: 100%; max-height: 34vh; object-fit: contain; display: block; filter: drop-shadow(0 18px 30px rgba(123,92,253,.35)); }
.gf-photo img { width: 100%; max-width: 360px; aspect-ratio: 16/9; object-fit: cover; border-radius: 14px; display: block; }

/* ---------- the staircase: top step first, each one shifted right ---------- */
.gf-stairs { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 4px; }
.gf-step { position: relative; overflow: hidden; min-height: 44px; margin-left: calc(var(--i) * 9px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); transition: opacity .25s, border-color .25s, background .25s; }
.gf-step.gf-ahead { border-style: dashed; }
.gf-lab { position: relative; z-index: 1; font-size: 14px; font-weight: 600; line-height: 1.2; }
.gf-n { position: relative; z-index: 1; font: 600 14px var(--mono); color: var(--gold); white-space: nowrap; }
.gf-zero .gf-n { color: var(--red); }
.gf-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gold); border-radius: 0 3px 3px 0; transition: width .12s linear; }
.gf-zero .gf-bar { background: var(--red); }
.gf-here { display: flex; align-items: center; gap: 8px; margin: 2px 0 2px calc(4.5 * 9px); color: #6fc3ff; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.gf-here::before, .gf-here::after { content: ''; flex: 1; border-top: 2px dashed rgba(111,195,255,.6); }

/* the filter: a mesh across the step */
.gf-step.gf-f { border: 2px solid var(--red); background: repeating-linear-gradient(45deg, rgba(255,92,92,.18) 0 2px, transparent 2px 9px), repeating-linear-gradient(-45deg, rgba(255,92,92,.18) 0 2px, transparent 2px 9px), var(--surface); }
.gf-step.gf-f .gf-lab::before { content: 'Filter · '; color: var(--red); font-weight: 800; }

/* tappable steps */
.gf-step.gf-live { cursor: pointer; background: var(--raised); border-color: var(--line-strong); box-shadow: 0 3px 0 var(--ledge, rgba(0,0,0,.35)); }
.gf-step.gf-live:active { transform: translateY(2px); box-shadow: none; }
.gf-step.gf-got { border-color: var(--mint); }
.gf-step.gf-out { opacity: .5; }

.gf-tag { font-style: normal; font-size: 11.5px; font-weight: 800; margin-left: 6px; padding: 1px 7px; border-radius: 999px; white-space: nowrap; display: none; vertical-align: 1px; }
.gf-tag.on { display: inline-block; animation: slotIn .25s cubic-bezier(.34,1.56,.64,1) both; }
.gf-tag.q { color: #fff; background: #5b45c8; }
.gf-tag.easy { color: var(--mint-ink); background: var(--mint); }
.gf-tag.none { color: #fff; background: var(--red); }

/* ---------- Earth's record ---------- */
.gf-rec { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 8px; }
.gf-card { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.gf-card b { font-size: 16px; }
.gf-card span { font-size: 14px; color: var(--dim); line-height: 1.3; }
.gf-card.on { border-color: var(--gold); }
.gf-card.on b { color: var(--gold); }

@media (max-height: 700px) {
  .gf-step { min-height: 34px; padding: 2px 10px; }
  .gf-step.gf-live { min-height: 42px; }
  .gf-stairs { gap: 2px; }
  .gf-sc { gap: 4px; }
  .gf-here { font-size: 11.5px; }
  .gf-here { margin: 0 0 0 calc(4.5 * 9px); }
  .gf-lab, .gf-n { font-size: 13px; }
  .gf-hero img { max-height: 28vh; }
  .gf-photo img { max-width: 280px; }
  .gf-card { padding: 7px 12px; }
}
