
#nfgGallery {
  display:block;
  width:100%;
  margin:12px 0 20px;
}

.nfg-tabs {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:14px;
}

.nfg-tab {
  padding:9px 12px;
  border:1px solid #81819866;
  border-radius:9px;
  background:transparent;
  color:inherit;
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

.nfg-tab.active {
  background:#7047eb;
  color:#fff !important;
  border-color:#906aff;
}

.nfg-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  max-height:430px;
  overflow-y:auto;
  padding:3px;
  scrollbar-width:thin;
  scrollbar-color:#7950f2 transparent;
}

.nfg-card {
  min-width:0;
  padding:5px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  background:rgba(128,128,160,.07);
  border:1px solid #81819855;
  border-radius:12px;
  color:inherit;
  cursor:pointer;
  font:inherit;
  transition:border-color .15s,background .15s;
}

.nfg-card canvas {
  display:block !important;
  width:100% !important;
  height:88px !important;
  object-fit:contain;
  border-radius:7px;
  background:#80808015;
}

.nfg-card span {
  display:block;
  width:100%;
  min-height:30px;
  font-size:12px;
  font-weight:700;
  line-height:1.5;
  text-align:center;
}

.nfg-card:hover {
  border-color:#9a78ff;
}

.nfg-card.active {
  border-color:#946bff;
  background:rgba(112,71,235,.18);
  box-shadow:0 0 0 1px #946bff;
}

.nfg-reset {
  width:100%;
  padding:12px;
  margin-top:14px;
  border:1px solid #8964ff;
  border-radius:10px;
  background:transparent;
  color:inherit;
  font:inherit;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
}

.nfg-reset:hover {
  background:#7047eb;
  color:white !important;
}

@media(max-width:480px) {
  .nfg-grid {
    gap:6px;
    max-height:360px;
  }
  .nfg-card canvas {
    height:70px !important;
  }
  .nfg-card span {
    font-size:11px;
  }
}
