/* ==========================================================================
   FUN BITS — components
   Five card variants (A–E), category tiles, rails, collage, prose pages.
   ========================================================================== */

/* ==========================================================================
   A. BIG STICKER CARD — large featured game with its own colour field
   ========================================================================== */

.fb-big {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 0;
  border: 4px solid var(--fb-white);
  border-radius: var(--fb-r-xl);
  background: var(--fb-tone, var(--fb-orange-soft));
  box-shadow: var(--fb-shadow);
  overflow: hidden;
  transition: transform 0.3s var(--fb-ease), box-shadow 0.3s var(--fb-ease);
}

.fb-big:hover {
  transform: translateY(-4px);
  box-shadow: var(--fb-shadow-lift);
}

.fb-big__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 34px 18px 34px 34px;
}

.fb-big__flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--fb-white);
  background: var(--fb-ink);
  color: var(--fb-white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.fb-big__flag svg { width: 12px; height: 12px; color: var(--fb-yellow); }

.fb-big__title {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.fb-big__desc {
  max-width: 38ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fb-ink-2);
}

.fb-big__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fb-big__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 13px 26px;
  border: 3px solid var(--fb-white);
  border-radius: 999px;
  background: var(--fb-ink);
  color: var(--fb-white);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 5px 0 rgba(37, 37, 37, 0.18);
  transition: transform 0.2s var(--fb-ease), background-color 0.2s var(--fb-ease);
}
.fb-big:hover .fb-big__cta { background: var(--fb-orange); transform: translateX(3px); }
.fb-big__cta svg { width: 17px; height: 17px; }

.fb-big__art {
  position: relative;
  min-height: 340px;
  margin: 16px;
  border-radius: 30px;
  overflow: hidden;
  border: 3px solid var(--fb-white);
  box-shadow: 0 8px 0 rgba(37, 37, 37, 0.1);
}

.fb-big__art img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  transition: transform 0.6s var(--fb-ease);
}
.fb-big:hover .fb-big__art img { transform: scale(1.05); }

.fb-big__art-tag {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
}

/* Decorative sticker decorations on the big card */
.fb-big__spark {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  color: var(--fb-white);
}
.fb-big__spark--1 { width: 34px; height: 34px; right: 22px; bottom: 26px; transform: rotate(10deg); }
.fb-big__spark--2 { width: 18px; height: 18px; right: 62px; bottom: 74px; opacity: 0.7; }

/* ==========================================================================
   B. MINI STICKER CARD — square cover on a rounded colour surface
   ========================================================================== */

.fb-mini {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 10px 10px 14px;
  border: 3px solid var(--fb-white);
  border-radius: var(--fb-r-lg);
  background: var(--fb-tone, var(--fb-yellow-soft));
  box-shadow: var(--fb-shadow-sm);
  transition: transform 0.25s var(--fb-ease), box-shadow 0.25s var(--fb-ease);
}

.fb-mini:hover {
  transform: translateY(-5px) rotate(-0.6deg);
  box-shadow: var(--fb-shadow);
}

.fb-mini__cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.5);
}

.fb-mini__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--fb-ease);
}
.fb-mini:hover .fb-mini__cover img { transform: scale(1.08); }

.fb-mini__play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--fb-white);
  color: var(--fb-ink);
  box-shadow: 0 2px 8px rgba(37, 37, 37, 0.24);
  opacity: 0;
  transform: translateY(4px) scale(0.9);
  transition: opacity 0.22s var(--fb-ease), transform 0.22s var(--fb-ease);
}
.fb-mini:hover .fb-mini__play { opacity: 1; transform: translateY(0) scale(1); }
.fb-mini__play svg { width: 12px; height: 12px; }

.fb-mini__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-inline: 4px;
  min-width: 0;
}

.fb-mini__title {
  font-family: var(--fb-display);
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fb-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.fb-mini__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fb-mini__cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fb-ink-2);
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   C. TILTED CARD — rotated, white outline, tiny star label
   ========================================================================== */

