/* Filter Bubble lesson. All rules scoped under .fbu-* */
.fbu-phone { width: 100%; max-width: 380px; margin: 8px auto; padding: 10px; border-radius: 26px; background: #0d1222; border: 2px solid var(--line-strong); box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 0 6px #161c2e; transition: opacity .3s, filter .3s; }
.fbu-phone.fbu-load { opacity: .35; filter: blur(1px); }
.fbu-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin-bottom: 8px; }
.fbu-chip { display: inline-flex; align-items: center; gap: 4px; font: 700 12px var(--sans); color: var(--text); transition: opacity .4s, color .4s; }
.fbu-chip i, .fbu-k i { width: 8px; height: 8px; border-radius: 50%; background: var(--k); flex: none; transition: background .4s; }
.fbu-chip.off { color: var(--faint); text-decoration: line-through; }
.fbu-chip.off i { background: var(--faint); }
.fbu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fbu-tile { position: relative; min-height: 92px; padding: 8px 9px 9px; border-radius: 12px; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--k) 55%, transparent); text-align: left; display: flex; flex-direction: column; gap: 3px; animation: fbuIn .45s cubic-bezier(.2,.8,.2,1) both; }
.fbu-tile:disabled { cursor: default; opacity: 1; color: var(--text); }
.fbu-tile::before { content: ''; position: absolute; inset: 0; border-radius: 11px; background: linear-gradient(135deg, color-mix(in srgb, var(--k) 22%, transparent), transparent 70%); pointer-events: none; }
.fbu-pic { position: absolute; top: 6px; right: 6px; width: 50px; height: 50px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.fbu-k { display: inline-flex; align-items: center; gap: 5px; font: 800 12px var(--sans); color: var(--k); text-transform: uppercase; letter-spacing: .05em; }
.fbu-tile b { margin-top: auto; font: 700 14px/1.2 var(--sans); }
.fbu-hit { border-color: var(--k); box-shadow: 0 0 16px color-mix(in srgb, var(--k) 60%, transparent); }
@keyframes fbuIn { from { opacity: 0; translate: 0 -18px; scale: .96; } }

/* held back */
.fbu-held { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fbu-held .fbu-phone { transition: scale .6s; }
.fbu-pile { width: 100%; max-width: 340px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; opacity: 0; translate: 0 -30px; transition: opacity .6s, translate .6s cubic-bezier(.2,.8,.2,1); }
.fbu-held.open .fbu-pile { opacity: 1; translate: 0 0; }
.fbu-pile .fbu-tile { filter: grayscale(1); opacity: .55; min-height: 0; animation: none; }
.fbu-held .fbu-pic, .fbu-news .fbu-pic { width: 30px; height: 30px; top: 4px; right: 4px; }
.fbu-held .fbu-tile b, .fbu-news .fbu-tile b { margin-top: 0; padding-right: 22px; }
.fbu-cap { grid-column: 1 / -1; font: 800 12px var(--sans); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; text-align: center; }
.fbu-held .fbu-phone { padding: 8px; margin: 4px auto; }
.fbu-held .fbu-tile { min-height: 0; }

/* Egypt */
.fbu-sc { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fbu-two { width: 100%; max-width: 360px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fbu-mini { padding: 8px; border-radius: 18px; background: #0d1222; border: 2px solid var(--line-strong); min-height: 196px; }
.fbu-who { display: block; font: 800 12px var(--sans); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; text-align: center; margin-bottom: 6px; }
.fbu-bar { padding: 6px 10px; border-radius: 999px; background: var(--raised); font: 700 14px var(--sans); }
.fbu-res { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fbu-res li { padding: 6px 8px; border-radius: 8px; background: var(--surface); font: 600 13px/1.25 var(--sans); color: #8ab4f8; animation: fbuIn .4s ease-out both; }
.fbu-res li.fbu-rev { border-left: 3px solid var(--gold); color: var(--text); }
.fbu-note { font-size: 12.5px; color: var(--faint); text-align: center; max-width: 330px; }

/* big news */
.fbu-news { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fbu-big { width: 100%; max-width: 300px; min-height: 0; margin-top: 10px; animation: fbuBob 1.6s ease-in-out 2 both; box-shadow: 0 0 22px color-mix(in srgb, var(--k) 45%, transparent); }
.fbu-big b { font-size: 15px; }
.fbu-big.fbu-drop { transition: opacity .8s, filter .8s, translate .8s; opacity: .35; filter: grayscale(1); translate: 0 6px; animation: none; }
@keyframes fbuBob { 50% { translate: 0 -4px; } }
.fbu-news .fbu-phone { padding: 8px; }
.fbu-news .fbu-tile { min-height: 0; }

/* who built it */
.fbu-stat { width: 100%; max-width: 320px; margin: 0 auto; padding: 18px 20px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line-strong); box-shadow: 0 12px 30px rgba(0,0,0,.4); text-align: center; display: flex; flex-direction: column; gap: 2px; animation: fbuIn .45s ease-out both; }
.fbu-stat b { font: 800 34px/1.1 var(--serif); color: var(--gold); }
.fbu-stat span { font: 700 13px var(--sans); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }

@media (max-height: 700px) {
  .fbu-held { gap: 6px; }
  .fbu-held .fbu-phone { margin: 4px auto; padding: 6px; }
  .fbu-held .fbu-strip { margin-bottom: 4px; }
  .fbu-pile { gap: 4px; }
  .fbu-tile { min-height: 76px; padding: 5px 8px 6px; }
  .fbu-pic { width: 38px; height: 38px; top: 4px; right: 4px; }
  .fbu-tile b { font-size: 13px; }
  .fbu-grid { gap: 5px; }
  .fbu-phone { padding: 8px; }
  .fbu-held .fbu-tile b, .fbu-news .fbu-tile b { font-size: 12px; }
  .fbu-held .fbu-k, .fbu-news .fbu-k { font-size: 12px; }
  .fbu-mini { min-height: 176px; }
  .fbu-res li { font-size: 12.5px; padding: 5px 7px; }
}
