.nx-novex { --ix: 0.00000%; --iy: 0.00000%; }
.nx-home { --ix: 11.11111%; --iy: 0.00000%; }
.nx-cube { --ix: 22.22222%; --iy: 0.00000%; }
.nx-tasks { --ix: 33.33333%; --iy: 0.00000%; }
.nx-defi { --ix: 44.44444%; --iy: 0.00000%; }
.nx-profile { --ix: 55.55556%; --iy: 0.00000%; }
.nx-wallet { --ix: 66.66667%; --iy: 0.00000%; }
.nx-layers { --ix: 77.77778%; --iy: 0.00000%; }
.nx-deposit { --ix: 88.88889%; --iy: 0.00000%; }
.nx-withdraw { --ix: 100.00000%; --iy: 0.00000%; }
.nx-eye { --ix: 0.00000%; --iy: 16.66667%; }
.nx-clock { --ix: 11.11111%; --iy: 16.66667%; }
.nx-gift { --ix: 22.22222%; --iy: 16.66667%; }
.nx-bars { --ix: 33.33333%; --iy: 16.66667%; }
.nx-servers { --ix: 44.44444%; --iy: 16.66667%; }
.nx-processor { --ix: 55.55556%; --iy: 16.66667%; }
.nx-shield { --ix: 66.66667%; --iy: 16.66667%; }
.nx-network { --ix: 77.77778%; --iy: 16.66667%; }
.nx-pin { --ix: 88.88889%; --iy: 16.66667%; }
.nx-compute { --ix: 100.00000%; --iy: 16.66667%; }
.nx-memory { --ix: 0.00000%; --iy: 33.33333%; }
.nx-storage { --ix: 11.11111%; --iy: 33.33333%; }
.nx-link { --ix: 22.22222%; --iy: 33.33333%; }
.nx-copy { --ix: 33.33333%; --iy: 33.33333%; }
.nx-edit { --ix: 44.44444%; --iy: 33.33333%; }
.nx-chat { --ix: 55.55556%; --iy: 33.33333%; }
.nx-support { --ix: 66.66667%; --iy: 33.33333%; }
.nx-bell { --ix: 77.77778%; --iy: 33.33333%; }
.nx-settings { --ix: 88.88889%; --iy: 33.33333%; }
.nx-history { --ix: 100.00000%; --iy: 33.33333%; }
.nx-swap { --ix: 0.00000%; --iy: 50.00000%; }
.nx-refresh { --ix: 11.11111%; --iy: 50.00000%; }
.nx-success { --ix: 22.22222%; --iy: 50.00000%; }
.nx-error { --ix: 33.33333%; --iy: 50.00000%; }
.nx-add { --ix: 44.44444%; --iy: 50.00000%; }
.nx-info { --ix: 55.55556%; --iy: 50.00000%; }
.nx-warning { --ix: 66.66667%; --iy: 50.00000%; }
.nx-globe { --ix: 77.77778%; --iy: 50.00000%; }
.nx-lock { --ix: 88.88889%; --iy: 50.00000%; }
.nx-send { --ix: 100.00000%; --iy: 50.00000%; }
.nx-telegram { --ix: 0.00000%; --iy: 66.66667%; }
.nx-friends { --ix: 11.11111%; --iy: 66.66667%; }
.nx-node { --ix: 22.22222%; --iy: 66.66667%; }
.nx-invite { --ix: 33.33333%; --iy: 66.66667%; }
.nx-logout { --ix: 44.44444%; --iy: 66.66667%; }
.nx-sliders { --ix: 55.55556%; --iy: 66.66667%; }
.nx-calendar { --ix: 66.66667%; --iy: 66.66667%; }
.nx-filter { --ix: 77.77778%; --iy: 66.66667%; }
.nx-key { --ix: 88.88889%; --iy: 66.66667%; }
.nx-fingerprint { --ix: 100.00000%; --iy: 66.66667%; }
.nx-focus { --ix: 0.00000%; --iy: 83.33333%; }
.nx-qr { --ix: 11.11111%; --iy: 83.33333%; }
.nx-scan { --ix: 22.22222%; --iy: 83.33333%; }
.nx-frame { --ix: 33.33333%; --iy: 83.33333%; }
.nx-expand { --ix: 44.44444%; --iy: 83.33333%; }
.nx-external { --ix: 55.55556%; --iy: 83.33333%; }
.nx-discount { --ix: 66.66667%; --iy: 83.33333%; }
.nx-favorite { --ix: 77.77778%; --iy: 83.33333%; }
.nx-starred { --ix: 88.88889%; --iy: 83.33333%; }
.nx-heart { --ix: 100.00000%; --iy: 83.33333%; }
.nx-flame { --ix: 0.00000%; --iy: 100.00000%; }
.nx-lightning { --ix: 11.11111%; --iy: 100.00000%; }
.nx-diamond { --ix: 22.22222%; --iy: 100.00000%; }
.nx-crown { --ix: 33.33333%; --iy: 100.00000%; }
.nx-usdt { --ix: 44.44444%; --iy: 100.00000%; }
.nx-eth { --ix: 55.55556%; --iy: 100.00000%; }
.nx-sol { --ix: 66.66667%; --iy: 100.00000%; }
.nx-tron { --ix: 77.77778%; --iy: 100.00000%; }
.nx-bnb { --ix: 88.88889%; --iy: 100.00000%; }
.coin.usdt { --ix: 44.44444%; --iy: 100.00000%; }
.coin.eth { --ix: 55.55556%; --iy: 100.00000%; }
.coin.sol { --ix: 66.66667%; --iy: 100.00000%; }
.coin.tron { --ix: 77.77778%; --iy: 100.00000%; }
.coin.bnb { --ix: 88.88889%; --iy: 100.00000%; }
.coin:not(.eth):not(.sol):not(.tron):not(.bnb) { --ix: 44.44444%; --iy: 100.00000%; }