.fb-tilt {
  position: relative;
  display: block;
  padding: 9px 9px 12px;
  border: 3px solid var(--fb-white);
  border-radius: var(--fb-r-md);
  background: var(--fb-tone, var(--fb-white));
  box-shadow: var(--fb-shadow-sm);
  transform: rotate(var(--fb-tilt, -3deg));
  transition: transform 0.28s var(--fb-ease), box-shadow 0.28s var(--fb-ease);
}

.fb-tilt:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.02);
  box-shadow: var(--fb-shadow);
  z-index: 3;
}

.fb-tilt__cover {
  aspect-ratio: 1;
  border-radius: 13px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
}

.fb-tilt__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--fb-ease);
}
.fb-tilt:hover .fb-tilt__cover img { transform: scale(1.07); }

.fb-tilt__title {
  display: block;
  margin-top: 9px;
  padding-inline: 2px;
  font-family: var(--fb-display);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-tilt__star {
  position: absolute;
  top: -11px;
  right: -9px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 3px solid var(--fb-white);
  background: var(--fb-orange);
  color: var(--fb-white);
  box-shadow: 0 3px 0 rgba(37, 37, 37, 0.16);
  transform: rotate(10deg);
}
.fb-tilt__star svg { width: 13px; height: 13px; }

/* ==========================================================================
   D. HORIZONTAL LABEL CARD — thumbnail left, copy right
   ========================================================================== */

.fb-hcard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 3px solid var(--fb-white);
  border-radius: var(--fb-r-md);
  background: var(--fb-white);
  box-shadow: var(--fb-shadow-sm);
  transition: transform 0.22s var(--fb-ease), box-shadow 0.22s var(--fb-ease);
}

.fb-hcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--fb-shadow);
}

.fb-hcard__thumb {
  position: relative;
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 15px;
  overflow: hidden;
  background: var(--fb-tone, var(--fb-wash));
}

.fb-hcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--fb-ease);
}
.fb-hcard:hover .fb-hcard__thumb img { transform: scale(1.08); }

.fb-hcard__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fb-hcard__title {
  font-family: var(--fb-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.fb-hcard__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fb-muted);
}

.fb-hcard__meta .fb-tag {
  flex: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-hcard__meta > span:last-child {
  flex: none;
  white-space: nowrap;
}

.fb-hcard__arrow {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--fb-wash);
  transition: background-color 0.2s var(--fb-ease), transform 0.2s var(--fb-ease);
}
.fb-hcard:hover .fb-hcard__arrow { background: var(--fb-ink); color: var(--fb-white); transform: translateX(2px); }
.fb-hcard__arrow svg { width: 14px; height: 14px; }

/* ==========================================================================
   E. COLLAGE MOSAIC — asymmetric board of mixed cards

   Explicit placement on a 12 x 6 board so the composition tiles with no gaps:
     rows 1-4 │ a (5x4 large) │ b (4x2) │ c (3x2)
              │               │ d (4x2) │ e (3x2)
     rows 5-6 │ note (3x2)    │ f (9x2 wide banner)
   ========================================================================== */

.fb-collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  /* Fixed row track: 4 tall rows + 2 shorter closer rows. Without a concrete
     height the 1fr tracks would expand to the viewport and blow the section up. */
  grid-template-rows: repeat(4, clamp(120px, 13vw, 168px)) repeat(2, clamp(88px, 9vw, 120px));
  gap: 16px;
}

.fb-collage__cell { min-width: 0; min-height: 0; }

