/* Avivi Mascots gallery (public/mascot-gallery/, scripts/mascot-gallery/build.mjs). The frame, colours, filter and footer
   come from the 48 home pages gallery (public/home-pages/home-pages.css); this file adds the mascot cards and the preview. */
.mg-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.mg-card { background: var(--cotton); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--cast); display: flex; flex-direction: column; }
.mg-card[hidden] { display: none; }
/* the picture: a checkerboard says "transparent background", like the owner's mascot screen in the app */
.mg-pic { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 10px; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
  background: repeating-conic-gradient(#f3ede6 0 25%, #fffdfa 0 50%) 0 0 / 18px 18px; }
.mg-pic img { display: block; width: 100%; height: 100%; max-width: 256px; object-fit: contain; }
.mg-play { position: absolute; bottom: 8px; inset-inline-end: 8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 13px; opacity: .85; }
.mg-pic.on .mg-play { opacity: 0; }
.mg-meta { padding: 12px 14px 14px; display: grid; gap: 4px; flex: 1; align-content: start; }
.mg-meta h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.mg-meta p { margin: 0; color: var(--soft); font-size: 14.5px; }
.mg-ready { font-size: 14px; color: var(--ink) !important; margin-top: 8px !important; padding: 7px 10px; background: #fff3dc; border-radius: 10px; }
.mg-ready a { font-weight: 700; color: var(--acc-ink); display: inline-flex; align-items: center; min-height: 32px; gap: 4px; }

.mg-dlg { width: min(480px, 94vw); max-height: 94vh; padding: 20px; border: 0; border-radius: 20px; background: var(--cotton); color: var(--ink); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5); text-align: center; }
.mg-dlg::backdrop { background: rgba(30, 22, 16, .62); }
.mg-dlg .hp-x { position: absolute; top: 10px; inset-inline-end: 10px; }
.mg-dlg-pic { display: grid; place-items: center; margin: 24px auto 10px; width: min(320px, 100%); aspect-ratio: 1; border-radius: 16px;
  background: repeating-conic-gradient(#f3ede6 0 25%, #fffdfa 0 50%) 0 0 / 20px 20px; }
.mg-dlg-pic img { width: 100%; height: 100%; object-fit: contain; }
.mg-dlg h2 { margin: 0; font-size: 24px; }
.mg-dlg-f { margin: 4px 0 12px; color: var(--soft); }
.mg-dlg .mg-ready { margin: 0 !important; font-size: 15px; }

@media (max-width: 640px) {
  /* the owner's screen rule: the field buttons wrap to more rows, never a sideways scroll; so the bar doesn't stay on top */
  .hp-tools { position: static; }
  .hp-cats { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .hp-cats button { font-size: 14px; padding: 6px 11px; min-height: 38px; }
  .mg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mg-meta { padding: 10px; }
  .mg-meta h3 { font-size: 16px; }
  .mg-ready { padding: 6px 8px; font-size: 13.5px; }
}
/* 15.11.2026: on a narrow screen the header's three links (two in-page anchors and the ready-site page, which the button next to
   them opens too) pushed the page sideways: 646px wide at 390 (scripts/qa/mascot-gallery-test.mjs). The 48 home pages gallery
   hides them under its menu button at the same width; here they simply step aside, and the logo, languages and button stay. */
@media (max-width: 900px) { .hp-top .hp-nav { display: none; } }
@media (max-width: 440px) { .hp-top .hp-in { gap: 8px; } .hp-top .hp-cta { white-space: normal; text-align: center; line-height: 1.2; } }
