/* Jood Street's loading card on the Unity page (Unity payment spec 2026-11-14, section 5.7): three.js's loading and
   load-error cards (ui/street.css .street-overlay, .overlay-card and .street-primary). Changa is three.js's own copy,
   which joodv2 serves with three.js's files; elsewhere the fallbacks draw it. */
@font-face { font-family: Changa; src: url('/games/jood-street/street/changa.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
.jood-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; box-sizing: border-box; background: #c4e2e4cc; font-family: Changa, 'Noto Sans Arabic', sans-serif; color: #173838; }
.jood-overlay[hidden] { display: none; }
.jood-card { display: grid; justify-items: center; gap: 10px; box-sizing: border-box; padding: 26px; border-radius: 22px; background: #fafdfa; max-width: 340px; text-align: center; }
.jood-card p { margin: 0; font-size: 16px; line-height: 1.6; }
.jood-card > svg { width: 34px; height: 34px; color: #2d877b; }
/* The wait turns once a second, as three.js's other waits do (@keyframes spin); its own loading icon stands still only
   because its wait is short (spec section 5.7, my call). */
.jood-card[role="status"] > svg { animation: jood-spin 1s linear infinite; }
.jood-card code { max-width: 100%; font-size: 12px; color: #5b6f6a; overflow-wrap: anywhere; }
.jood-primary { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 18px; background: #2d877b; color: white; font: inherit; font-weight: 700; cursor: pointer; }
.jood-primary svg { width: 20px; height: 20px; }
@keyframes jood-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .jood-card[role="status"] > svg { animation-duration: 3s; } }