.fb-collage__cell--a { grid-column: 1 / 6;  grid-row: 1 / 5; }
.fb-collage__cell--b { grid-column: 6 / 10; grid-row: 1 / 3; }
.fb-collage__cell--c { grid-column: 10 / 13; grid-row: 1 / 3; }
.fb-collage__cell--d { grid-column: 6 / 10; grid-row: 3 / 5; }
.fb-collage__cell--e { grid-column: 10 / 13; grid-row: 3 / 5; }
.fb-collage__cell--note { grid-column: 1 / 4; grid-row: 5 / 7; }
.fb-collage__cell--f { grid-column: 4 / 13; grid-row: 5 / 7; }

.fb-collage__panel {
  position: relative;
  display: block;
  height: 100%;
  border: 3px solid var(--fb-white);
  border-radius: var(--fb-r-lg);
  overflow: hidden;
  background: var(--fb-tone, var(--fb-wash));
  box-shadow: var(--fb-shadow-sm);
  transition: transform 0.28s var(--fb-ease), box-shadow 0.28s var(--fb-ease);
}
.fb-collage__panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--fb-shadow);
}

.fb-collage__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--fb-ease);
}
.fb-collage__panel:hover img { transform: scale(1.05); }

/* Wide panels letterbox the art rather than cropping it to death */
.fb-collage__cell--a .fb-collage__panel img,
.fb-collage__cell--f .fb-collage__panel img { object-fit: cover; }

.fb-collage__caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 30px 14px 13px;
  background: linear-gradient(to top, rgba(37, 37, 37, 0.78), rgba(37, 37, 37, 0));
}

.fb-collage__name {
  font-family: var(--fb-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--fb-white);
  overflow-wrap: anywhere;
}

.fb-collage__cell--a .fb-collage__name { font-size: 24px; }

.fb-collage__play {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--fb-white);
  color: var(--fb-ink);
}
.fb-collage__play svg { width: 12px; height: 12px; }

/* A colour block or a quote can also sit in the mosaic to break the rhythm */
.fb-collage__note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 20px;
  border: 3px solid var(--fb-white);
  border-radius: var(--fb-r-lg);
  background: var(--fb-tone, var(--fb-yellow));
  box-shadow: var(--fb-shadow-sm);
}

.fb-collage__note-text {
  font-family: var(--fb-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.fb-collage__note-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* ==========================================================================
   Hot Picks — A + B composition
   ========================================================================== */

.fb-hotpicks {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.fb-hotpicks__stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* ==========================================================================
   Pick Your Vibe — category tiles
   ========================================================================== */

.fb-vibes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.fb-vibe {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px 16px;
  border: 3px solid var(--fb-white);
  border-radius: var(--fb-r-lg);
  background: var(--fb-tone, var(--fb-yellow-soft));
  box-shadow: var(--fb-shadow-sm);
  overflow: hidden;
  transition: transform 0.24s var(--fb-ease), box-shadow 0.24s var(--fb-ease);
}

.fb-vibe:hover {
  transform: translateY(-5px) rotate(-0.8deg);
  box-shadow: var(--fb-shadow);
}

.fb-vibe__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 3px solid var(--fb-white);
  background: var(--fb-white);
  box-shadow: 0 3px 0 rgba(37, 37, 37, 0.1);
  transform: rotate(-5deg);
  font-size: 21px;
  transition: transform 0.3s var(--fb-ease);
}
.fb-vibe:hover .fb-vibe__icon { transform: rotate(4deg) scale(1.06); }

.fb-vibe__name {
  font-family: var(--fb-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.fb-vibe__count {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fb-ink-2);
  opacity: 0.65;
}

.fb-vibe__blurb {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fb-ink-2);
  opacity: 0.8;
}

/* The corner wedge gives each tile a cut-paper accent */
.fb-vibe::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--fb-tone-accent, rgba(255, 255, 255, 0.55));
}

/* ==========================================================================
   Trending rail — horizontal cards
   ========================================================================== */

.fb-rail-wrap { position: relative; }