/* A single atlas preserves the original artwork across all screens. */
.nx-icon, .coin[class] {
  background-image: url("/assets/novex-icons.webp");
  background-size: 1000% 700%;
  background-position: var(--ix) var(--iy);
  background-repeat: no-repeat;
}
.nx-icon {
  display: inline-block;
  width: 1.35em;
  height: 1.35em;
  vertical-align: -.28em;
  flex: none;
}
.brand .nx-icon { width: 34px; height: 34px; }
.wallet .nx-icon { margin-right: 5px; }
.nav .nx-icon { width: 24px; height: 24px; display: block; margin: 0 auto 3px; }
.nav a.active .nx-icon { filter: drop-shadow(0 0 5px #05e2be80); }
.coin, .coin.eth, .coin.sol, .coin.tron { background-color: transparent; color: transparent; }
.btn .nx-icon { width: 17px; height: 17px; }
.nx-label .nx-icon { margin-right: 4px; }
.task-icon:has(.nx-icon), .success-icon:has(.nx-icon) { background: transparent; border: 0; box-shadow: none; }
.task-icon .nx-icon { width: 30px; height: 30px; }
.success-icon .nx-icon { width: 54px; height: 54px; }
.icon-catalog h1 { margin: 5px 0 18px; }
.icon-grid {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px 5px;
}
.icon-grid li { display: grid; justify-items: center; gap: 5px; text-align: center; font-size: 10px; overflow-wrap: anywhere; }
.icon-grid .nx-icon { width: 34px; height: 34px; }
.icon-link { margin: 0 10px 10px; }
.icon-link a { text-decoration: underline; text-underline-offset: 3px; }

:is(.btn.primary, .btn.accent) .nx-icon:not(.nx-success) { filter: brightness(.28); }

/* Use the supplied token artwork, including in the swap token selector. */
:is(.coin.eth, .nx-eth) { --token-art: url("/assets/token-eth.webp"); }
:is(.coin.sol, .nx-sol) { --token-art: url("/assets/token-sol.webp"); }
:is(.coin.usdt, .coin:not(.eth):not(.sol):not(.tron):not(.bnb), .nx-usdt) {
  --token-art: url("/assets/token-usdt.webp");
}
:is(.coin.eth, .coin.sol, .coin.usdt, .coin:not(.eth):not(.sol):not(.tron):not(.bnb), .nx-eth, .nx-sol, .nx-usdt) {
  background-image: var(--token-art);
  background-size: contain;
  background-position: center;
  border-radius: 50%;
}
