/* CO: a coleção de Cartas do Chefe. Só desenha dentro do #chefao-colecao (ou do painel aberto por #chefao-colecao na URL); não toca na Home. */
.cc-panel { max-width: 960px; margin: 0 auto; padding: 16px; }
.cc-panel.cc-overlay { position: fixed; inset: 0; z-index: 60; overflow: auto; background: var(--panel, #1a1632); color: var(--text, #f3ead8); }  /* opaco e do tema (Night/Day): a pagina de tras nao aparece */
.cc-note { opacity: 0.8; font-size: 0.9em; }
.cc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0; padding: 0; list-style: none; }
@media (max-width: 640px) { .cc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc-card { position: relative; border: 2px solid #b8893c; border-radius: 10px; padding: 8px; background: var(--panel-2, #2a2118); color: inherit; overflow: hidden; }
.cc-frame { aspect-ratio: 5 / 7; display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 6px; background: linear-gradient(160deg, #5a3f1e, #2b1d0e); font-weight: 700; padding: 8px; overflow-wrap: anywhere; }
.cc-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.cc-name { margin: 6px 0 2px; font-weight: 700; }
.cc-stats { margin: 0; font-size: 0.85em; }
.cc-missing { border-color: #555; }
.cc-missing .cc-frame, .cc-missing .cc-frame img { filter: grayscale(1) brightness(0.55); background: #3a3a3a; }
.cc-missing .cc-name, .cc-missing .cc-stats { opacity: 0.6; }
.cc-foil { border-color: #e8d27a; }
.cc-foil::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0.55;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 120, 200, 0.5) 35%, rgba(120, 220, 255, 0.5) 50%, rgba(255, 240, 120, 0.5) 65%, transparent 80%); background-size: 250% 250%; animation: cc-shine 4s linear infinite; }
.cc-foil-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: #e8d27a; color: #2b1d0e; font-size: 0.75em; font-weight: 700; }
@keyframes cc-shine { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .cc-foil::after { animation: none; } }