.fb-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 330px);
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 37, 37, 0.2) transparent;
}
.fb-rail::-webkit-scrollbar { height: 8px; }
.fb-rail::-webkit-scrollbar-thumb {
  background: rgba(37, 37, 37, 0.16);
  border-radius: 999px;
}
.fb-rail > * { scroll-snap-align: start; }

.fb-rail-nav {
  display: flex;
  gap: 8px;
  flex: none;
}

.fb-rail-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(37, 37, 37, 0.14);
  border-radius: 50%;
  background: var(--fb-white);
  transition: background-color 0.18s var(--fb-ease), transform 0.18s var(--fb-ease);
}
.fb-rail-btn:hover { background: var(--fb-ink); color: var(--fb-white); transform: translateY(-2px); }
.fb-rail-btn svg { width: 16px; height: 16px; }
.fb-rail-btn[disabled] { opacity: 0.35; pointer-events: none; }

/* ==========================================================================
   Freshly Added — mixed grid
   ========================================================================== */

.fb-fresh {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* One tile in every batch gets a wider treatment, keeping the grid mixed */
.fb-fresh__wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 3px solid var(--fb-white);
  border-radius: var(--fb-r-lg);
  background: var(--fb-tone, var(--fb-green-soft));
  box-shadow: var(--fb-shadow-sm);
  overflow: hidden;
  transition: transform 0.25s var(--fb-ease), box-shadow 0.25s var(--fb-ease);
}
.fb-fresh__wide:hover { transform: translateY(-4px); box-shadow: var(--fb-shadow); }

.fb-fresh__wide-art {
  position: relative;
  min-height: 200px;
  overflow: hidden;
}
.fb-fresh__wide-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--fb-ease);
}
.fb-fresh__wide:hover .fb-fresh__wide-art img { transform: scale(1.05); }

.fb-fresh__wide-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 22px;
  min-width: 0;
}

.fb-fresh__wide-title {
  font-family: var(--fb-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.fb-fresh__wide-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--fb-ink-2);
  opacity: 0.72;
}

/* ==========================================================================
   Search sheet shared result grid
   ========================================================================== */

.fb-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.fb-empty-state {
  padding: 40px 24px;
  border: 3px dashed rgba(37, 37, 37, 0.18);
  border-radius: var(--fb-r-lg);
  text-align: center;
  color: var(--fb-muted);
  font-size: 14px;
}

/* ==========================================================================
   SEO / editorial block
   ========================================================================== */

.fb-seo {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 46px;
  padding: 42px;
  border: 3px solid var(--fb-white);
  border-radius: var(--fb-r-xl);
  background: var(--fb-paper);
  box-shadow: var(--fb-shadow-sm);
}

.fb-seo__title {
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.fb-seo__body p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--fb-ink-2);
  max-width: 68ch;
}
.fb-seo__body p:last-child { margin-bottom: 0; }

.fb-seo__body strong { color: var(--fb-ink); }

.fb-seo__side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
}

.fb-seo__card {
  padding: 18px 20px;
  border-radius: var(--fb-r-md);
  border: 2px solid rgba(37, 37, 37, 0.08);
  background: var(--fb-tone, var(--fb-yellow-soft));
}

.fb-seo__card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.fb-seo__card p {
  font-size: 13px;
  line-height: 1.58;
  color: var(--fb-ink-2);
}

.fb-seo__stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--fb-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fb-seo__stat span {
  font-family: var(--fb-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fb-muted);
}

/* ==========================================================================
   Category page
   ========================================================================== */

.fb-page-head {
  padding-block: 40px 8px;
}

.fb-page-head__title {
  font-size: clamp(34px, 4.4vw, 56px);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.fb-page-head__lede {
  max-width: 62ch;
  margin-top: 14px;
  font-size: 15px;
  color: var(--fb-ink-2);
}

.fb-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fb-muted);
}
.fb-crumbs a:hover { color: var(--fb-ink); }
.fb-crumbs span[aria-current] { color: var(--fb-ink); }

