
/* Cards tab: every card in the game as a grid. Click one to open it full size with its keyword notes. */
#view-cards .panel.cbar{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;text-align:left;gap:8px 14px}
#view-cards .cbar>*{flex:none;margin:0}
#view-cards .cbar input{width:12em;font-family:var(--f-body)}
#view-cards .ccount{color:var(--muted);font-size:.85rem;margin-left:auto}
#view-cards .cgroup{display:flex;flex-direction:column;gap:10px}
#view-cards .cgroup h2 small{font:600 .8rem var(--f-body);color:var(--muted);margin-left:6px;letter-spacing:0}
.cgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:16px 14px}
.cgrid>.mcard{height:auto;min-height:0;cursor:zoom-in;transition:transform .14s ease,filter .14s ease}
.cgrid>.mcard:not(:has(> .cface.art)){min-height:220px}
.cgrid>.mcard:has(> .cface.art){filter:drop-shadow(0 2px 5px rgba(0,0,0,.28))}
.cgrid>.mcard:focus-visible{outline:3px solid var(--or);outline-offset:3px}
@media (hover:hover){ .cgrid>.mcard:hover{transform:translateY(-3px);filter:drop-shadow(0 8px 14px rgba(0,0,0,.32))} }
.cgrid .cnone{grid-column:1/-1;color:var(--muted)}
@media (max-width:640px){ .cgrid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px 8px} }
/* the keyword notes under a pop-up card: an art card has no panel behind it, so the notes get their own solid box
   (they used to sit straight on the dimmed page and were hard to read) */
.peek:has(> .cface.art)>.kwgloss{margin-top:8px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;
  background:var(--surface);box-shadow:0 10px 30px rgba(0,0,0,.3);color:var(--ink)}
.peek:has(> .cface.art)>.stamps{background:var(--surface);border-radius:10px;padding:4px 6px}
