/* BLOXWORK rig art placement.
   Original AI-generated characters on true blocky rig proportions
   (R15/R6 style), items and vehicles, backgrounds removed to true
   transparent PNGs, plus an original blocky game-world map.
   Rules enforced here: art is decoration only, pointer-events:none,
   never positioned over text, buttons, prices or profile photos;
   content always sits above it (z-index), sections reserve their own
   space, and art shrinks or steps aside on small screens. */
.art { pointer-events: none; user-select: none; -webkit-user-drag: none; }

/* Find a Dev heading: the flame hero stands in his own flex space at
   the end of the heading row, never on top of the heading text. A hard
   offset block shadow keeps him in the toy box design, no glow wash. */
.find-head-art {
  height: 122px; width: auto; flex: 0 0 auto; align-self: flex-end;
  filter: drop-shadow(6px 6px 0 rgba(5,7,10,.45)) drop-shadow(0 14px 16px rgba(0,0,0,.5));
}
@media (max-width: 640px) { .find-head-art { height: 74px; } }

/* Fee block art: character in his own flex cell at the right edge
   of the fee block header, desktop only. On phones he steps aside so
   the fee table owns the width. Never over the numbers. */
.fee-art { height: 132px; width: auto; flex: 0 0 auto; filter: drop-shadow(5px 5px 0 rgba(5,7,10,.4)) drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
@media (max-width: 760px) { .fee-art { display: none; } }

/* Cast members flanking the vehicle strip: own flex cells at the ends
   of the strip, same height family as the vehicles, shrink on phones. */
.strip-char { height: 96px; width: auto; flex: 0 0 auto; filter: drop-shadow(4px 4px 0 rgba(5,7,10,.4)); }
@media (max-width: 640px) { .strip-char { height: 62px; } }

/* Dev card category art: sits in the banner strip's right corner.
   The profile photo lives below the banner, so art never covers it,
   and it never covers the name, price or buttons in the card body. */
.art-card-icon { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 40px; width: auto; z-index: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }

/* Soft map background: the faded map PNG (alpha baked in) layers
   behind section content. Content wrapper must use .map-content. */
.map-bg { position: relative; overflow: hidden; border-radius: 10px; color: #eaf4fa; }
.map-bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("/art/map-world-faded.webp") center / cover no-repeat;
  opacity: .38; pointer-events: none;
}
.map-bg { background: #0c1218; border: 2.5px solid #22303c; }
.map-bg .map-content > p { color: #cfe2ec; }
.map-content { position: relative; z-index: 1; }

/* Vehicle strip: its own band with reserved height, below the listings. */
.vehicle-strip { display: flex; gap: 18px; align-items: flex-end; justify-content: center; flex-wrap: wrap; padding: 10px 0 2px; }
.vehicle-strip img { height: 84px; width: auto; }
@media (max-width: 640px) { .vehicle-strip img { height: 58px; } }

/* How Escrow Works: one rig character per step, in its own box at the
   top of the step card, above the step text. */
.step-art { height: 98px; width: auto; display: block; margin-bottom: 8px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.55)); }

/* Small inline art beside section headings (flex space, not overlay). */
.head-art { height: 54px; width: auto; flex: 0 0 auto; }
.sell-art { height: 120px; width: auto; flex: 0 0 auto; }
@media (max-width: 640px) { .sell-art { height: 84px; } }

/* How Escrow Works: cast members flank the steps band in their own
   flex cells at the two ends, standing on the band floor line. The
   steps keep the whole middle. On narrower screens the pair steps
   aside so the steps own the width. */
.steps-band { display: flex; gap: 14px; align-items: stretch; }
.steps-band .steps { flex: 1; min-width: 0; }
.steps-flank { height: 232px; width: auto; flex: 0 0 auto; align-self: flex-end; filter: drop-shadow(5px 5px 0 rgba(5,7,10,.4)) drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
@media (max-width: 900px) { .steps-flank { display: none; } }

/* Legal hub hero: a cast member stands in his own flex cell at the
   right edge of the hero band, beside the heading text, over the
   faded map but never over the words. Shrinks on phones. */
.legal-flex { display: flex; align-items: center; gap: 18px; }
.legal-art { height: 118px; width: auto; flex: 0 0 auto; margin-left: auto; filter: drop-shadow(4px 4px 0 rgba(5,7,10,.4)); }
@media (max-width: 640px) { .legal-art { height: 74px; } }

/* Orders empty state: the card becomes a row, the words on the left
   and the alien lying in his own space at the right edge. */
.empty-flex { display: flex; align-items: center; gap: 18px; }
.empty-flex p { margin: 0; }
.empty-art { height: 86px; width: auto; flex: 0 0 auto; margin-left: auto; filter: drop-shadow(4px 4px 0 rgba(5,7,10,.35)); }
@media (max-width: 640px) { .empty-art { height: 56px; } }

/* Sell page head: a second cast member pairs with the villain at the
   right edge of the heading row, both in their own flex space. */
.head-pair { display: flex; align-items: flex-end; gap: 12px; flex: 0 0 auto; }
.sell-art-2 { height: 94px; width: auto; flex: 0 0 auto; }
@media (max-width: 640px) { .sell-art-2 { height: 64px; } }

/* How Escrow Works: the coin rain. Small flat BW coins fall gently
   in the page background, and that is the whole layer (David's
   final word: "Just rain coins behind it" — the stacks and resting
   coins are out). The layer is fixed to the screen and sits behind
   every card and box on the page (z-index -1 inside the app
   stacking context), so a coin crossing a panel passes behind it
   and disappears. It takes no clicks. Coins stay small and soft so
   words stay perfectly clear, the rain thins out on phones, and
   reduced motion stills the fall completely. */
.coin-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.coin-bg img { position: absolute; height: auto; user-select: none; -webkit-user-drag: none; }
.coin-fall { top: 0; animation-name: coin-fall; animation-timing-function: linear; animation-iteration-count: infinite; will-change: transform; }
@keyframes coin-fall {
  from { transform: translateY(-16vh) rotate(-8deg); }
  to { transform: translateY(114vh) rotate(30deg); }
}
@media (max-width: 640px) { .coin-bg .coin-extra { display: none; } }
@media (prefers-reduced-motion: reduce) { .coin-bg .coin-fall { display: none; } }

/* Home and Devs page backgrounds: one original blocky game world
   scene per page (Home the city, Devs the race track), laid as a
   soft transparent layer over the near black base and behind all
   content. Same law as the coin rain: fixed to the screen, z-index
   -1 inside the app stacking context so every card and box paints
   over it, and it takes no clicks. The art is dimmed to atmosphere
   (low opacity on the image, plus a dark wash that deepens toward
   the foot of the page) so headings, prices and buttons stay
   perfectly clear and the marketplace grid stays the hero. The
   wide art centre crops on phone portrait (object-fit cover); it
   never stretches. Only these two pages carry the layer. */
.page-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.page-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; opacity: .34; }
.page-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,19,.40), rgba(10,14,19,.16) 34%, rgba(10,14,19,.55));
}

/* Legal hub header band uses the full map scene at low CSS opacity. */
.legal-hero { position: relative; overflow: hidden; border-radius: 10px; background: #111; color: #fff; border: 2.5px solid #22303c; }
.legal-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("/art/map-world.webp") center / cover no-repeat;
  opacity: .28; pointer-events: none;
}
.legal-hero .map-content { padding: 22px 18px; }