.fb-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-block: 20px 8px;
  scrollbar-width: none;
}
.fb-filter-row::-webkit-scrollbar { display: none; }

.fb-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 16px;
  border: 2px solid rgba(37, 37, 37, 0.12);
  border-radius: 999px;
  background: var(--fb-white);
  font-size: 13px;
  font-weight: 700;
  color: var(--fb-ink-2);
  transition: background-color 0.18s var(--fb-ease), border-color 0.18s var(--fb-ease),
    color 0.18s var(--fb-ease), transform 0.18s var(--fb-ease);
}
.fb-filter:hover { transform: translateY(-2px); border-color: var(--fb-ink); }

.fb-filter.is-active {
  background: var(--fb-ink);
  border-color: var(--fb-ink);
  color: var(--fb-white);
}

.fb-filter__emoji { font-size: 15px; }

.fb-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-block: 12px 8px;
}

.fb-sentinel {
  padding: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--fb-muted);
}

.fb-cat-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-block: 12px;
}

.fb-cat-hub {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 3px solid var(--fb-white);
  border-radius: var(--fb-r-lg);
  background: var(--fb-tone, var(--fb-yellow-soft));
  box-shadow: var(--fb-shadow-sm);
  overflow: hidden;
  transition: transform 0.24s var(--fb-ease), box-shadow 0.24s var(--fb-ease);
}
.fb-cat-hub:hover { transform: translateY(-5px) rotate(-0.6deg); box-shadow: var(--fb-shadow); }

.fb-cat-hub__name {
  display: block;
  font-family: var(--fb-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.fb-cat-hub__count {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.66;
}

.fb-cat-hub__emoji {
  font-size: 34px;
  filter: drop-shadow(0 4px 0 rgba(255, 255, 255, 0.6));
  transition: transform 0.3s var(--fb-ease);
}
.fb-cat-hub:hover .fb-cat-hub__emoji { transform: rotate(-8deg) scale(1.1); }

/* ==========================================================================
   Detail page
   ========================================================================== */

.fb-detail {
  padding-block: 34px 20px;
}

.fb-detail__top {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 42px;
  align-items: start;
}

.fb-detail__cover {
  position: relative;
  border: 4px solid var(--fb-white);
  border-radius: var(--fb-r-xl);
  overflow: hidden;
  background: var(--fb-tone, var(--fb-wash));
  box-shadow: var(--fb-shadow);
  aspect-ratio: 4 / 5;
}

.fb-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-detail__cover-tag {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
}

.fb-detail__cover-play {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(to top, rgba(37, 37, 37, 0.8), rgba(37, 37, 37, 0));
  color: var(--fb-white);
  font-size: 14px;
  font-weight: 700;
}

.fb-detail__cover-play-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--fb-white);
  color: var(--fb-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.fb-detail__cover-play-icon svg { width: 16px; height: 16px; }

.fb-detail__info { min-width: 0; padding-top: 6px; }

.fb-detail__title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-block: 14px 16px;
  overflow-wrap: anywhere;
}

.fb-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.fb-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.fb-detail__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.fb-fact {
  padding: 13px 15px;
  border: 2px solid rgba(37, 37, 37, 0.08);
  border-radius: var(--fb-r-sm);
  background: var(--fb-paper);
}

.fb-fact__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fb-muted);
}

.fb-fact__value {
  display: block;
  margin-top: 3px;
  font-family: var(--fb-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.fb-detail__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  padding-block: 20px 0;
}

.fb-detail__main { min-width: 0; }

.fb-panel {
  padding: 26px 28px;
  border: 3px solid var(--fb-white);
  border-radius: var(--fb-r-lg);
  background: var(--fb-paper);
  box-shadow: var(--fb-shadow-sm);
  margin-bottom: 18px;
}

.fb-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 21px;
  letter-spacing: -0.015em;
}

.fb-panel__title-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  background: var(--fb-tone, var(--fb-yellow));
  border: 2px solid var(--fb-white);
  font-family: var(--fb-body);
  font-size: 12px;
  font-weight: 800;
}

.fb-panel__body p {
  margin-bottom: 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--fb-ink-2);
}
.fb-panel__body p:last-child { margin-bottom: 0; }

.fb-collapse {
  position: relative;
  overflow: hidden;
}
.fb-collapse.is-collapsed { max-height: 132px; }
.fb-collapse.is-collapsed::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60px;
  background: linear-gradient(to top, var(--fb-paper), transparent);
}

.fb-collapse__toggle {
  margin-top: 12px;
  padding: 7px 16px;
  border: 2px solid rgba(37, 37, 37, 0.14);
  border-radius: 999px;
  background: var(--fb-white);
  font-size: 12.5px;
  font-weight: 700;
}
.fb-collapse__toggle:hover { border-color: var(--fb-ink); }

.fb-steps { display: grid; gap: 10px; }

.fb-step {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--fb-r-sm);
  background: var(--fb-wash);
}

.fb-step__num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 8px;
  background: var(--fb-ink);
  color: var(--fb-white);
  font-size: 11px;
  font-weight: 800;
}

.fb-step__text { font-size: 13.5px; line-height: 1.58; color: var(--fb-ink-2); }

.fb-faq { display: grid; gap: 10px; }

.fb-faq__item {
  padding: 14px 16px;
  border: 2px solid rgba(37, 37, 37, 0.08);
  border-radius: var(--fb-r-sm);
  background: var(--fb-white);
}

.fb-faq__q {
  font-family: var(--fb-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 5px;
}

.fb-faq__a { font-size: 13.5px; line-height: 1.6; color: var(--fb-ink-2); }

.fb-aside {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
}

.fb-aside__card {
  padding: 18px;
  border: 3px solid var(--fb-white);
  border-radius: var(--fb-r-lg);
  background: var(--fb-tone, var(--fb-yellow-soft));
  box-shadow: var(--fb-shadow-sm);
}

.fb-aside__title {
  font-size: 15px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.fb-aside__list { display: grid; gap: 8px; }

.fb-related {
  padding-block: 34px 10px;
}

.fb-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

/* ==========================================================================
   Play page
   ========================================================================== */

.fb-play {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--fb-ink);
}

.fb-play__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  color: var(--fb-white);
  background: var(--fb-ink);
}

.fb-play__back {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  color: var(--fb-white);
  transition: background-color 0.18s var(--fb-ease);
}
.fb-play__back:hover { background: rgba(255, 255, 255, 0.12); }
.fb-play__back svg { width: 20px; height: 20px; }

.fb-play__title {
  font-family: var(--fb-display);
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-play__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px 18px;
}

.fb-play__frame {
  width: 100%;
  height: calc(100dvh - 90px);
  border-radius: 20px;
  background: #000;
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   Prose / legal pages
   ========================================================================== */

.fb-prose {
  max-width: 780px;
  margin-inline: auto;
  padding-block: 44px 60px;
}

.fb-prose__title {
  font-size: clamp(32px, 4.2vw, 50px);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-bottom: 20px;
}

.fb-prose h2 {
  margin: 34px 0 12px;
  font-size: 22px;
  letter-spacing: -0.015em;
}

.fb-prose h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.fb-prose p {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--fb-ink-2);
}

.fb-prose ul { display: grid; gap: 9px; margin-bottom: 18px; }

.fb-prose li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--fb-ink-2);
}
.fb-prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--fb-orange);
  transform: rotate(8deg);
}

.fb-prose a { color: var(--fb-orange-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.fb-prose__note {
  margin-top: 30px;
  padding: 18px 20px;
  border: 3px solid var(--fb-white);
  border-radius: var(--fb-r-md);
  background: var(--fb-yellow-soft);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--fb-ink-2);
}
